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:
authorDan Williams <dcbw@redhat.com>2007-03-29 19:01:46 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-03-29 19:01:46 (GMT)
commit83a86e0ea1b6ce3f990552f0d0d599a04ef6411d (patch)
tree894f907f030106afff0b3d6e101f2c5f4a4204e0 /shell/hardware/nmclient.py
parent40f4c81d061aa6d81af9589864228a35d2c110fd (diff)
Add a 'device activating' signal
Diffstat (limited to 'shell/hardware/nmclient.py')
-rw-r--r--shell/hardware/nmclient.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/hardware/nmclient.py b/shell/hardware/nmclient.py
index 7691e72..d1178f2 100644
--- a/shell/hardware/nmclient.py
+++ b/shell/hardware/nmclient.py
@@ -390,6 +390,9 @@ class NMClient(gobject.GObject):
'device-activated' : (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE,
([gobject.TYPE_PYOBJECT])),
+ 'device-activating': (gobject.SIGNAL_RUN_FIRST,
+ gobject.TYPE_NONE,
+ ([gobject.TYPE_PYOBJECT])),
'device-removed' : (gobject.SIGNAL_RUN_FIRST,
gobject.TYPE_NONE,
([gobject.TYPE_PYOBJECT]))
@@ -454,7 +457,9 @@ class NMClient(gobject.GObject):
op = dev.get_op()
if not self._devices.has_key(op) or not dev.is_valid():
return
- if dev.get_state() != DEVICE_STATE_INACTIVE:
+ if dev.get_state() == DEVICE_STATE_ACTIVATING:
+ self.emit('device-activating', dev)
+ elif dev.get_state() == DEVICE_STATE_ACTIVATED:
self.emit('device-activated', dev)
def get_device(self, dev_op):