[yast-commit] r44055 - in /branches/SuSE-SLE-10-SP2-Branch/network: VERSION package/yast2-network.changes src/lan/address.ycp
Author: mzugec Date: Thu Jan 31 13:22:44 2008 New Revision: 44055 URL: http://svn.opensuse.org/viewcvs/yast?rev=44055&view=rev Log: fixed address widget (#25683) Modified: branches/SuSE-SLE-10-SP2-Branch/network/VERSION branches/SuSE-SLE-10-SP2-Branch/network/package/yast2-network.changes branches/SuSE-SLE-10-SP2-Branch/network/src/lan/address.ycp Modified: branches/SuSE-SLE-10-SP2-Branch/network/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/network/VERSION?rev=44055&r1=44054&r2=44055&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP2-Branch/network/VERSION (original) +++ branches/SuSE-SLE-10-SP2-Branch/network/VERSION Thu Jan 31 13:22:44 2008 @@ -1 +1 @@ -2.13.108 +2.13.109 Modified: branches/SuSE-SLE-10-SP2-Branch/network/package/yast2-network.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/network/package/yast2-network.changes?rev=44055&r1=44054&r2=44055&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP2-Branch/network/package/yast2-network.changes (original) +++ branches/SuSE-SLE-10-SP2-Branch/network/package/yast2-network.changes Thu Jan 31 13:22:44 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Jan 30 15:38:06 CET 2008 - mzugec@suse.de + +- fixed address widget (#25683) +- 2.13.109 + +------------------------------------------------------------------- Wed Jan 16 10:19:36 CET 2008 - kmachalkova@suse.cz - Merged proofread texts Modified: branches/SuSE-SLE-10-SP2-Branch/network/src/lan/address.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP2-Branch/network/src/lan/address.ycp?rev=44055&r1=44054&r2=44055&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP2-Branch/network/src/lan/address.ycp (original) +++ branches/SuSE-SLE-10-SP2-Branch/network/src/lan/address.ycp Thu Jan 31 13:22:44 2008 @@ -181,20 +181,11 @@ * Group called FOO has buttons FOO_bar FOO_qux and values bar qux * @param key id of the widget */ -void initBootProto (string key) { - switch(settings["BOOTPROTO"]:""){ - case "static": UI::ChangeWidget(`id(`bootproto), `CurrentButton, `static); - UI::ChangeWidget(`id(`ipaddr), `Value, settings["IPADDR"]:""); - UI::ChangeWidget(`id(`netmask), `Value, settings["NETMASK"]:""); - UI::ChangeWidget(`id(`hostname), `Value, settings["HOSTNAME"]:""); - break; - case "dhcp" : UI::ChangeWidget(`id(`bootproto), `CurrentButton, `dynamic); - break; - case "none" : UI::ChangeWidget(`id(`bootproto), `CurrentButton, `none); - break; - } - enableDisableBootProto((symbol)UI::QueryWidget(`id(`bootproto), `CurrentButton)); - +void InitializeWidgetRbg (string key) { + string value = settings[key]:""; + value = key + "_" + value; + my2debug ("RBGW", sformat ("init k: %1, v: %2", key, value)); + UI::ChangeWidget (`id (key), ValueProp (key), value); } /** @@ -552,7 +543,7 @@ "widget": `empty, "help": "", // just init and store, real widgets are BOOTPROTO_* - "init": initBootProto, + "init": InitializeWidgetRbg, "store": StoreWidgetRbg, ], -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mzugec@svn.opensuse.org