Commit 02711a0e authored by Dan Williams's avatar Dan Williams

settings: re-add exported NewConnection signal

Oops, got removed in an earlier commit.
parent f1d4af69
......@@ -126,6 +126,7 @@ enum {
CONNECTION_VISIBILITY_CHANGED,
CONNECTIONS_LOADED,
NEW_CONNECTION, /* exported, not used internally */
LAST_SIGNAL
};
......@@ -667,8 +668,13 @@ claim_connection (NMSysconfigSettings *self,
* we suppress it, then send the connections-loaded signal after we're all
* done to minimize processing.
*/
if (priv->connections_loaded)
if (priv->connections_loaded) {
/* Internal added signal */
g_signal_emit (self, signals[CONNECTION_ADDED], 0, connection);
/* Exported D-Bus signal */
g_signal_emit (self, signals[NEW_CONNECTION], 0, connection);
}
}
// TODO it seems that this is only ever used to remove a
......@@ -1502,6 +1508,13 @@ nm_sysconfig_settings_class_init (NMSysconfigSettingsClass *class)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
signals[NEW_CONNECTION] =
g_signal_new ("new-connection",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST, 0, NULL, NULL,
g_cclosure_marshal_VOID__OBJECT,
G_TYPE_NONE, 0);
dbus_g_error_domain_register (NM_SYSCONFIG_SETTINGS_ERROR,
NM_DBUS_IFACE_SETTINGS,
NM_TYPE_SYSCONFIG_SETTINGS_ERROR);
......
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