diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-25 13:30:17 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-25 13:30:17 (GMT) |
commit | f907ceeae67f0a42ddd4a1b4e17ddcaf5cfa8ae8 (patch) | |
tree | 0e3a24fa368dfd68a093a7d32a656f7bcdd2d89e /shell/hardware/nmclient.py | |
parent | 81e2e9ed8db11aff7daab714b7328b099cc73d8a (diff) |
Display strength of wireless device/networks
Diffstat (limited to 'shell/hardware/nmclient.py')
-rw-r--r-- | shell/hardware/nmclient.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/hardware/nmclient.py b/shell/hardware/nmclient.py index 90a2125..41bf5e2 100644 --- a/shell/hardware/nmclient.py +++ b/shell/hardware/nmclient.py @@ -70,10 +70,12 @@ NM_802_11_CAP_CIPHER_WEP104 = 0x00002000 NM_802_11_CAP_CIPHER_TKIP = 0x00004000 NM_802_11_CAP_CIPHER_CCMP = 0x00008000 - class Network(gobject.GObject): __gsignals__ = { - 'init-failed': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([])) + 'init-failed' : (gobject.SIGNAL_RUN_FIRST, + gobject.TYPE_NONE, ([])), + 'strength-changed': (gobject.SIGNAL_RUN_FIRST, + gobject.TYPE_NONE, ([])) } def __init__(self, op): @@ -122,6 +124,7 @@ class Network(gobject.GObject): def set_strength(self, strength): self._strength = strength + self.emit('strength-changed') def is_valid(self): return self._valid |