1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-22 05:48:03 +01:00

Checkpoint for work on getting reasons for connection failure back up to the UI.

This commit is contained in:
Dan O'Reilly
2008-12-21 00:19:18 -05:00
parent 69d2cd2d77
commit a82b53309e
4 changed files with 124 additions and 58 deletions

View File

@@ -295,17 +295,22 @@ class appGui(object):
'org.wicd.daemon.wireless')
bus.add_signal_receiver(self.update_connect_buttons, 'StatusChanged',
'org.wicd.daemon')
if standalone:
bus.add_signal_receiver(handle_no_dbus, "DaemonClosing",
"org.wicd.daemon")
bus.add_signal_receiver(lambda: setup_dbus(force=False),
"DaemonStarting", "org.wicd.daemon")
bus.add_signal_receiver(self.handle_connection_results,
'ConnectResultsSent', 'org.wicd.daemon')
bus.add_signal_receiver(handle_no_dbus, "DaemonClosing",
"org.wicd.daemon")
bus.add_signal_receiver(lambda: setup_dbus(force=False),
"DaemonStarting", "org.wicd.daemon")
try:
gobject.timeout_add_seconds(1, self.update_statusbar)
except:
gobject.timeout_add(1000, self.update_statusbar)
self.refresh_clicked()
def handle_connection_results(self, results):
if results != "Success" and self.is_visible:
error(self.window, results, block=False)
def create_adhoc_network(self, widget=None):
""" Shows a dialog that creates a new adhoc network. """