Fixup tooltips. Still not working for the home page case, since
the active device logic is pretty broken.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user