mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Fixed a bug that would sometimes cause the tray icon to not display the right connection state on startup.
This commit is contained in:
@@ -1136,8 +1136,7 @@ class ConnectionWizard(dbus.service.Object):
|
|||||||
self.SetUseGlobalDNS(False)
|
self.SetUseGlobalDNS(False)
|
||||||
self.SetGlobalDNS(False, False, False)
|
self.SetGlobalDNS(False, False, False)
|
||||||
if config.has_option("Settings", "auto_reconnect"):
|
if config.has_option("Settings", "auto_reconnect"):
|
||||||
self.auto_reconnect = config.get("Settings",
|
self.auto_reconnect = config.get("Settings", "auto_reconnect")
|
||||||
"auto_reconnect")
|
|
||||||
else:
|
else:
|
||||||
config.set("Settings", "auto_reconnect", "0")
|
config.set("Settings", "auto_reconnect", "0")
|
||||||
self.auto_reconnect = False
|
self.auto_reconnect = False
|
||||||
|
|||||||
5
gui.py
5
gui.py
@@ -896,9 +896,7 @@ class appGui:
|
|||||||
self.windowname = "gtkbench"
|
self.windowname = "gtkbench"
|
||||||
self.wTree = gtk.glade.XML(gladefile)
|
self.wTree = gtk.glade.XML(gladefile)
|
||||||
|
|
||||||
dic = { # "on_vpn_connection" : self.on_vpn_connection,
|
dic = { "refresh_clicked" : self.refresh_networks,
|
||||||
# I don't see a function that matches this...
|
|
||||||
"refresh_clicked" : self.refresh_networks,
|
|
||||||
"quit_clicked" : self.exit,
|
"quit_clicked" : self.exit,
|
||||||
"disconnect_clicked" : self.disconnect_wireless,
|
"disconnect_clicked" : self.disconnect_wireless,
|
||||||
"main_exit" : self.exit,
|
"main_exit" : self.exit,
|
||||||
@@ -935,6 +933,7 @@ class appGui:
|
|||||||
self.is_visible = True
|
self.is_visible = True
|
||||||
|
|
||||||
self.window.connect('delete_event', self.exit)
|
self.window.connect('delete_event', self.exit)
|
||||||
|
|
||||||
size = config.ReadWindowSize()
|
size = config.ReadWindowSize()
|
||||||
width = size[0]
|
width = size[0]
|
||||||
height = size[1]
|
height = size[1]
|
||||||
|
|||||||
3
wicd.py
3
wicd.py
@@ -100,7 +100,6 @@ language['connecting'] = _('Connecting...')
|
|||||||
|
|
||||||
class TrayIcon():
|
class TrayIcon():
|
||||||
def __init__(self, use_tray):
|
def __init__(self, use_tray):
|
||||||
print 'Use tray:',use_tray
|
|
||||||
if USE_EGG:
|
if USE_EGG:
|
||||||
self.tr = self.DapperTrayIconGUI(use_tray)
|
self.tr = self.DapperTrayIconGUI(use_tray)
|
||||||
else:
|
else:
|
||||||
@@ -118,6 +117,7 @@ class TrayIcon():
|
|||||||
self.tried_reconnect = False
|
self.tried_reconnect = False
|
||||||
self.connection_lost_counter = 0
|
self.connection_lost_counter = 0
|
||||||
self.tr = tr
|
self.tr = tr
|
||||||
|
self.update_tray_icon()
|
||||||
|
|
||||||
def wired_profile_chooser(self):
|
def wired_profile_chooser(self):
|
||||||
"""Launch the wired profile chooser."""
|
"""Launch the wired profile chooser."""
|
||||||
@@ -397,6 +397,5 @@ def main(argv):
|
|||||||
mainloop.run()
|
mainloop.run()
|
||||||
|
|
||||||
|
|
||||||
print 'Here.'
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main(sys.argv)
|
main(sys.argv)
|
||||||
|
|||||||
Reference in New Issue
Block a user