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



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4039 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams
2008-09-05 15:11:34 +00:00
parent cfd7014c9d
commit f44da15bdf
2 changed files with 11 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
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
2008-09-05 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-ip4-config.c

View File

@@ -245,9 +245,6 @@ constructor (GType type,
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 @@ constructor (GType type,
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);