diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-25 16:34:15 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-25 16:34:15 (GMT) |
commit | 66f26e4b8b9745d7700bae169cd10f60cf36597c (patch) | |
tree | 757c15f4613576854a2146bfd18929db97a432b1 /shell/hardware/nmclient.py | |
parent | b26ddc64bad61d8fcdbdc49d8e0f2c82e685b701 (diff) |
Fixup tooltips. Still not working for the home page case, since
the active device logic is pretty broken.
Diffstat (limited to 'shell/hardware/nmclient.py')
-rw-r--r-- | shell/hardware/nmclient.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/hardware/nmclient.py b/shell/hardware/nmclient.py index 910b682..8eaab2f 100644 --- a/shell/hardware/nmclient.py +++ b/shell/hardware/nmclient.py @@ -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 |