diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-25 11:36:44 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-02-25 11:36:44 (GMT) |
commit | 7c135804bc53708a23c808640145e37ae3b22f6b (patch) | |
tree | 5bc743c667bed4341e97adf41e5a277d722b85dc /shell/hardware | |
parent | 38ac42d6650154659dd2f1c354c023f29f07de7d (diff) |
Handle device removal
Diffstat (limited to 'shell/hardware')
-rw-r--r-- | shell/hardware/nmclient.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/hardware/nmclient.py b/shell/hardware/nmclient.py index c98f1e2..acbac92 100644 --- a/shell/hardware/nmclient.py +++ b/shell/hardware/nmclient.py @@ -130,6 +130,8 @@ class Device(gobject.GObject): gobject.TYPE_NONE, ([])), 'activated': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([])), + 'deactivated': (gobject.SIGNAL_RUN_FIRST, + gobject.TYPE_NONE, ([])), 'strength-changed': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE, ([gobject.TYPE_PYOBJECT])), @@ -179,6 +181,8 @@ class Device(gobject.GObject): if self._active: self.emit('activated') + else: + self.emit('deactivated') def _update_networks(self, net_ops, active_op): for op in net_ops: |