diff options
author | Dan Williams <dcbw@redhat.com> | 2008-09-05 15:11:34 +0000 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2008-09-05 15:11:34 +0000 |
commit | f44da15bdfa1912833878b95fd1b00fc7dd08b4b (patch) | |
tree | 32afdc71367e5aa501644119b077e0f8cced94dd /libnm-glib | |
parent | cfd7014c9de3370981c8c8a2143fc8a6656b2a80 (diff) | |
download | NetworkManager-f44da15bdfa1912833878b95fd1b00fc7dd08b4b.tar.gz |
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
Diffstat (limited to 'libnm-glib')
-rw-r--r-- | libnm-glib/nm-client.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libnm-glib/nm-client.c b/libnm-glib/nm-client.c index fad65082bd..058f4584fd 100644 --- a/libnm-glib/nm-client.c +++ b/libnm-glib/nm-client.c @@ -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); |