manager: fix notification of the connectivity property

Notify DBus clients at the end of a connectivity check, and when
NMConnectivity reports a change.

https://bugzilla.gnome.org/show_bug.cgi?id=724550
This commit is contained in:
Giovanni Campagna
2014-02-17 15:41:04 +01:00
committed by Dan Winship
parent a493cda8d6
commit f6f216f0a9

View File

@@ -647,6 +647,7 @@ checked_connectivity (GObject *object, GAsyncResult *result, gpointer user_data)
else if ( connectivity == NM_CONNECTIVITY_PORTAL else if ( connectivity == NM_CONNECTIVITY_PORTAL
|| connectivity == NM_CONNECTIVITY_LIMITED) || connectivity == NM_CONNECTIVITY_LIMITED)
set_state (manager, NM_STATE_CONNECTED_SITE); set_state (manager, NM_STATE_CONNECTED_SITE);
g_object_notify (G_OBJECT (manager), NM_MANAGER_CONNECTIVITY);
} }
g_object_unref (manager); g_object_unref (manager);
@@ -4290,6 +4291,7 @@ connectivity_changed (NMConnectivity *connectivity,
connectivity_states[state]); connectivity_states[state]);
nm_manager_update_state (self); nm_manager_update_state (self);
g_object_notify (G_OBJECT (self), NM_MANAGER_CONNECTIVITY);
} }
static void static void