diff --git a/introspection/nm-settings-connection.xml b/introspection/nm-settings-connection.xml index 093738012d..df75d9c196 100644 --- a/introspection/nm-settings-connection.xml +++ b/introspection/nm-settings-connection.xml @@ -115,8 +115,9 @@ Emitted when this connection is no longer available. This happens when the connection is deleted or if it is no longer - accessable by any of the system's logged-in users. After - receipt of this signal, the object no longer exists. + accessible by any of the system's logged-in users. After + receipt of this signal, the object no longer exists. Also + see the Settings.ConnectionRemoved signal. diff --git a/introspection/nm-settings.xml b/introspection/nm-settings.xml index 7ce20d00ef..3a71959cb8 100644 --- a/introspection/nm-settings.xml +++ b/introspection/nm-settings.xml @@ -191,6 +191,21 @@ + + + Emitted when a connection is no longer available. This happens when + the connection is deleted or if it is no longer accessible by any of + the system's logged-in users. After receipt of this signal, the + connection no longer exists and cannot be used. Also see the + Settings.Connection.Removed signal. + + + + Object path of the removed connection. + + + + diff --git a/src/settings/nm-settings.c b/src/settings/nm-settings.c index 6c24ff5b38..852fa6d145 100644 --- a/src/settings/nm-settings.c +++ b/src/settings/nm-settings.c @@ -749,8 +749,10 @@ connection_removed (NMSettingsConnection *connection, gpointer user_data) g_hash_table_remove (NM_SETTINGS_GET_PRIVATE (user_data)->connections, (gpointer) nm_connection_get_path (NM_CONNECTION (connection))); - /* Re-emit for listeners like NMPolicy */ + /* Notify D-Bus */ g_signal_emit (self, signals[CONNECTION_REMOVED], 0, connection); + + /* Re-emit for listeners like NMPolicy */ g_signal_emit_by_name (self, NM_CP_SIGNAL_CONNECTION_REMOVED, connection); g_object_notify (G_OBJECT (self), NM_SETTINGS_CONNECTIONS);