From e386ebef39262184c261b8cc8fa04e47c1cca2fc Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Fri, 11 Feb 2011 18:26:59 -0600 Subject: [PATCH] libnm-glib: use define instead of string for Removed signal Less error-prone and makes a mistype a compile error. --- libnm-glib/nm-remote-settings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libnm-glib/nm-remote-settings.c b/libnm-glib/nm-remote-settings.c index 8e5ffb118..2c2bf6947 100644 --- a/libnm-glib/nm-remote-settings.c +++ b/libnm-glib/nm-remote-settings.c @@ -291,7 +291,7 @@ new_connection_cb (DBusGProxy *proxy, const char *path, gpointer user_data) /* Create a new connection object for it */ connection = nm_remote_connection_new (priv->bus, path); if (connection) { - g_signal_connect (connection, "removed", + g_signal_connect (connection, NM_REMOTE_CONNECTION_REMOVED, G_CALLBACK (connection_removed_cb), self); @@ -473,7 +473,7 @@ clear_one_hash (GHashTable *table) list = g_slist_prepend (list, NM_REMOTE_CONNECTION (value)); for (list_iter = list; list_iter; list_iter = g_slist_next (list_iter)) - g_signal_emit_by_name (NM_REMOTE_CONNECTION (list_iter->data), "removed"); + g_signal_emit_by_name (NM_REMOTE_CONNECTION (list_iter->data), NM_REMOTE_CONNECTION_REMOVED); g_slist_free (list); g_hash_table_remove_all (table);