NetworkManager r3489 - trunk/src



Author: dcbw
Date: Mon Mar 24 02:56:25 2008
New Revision: 3489
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3489&view=rev

Log:
Notify on device state change

Modified:
   trunk/src/nm-device.c

Modified: trunk/src/nm-device.c
==============================================================================
--- trunk/src/nm-device.c	(original)
+++ trunk/src/nm-device.c	Mon Mar 24 02:56:25 2008
@@ -1733,10 +1733,14 @@
 
 	g_return_if_fail (NM_IS_DEVICE (device));
 
+	if (device->priv->state == state)
+		return;
+
 	iface = nm_device_get_iface (device);
 	old_state = device->priv->state;
 	device->priv->state = state;
 
+	g_object_notify (G_OBJECT (device), NM_DEVICE_INTERFACE_STATE);
 	g_signal_emit_by_name (device, "state-changed", state);
 
 	switch (state) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]