Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/hardware/nmclient.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-02-26 11:26:10 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-02-26 11:26:10 (GMT)
commitfa1d25d4411b3392b5ae0ddb50958e27c9299599 (patch)
tree1035f45988009dc8a9daa787008a8c46591ee463 /shell/hardware/nmclient.py
parent89a91954c91b18df5cf961732fca5f938f375797 (diff)
Add a device-added signal
Diffstat (limited to 'shell/hardware/nmclient.py')
-rw-r--r--shell/hardware/nmclient.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/hardware/nmclient.py b/shell/hardware/nmclient.py
index 61685cf..fa763ab 100644
--- a/shell/hardware/nmclient.py
+++ b/shell/hardware/nmclient.py
@@ -335,6 +335,9 @@ class Device(gobject.GObject):
class NMClient(gobject.GObject):
__gsignals__ = {
+ 'device-added' : (gobject.SIGNAL_RUN_FIRST,
+ gobject.TYPE_NONE,
+ ([gobject.TYPE_PYOBJECT])),
'device-activated' : (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE,
([gobject.TYPE_PYOBJECT])),
@@ -386,6 +389,8 @@ class NMClient(gobject.GObject):
dev.connect('init-failed', self._dev_init_failed_cb)
dev.connect('state-changed', self._dev_state_changed_cb)
+ self.emit('device-added', dev)
+
def _remove_device(self, dev_op):
if not self._devices.has_key(dev_op):
return