Commit 7b50607f authored by Dan Williams's avatar Dan Williams

settings: consolidate settings connection purged and removed signals

They almost do the same thing.
parent d2d48676
......@@ -68,7 +68,6 @@ enum {
UPDATED,
CHECK_PERMISSIONS,
REMOVED,
PURGED,
LAST_SIGNAL
};
......@@ -427,7 +426,7 @@ do_delete (NMSysconfigConnection *connection,
{
g_object_ref (connection);
set_visible (connection, FALSE);
g_signal_emit (connection, signals[PURGED], 0);
g_signal_emit (connection, signals[REMOVED], 0);
callback (connection, NULL, user_data);
g_object_unref (connection);
}
......@@ -1054,15 +1053,6 @@ nm_sysconfig_connection_class_init (NMSysconfigConnectionClass *class)
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
signals[PURGED] =
g_signal_new (NM_SYSCONFIG_CONNECTION_PURGED,
G_TYPE_FROM_CLASS (class),
G_SIGNAL_RUN_FIRST,
0,
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
dbus_g_object_type_install_info (G_TYPE_FROM_CLASS (class),
&dbus_glib_nm_sysconfig_connection_object_info);
......
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