Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54567 - in /trunk/network: package/yast2-network.changes src/services/routing.ycp
  • From: kmachalkova@xxxxxxxxxxxxxxxx
  • Date: Tue, 13 Jan 2009 11:26:28 -0000
  • Message-id: <E1LMhPg-0003gh-Mk@xxxxxxxxxxxxxxxx>
Author: kmachalkova
Date: Tue Jan 13 12:26:28 2009
New Revision: 54567

URL: http://svn.opensuse.org/viewcvs/yast?rev=54567&view=rev
Log:
removed some dead code

Modified:
trunk/network/package/yast2-network.changes
trunk/network/src/services/routing.ycp

Modified: trunk/network/package/yast2-network.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/package/yast2-network.changes?rev=54567&r1=54566&r2=54567&view=diff
==============================================================================
--- trunk/network/package/yast2-network.changes (original)
+++ trunk/network/package/yast2-network.changes Tue Jan 13 12:26:28 2009
@@ -7,7 +7,7 @@
Mon Jan 12 16:44:12 CET 2009 - kmachalkova@xxxxxxx

- Do not reset default gw if the interface is set to 'No IP address'
- mode ( reset iff it is set to DHCP - #460262)
+ mode ( reset iff it is set to DHCP - bnc#460262)

-------------------------------------------------------------------
Wed Jan 7 16:45:59 CET 2009 - mzugec@xxxxxxx

Modified: trunk/network/src/services/routing.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/src/services/routing.ycp?rev=54567&r1=54566&r2=54567&view=diff
==============================================================================
--- trunk/network/src/services/routing.ycp (original)
+++ trunk/network/src/services/routing.ycp Tue Jan 13 12:26:28 2009
@@ -165,14 +165,11 @@
r["device"]:"",
r["extrapara"]:"");
r_items = add(r_items, item);
-// items = items + 1;
}
});
table_items_orig = (list<term>) eval(r_items);

y2debug("table_items=%1", r_items);
-// y2debug("items=%1", items);
- // max = items;

UI::ChangeWidget(`gw, `Items, [ defgw ]);
UI::ChangeWidget(`id(`gw), `ValidChars, IP::ValidChars);
@@ -184,20 +181,14 @@
// but instead of default route (#299448) - NM reads it
boolean enabled = !(boolean)NetworkService::IsManaged();

-// UI::ChangeWidget(`id(`gw), `Enabled, enabled);
UI::ChangeWidget(`id(`table), `Enabled, enabled);
UI::ChangeWidget(`id(`forward), `Enabled, enabled);
-// UI::ChangeWidget(`id(`add), `Enabled, enabled);
-// UI::ChangeWidget(`id(`expert), `Enabled, enabled);

- // fixed bug #73739 - if dhcp is used, dont set default gw statically
-// if (Lan::bootproto == "dhcp")UI::ChangeWidget(`id(`gw),`Enabled, false);
disableItemsIfNM([ `gw, `table, `add, `edit, `delete ], false);
}


symbol handleRouting( string key, map event ) {
-// boolean expert = (boolean) UI::QueryWidget(`id(`expert), `Value);
boolean enabled = !(boolean)NetworkService::IsManaged();
list devs = Routing::GetDevices();
integer cur = (integer) UI::QueryWidget(`id(`table), `CurrentItem);
@@ -206,12 +197,6 @@
if (event["EventReason"]:"" == "Activated" || event["EventReason"]:"" ==
"ValueChanged")
{
switch (event["ID"]:`nil){
-/*
- case `expert:
- UI::ChangeWidget(`id(`table), `Enabled, expert);
- UI::ChangeWidget(`id(`add), `Enabled, expert);
- break;
-*/
case `add:
item = RoutingEditDialog(size(r_items), `empty(), devs);

@@ -219,9 +204,6 @@
{
r_items = add(r_items, item);
UI::ChangeWidget(`id(`table), `Items, r_items);
-// UI::ChangeWidget(`id(`table), `CurrentItem, max);
-// items = items + 1;
-// max = max + 1;
}
break;
case `delete:
@@ -312,7 +294,6 @@
/* Frame label */
`Frame(_("Routing Table"), `VBox(
/* CheckBox label */
-// `Left(`CheckBox(`id(`expert), `opt(`notify), _("E&xpert
Configuration"))),
`Table(`id(`table), `opt(`notify), `header(
/* Table header 1/4 */
_("Destination"),

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages