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;