1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-21 21:38:06 +01:00
This commit is contained in:
Adam Blackburn
2009-04-23 19:41:10 +08:00
2 changed files with 4 additions and 0 deletions

View File

@@ -178,6 +178,9 @@ class WiredSettingsDialog(AdvancedSettingsDialog):
self.global_dns_cb.set_state(bool(wired.GetWiredProperty('use_global_dns')))
self.static_dns_cb.set_state(bool(wired.GetWiredProperty('use_static_dns')))
# Set static ip checkbox. Forgot to do this the first time.
if stringToNone(self.ip_edit.get_edit_text()):
self.static_ip_cb.set_state(True)
self.dns1.set_edit_text(self.format_entry( "dns1"))
self.dns2.set_edit_text(self.format_entry( "dns2"))
self.dns3.set_edit_text(self.format_entry( "dns3"))

View File

@@ -149,6 +149,7 @@ class appGui(object):
gladefile = os.path.join(wpath.share, "wicd.glade")
self.wTree = gtk.glade.XML(gladefile)
self.window = self.wTree.get_widget("window1")
self.window.set_icon_from_file(wpath.icons +'scalable/apps/wicd-client.svg')
size = daemon.ReadWindowSize("main")
width = size[0]
height = size[1]