From 74c3ed23a3c0ccade03e4fd1c6b236722fa1ac91 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 24 Aug 2009 10:15:32 -0500 Subject: [PATCH] libnm-glib: use defined signal names --- libnm-glib/nm-settings-connection-interface.c | 6 +++--- libnm-glib/nm-settings-connection-interface.h | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libnm-glib/nm-settings-connection-interface.c b/libnm-glib/nm-settings-connection-interface.c index cc3c4b977e..7405fd4678 100644 --- a/libnm-glib/nm-settings-connection-interface.c +++ b/libnm-glib/nm-settings-connection-interface.c @@ -127,7 +127,7 @@ nm_settings_connection_interface_emit_updated (NMSettingsConnectionInterface *co settings = nm_connection_to_hash (tmp); g_object_unref (tmp); - g_signal_emit_by_name (connection, "updated", settings); + g_signal_emit_by_name (connection, NM_SETTINGS_CONNECTION_INTERFACE_UPDATED, settings); g_hash_table_destroy (settings); } } @@ -142,7 +142,7 @@ nm_settings_connection_interface_init (gpointer g_iface) return; /* Signals */ - g_signal_new ("updated", + g_signal_new (NM_SETTINGS_CONNECTION_INTERFACE_UPDATED, iface_type, G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMSettingsConnectionInterface, updated), @@ -150,7 +150,7 @@ nm_settings_connection_interface_init (gpointer g_iface) g_cclosure_marshal_VOID__BOXED, G_TYPE_NONE, 1, DBUS_TYPE_G_MAP_OF_MAP_OF_VARIANT); - g_signal_new ("removed", + g_signal_new (NM_SETTINGS_CONNECTION_INTERFACE_REMOVED, iface_type, G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (NMSettingsConnectionInterface, removed), diff --git a/libnm-glib/nm-settings-connection-interface.h b/libnm-glib/nm-settings-connection-interface.h index e8118bb72e..477ff9863d 100644 --- a/libnm-glib/nm-settings-connection-interface.h +++ b/libnm-glib/nm-settings-connection-interface.h @@ -36,6 +36,8 @@ G_BEGIN_DECLS #define NM_IS_SETTINGS_CONNECTION_INTERFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTINGS_CONNECTION_INTERFACE)) #define NM_SETTINGS_CONNECTION_INTERFACE_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), NM_TYPE_SETTINGS_CONNECTION_INTERFACE, NMSettingsConnectionInterface)) +#define NM_SETTINGS_CONNECTION_INTERFACE_UPDATED "updated" +#define NM_SETTINGS_CONNECTION_INTERFACE_REMOVED "removed" typedef struct _NMSettingsConnectionInterface NMSettingsConnectionInterface;