mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 13:10:29 +01:00
api/settings: expose the ConnectionRemoved signal
Helps out bindings.
This commit is contained in:
parent
3964d06b64
commit
452f8232b7
3 changed files with 21 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue