diff --git a/data/wicd.glade b/data/wicd.glade index a199fa1..4a5cf77 100644 --- a/data/wicd.glade +++ b/data/wicd.glade @@ -1,6 +1,6 @@ - + 450 @@ -424,7 +424,7 @@ True - 17 + 18 2 4 4 @@ -455,19 +455,6 @@ True True - - 1 - 2 - 7 - 8 - - - - - - True - True - 1 2 @@ -477,7 +464,7 @@ - + True True @@ -489,6 +476,19 @@ + + + True + True + + + 1 + 2 + 10 + 11 + + + True @@ -498,8 +498,8 @@ 2 - 4 - 5 + 5 + 6 @@ -519,8 +519,8 @@ 2 - 5 - 6 + 6 + 7 @@ -537,8 +537,8 @@ - 7 - 8 + 8 + 9 @@ -555,8 +555,8 @@ - 8 - 9 + 9 + 10 @@ -573,8 +573,8 @@ - 9 - 10 + 10 + 11 @@ -586,8 +586,8 @@ 1 2 - 10 - 11 + 11 + 12 @@ -604,8 +604,8 @@ - 10 - 11 + 11 + 12 @@ -692,8 +692,8 @@ 2 - 11 - 12 + 12 + 13 @@ -715,8 +715,8 @@ 2 - 12 - 13 + 13 + 14 @@ -738,8 +738,8 @@ 2 - 13 - 14 + 14 + 15 @@ -760,8 +760,8 @@ 2 - 14 - 15 + 15 + 16 @@ -774,8 +774,8 @@ 2 - 15 - 16 + 16 + 17 @@ -795,8 +795,8 @@ 2 - 16 - 17 + 17 + 18 @@ -808,8 +808,8 @@ 1 2 - 6 - 7 + 7 + 8 GTK_FILL @@ -826,11 +826,35 @@ - 6 - 7 + 7 + 8 + + + True + + + True + True + True + If selected, wicd will automatically connect to a wired network +as soon as a cable is plugged in, even if a wireless connection +is already active. + Always switch to a wired connection when available + 0 + True + + + + + 2 + 4 + 5 + 24 + + diff --git a/wicd/prefs.py b/wicd/prefs.py index b5779fb..bff88bb 100644 --- a/wicd/prefs.py +++ b/wicd/prefs.py @@ -58,6 +58,7 @@ class PreferencesDialog(object): self.reconnectcheckbox.set_active(daemon.GetAutoReconnect()) self.debugmodecheckbox.set_active(daemon.GetDebugMode()) self.displaytypecheckbox.set_active(daemon.GetSignalDisplayType()) + self.preferwiredcheckbox.set_active(daemon.GetPreferWiredNetwork()) dhcp_list = [self.dhcpautoradio, self.dhclientradio, self.dhcpcdradio, self.pumpradio] @@ -148,6 +149,7 @@ class PreferencesDialog(object): daemon.SetAutoReconnect(self.reconnectcheckbox.get_active()) daemon.SetDebugMode(self.debugmodecheckbox.get_active()) daemon.SetSignalDisplayType(int(self.displaytypecheckbox.get_active())) + daemon.SetPreferWiredNetwork(bool(self.preferwiredcheckbox.get_active())) if self.showlistradiobutton.get_active(): daemon.SetWiredAutoConnectMethod(2) elif self.lastusedradiobutton.get_active(): @@ -253,6 +255,8 @@ class PreferencesDialog(object): self.wiredcheckbox = setup_label("pref_always_check", 'wired_always_on') + self.preferwiredcheckbox = setup_label("pref_prefer_wired_check", + "prefer_wired") self.reconnectcheckbox = setup_label("pref_auto_check", 'auto_reconnect')