NetworkManager r4039 - in trunk: . libnm-glib



Author: dcbw
Date: Fri Sep  5 15:11:34 2008
New Revision: 4039
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=4039&view=rev

Log:
2008-09-05  Dan Williams  <dcbw redhat com>

	* libnm-glib/nm-client.c
		- (constructor): get initial state after we know whether NM is running
			or not



Modified:
   trunk/ChangeLog
   trunk/libnm-glib/nm-client.c

Modified: trunk/libnm-glib/nm-client.c
==============================================================================
--- trunk/libnm-glib/nm-client.c	(original)
+++ trunk/libnm-glib/nm-client.c	Fri Sep  5 15:11:34 2008
@@ -245,9 +245,6 @@
 						    object,
 						    NULL);
 
-	update_wireless_status (NM_CLIENT (object), FALSE);
-	nm_client_get_state (NM_CLIENT (object));
-
 	priv->bus_proxy = dbus_g_proxy_new_for_name (connection,
 										"org.freedesktop.DBus",
 										"/org/freedesktop/DBus",
@@ -271,6 +268,11 @@
 		g_error_free (err);
 	}
 
+	if (priv->manager_running) {
+		update_wireless_status (NM_CLIENT (object), FALSE);
+		nm_client_get_state (NM_CLIENT (object));
+	}
+
 	g_signal_connect (G_OBJECT (object), "notify::" NM_CLIENT_WIRELESS_ENABLED,
 	                  G_CALLBACK (wireless_enabled_cb), NULL);
 



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