Commit 452f8232 authored by Dan Williams's avatar Dan Williams

api/settings: expose the ConnectionRemoved signal

Helps out bindings.
parent 3964d06b
......@@ -115,8 +115,9 @@
<tp:docstring>
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.
</tp:docstring>
</signal>
......
......@@ -191,6 +191,21 @@
</arg>
</signal>
<signal name="ConnectionRemoved">
<tp:docstring>
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.
</tp:docstring>
<arg name="connection" type="o">
<tp:docstring>
Object path of the removed connection.
</tp:docstring>
</arg>
</signal>
</interface>
</node>
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment