settings: re-add exported NewConnection signal
Oops, got removed in an earlier commit.
This commit is contained in:
@@ -126,6 +126,7 @@ enum {
|
|||||||
CONNECTION_VISIBILITY_CHANGED,
|
CONNECTION_VISIBILITY_CHANGED,
|
||||||
CONNECTIONS_LOADED,
|
CONNECTIONS_LOADED,
|
||||||
|
|
||||||
|
NEW_CONNECTION, /* exported, not used internally */
|
||||||
LAST_SIGNAL
|
LAST_SIGNAL
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -667,8 +668,13 @@ claim_connection (NMSysconfigSettings *self,
|
|||||||
* we suppress it, then send the connections-loaded signal after we're all
|
* we suppress it, then send the connections-loaded signal after we're all
|
||||||
* done to minimize processing.
|
* done to minimize processing.
|
||||||
*/
|
*/
|
||||||
if (priv->connections_loaded)
|
if (priv->connections_loaded) {
|
||||||
|
/* Internal added signal */
|
||||||
g_signal_emit (self, signals[CONNECTION_ADDED], 0, connection);
|
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
|
// 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_cclosure_marshal_VOID__VOID,
|
||||||
G_TYPE_NONE, 0);
|
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,
|
dbus_g_error_domain_register (NM_SYSCONFIG_SETTINGS_ERROR,
|
||||||
NM_DBUS_IFACE_SETTINGS,
|
NM_DBUS_IFACE_SETTINGS,
|
||||||
NM_TYPE_SYSCONFIG_SETTINGS_ERROR);
|
NM_TYPE_SYSCONFIG_SETTINGS_ERROR);
|
||||||
|
Reference in New Issue
Block a user