1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-21 05:18:02 +01:00

Testing/Experimental:

- Emit a dbus signal when an autoscan is called, so that the GUI can update if needed.

Experimental:
- Merged a few changes from the testing branch.
This commit is contained in:
imdano
2008-05-04 18:10:47 +00:00
parent e6ffa892ff
commit 0d1ba53bb1
4 changed files with 31 additions and 9 deletions

View File

@@ -154,7 +154,7 @@ class ConnectionStatus():
"""
wired_ip = None
wifi_ip = None
try:
if daemon.GetSuspend():
print "Suspended."
@@ -191,10 +191,10 @@ class ConnectionStatus():
self.auto_reconnect(from_wireless)
self.update_state(state)
except dbus.exceptions.DBusException, e:
print 'DBus Error: ' + str(e)
print 'Ignoring DBus Error: ' + str(e)
finally:
return True
def update_state(self, state, wired_ip=None, wifi_ip=None):
""" Set the current connection state. """
# Set our connection state/info.
@@ -272,8 +272,9 @@ class ConnectionStatus():
if daemon.GetSuspend():
return True
wireless.Scan()
daemon.SendScanSignal()
except dbus.exceptions.DBusException:
pass
print 'dbus exception while attempting rescan'
finally:
return True