Fixup tooltips. Still not working for the home page case, since

the active device logic is pretty broken.
This commit is contained in:
Marco Pesenti Gritti
2007-02-25 17:34:15 +01:00
parent b26ddc64ba
commit 66f26e4b8b
5 changed files with 45 additions and 12 deletions
+6
View File
@@ -75,6 +75,8 @@ class Network(gobject.GObject):
'init-failed' : (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE, ([])),
'strength-changed': (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE, ([])),
'essid-changed' : (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE, ([]))
}
@@ -109,6 +111,7 @@ class Network(gobject.GObject):
self._ssid, self._mode, self._strength))
self.emit('strength-changed')
self.emit('essid-changed')
def _update_error_cb(self, err):
logging.debug("Net(%s): failed to update. (%s)" % (self._op, err))
@@ -142,6 +145,8 @@ class Device(gobject.GObject):
'strength-changed': (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE,
([gobject.TYPE_PYOBJECT])),
'essid-changed': (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE, ([])),
'network-appeared': (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE,
([gobject.TYPE_PYOBJECT])),
@@ -273,6 +278,7 @@ class Device(gobject.GObject):
for (op, net) in self._networks.items():
if net.get_ssid() == ssid:
self._active_net = op
self.emit('essid-changed')
def get_type(self):
return self._type