[network-manager-applet/polkit1] settings: use NM_SETTINGS_INTERFACE_NEW_CONNECTION where appropriate
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [network-manager-applet/polkit1] settings: use NM_SETTINGS_INTERFACE_NEW_CONNECTION where appropriate
- Date: Sat, 22 Aug 2009 21:23:10 +0000 (UTC)
commit 954f7402c99f9c8df40a4b931ca74320d590e3d8
Author: Dan Williams <dcbw redhat com>
Date: Sat Aug 22 16:19:29 2009 -0500
settings: use NM_SETTINGS_INTERFACE_NEW_CONNECTION where appropriate
src/applet-device-wifi.c | 3 ++-
src/connection-editor/nm-connection-list.c | 14 ++++++++------
2 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c
index 41cff73..afe39bd 100644
--- a/src/applet-device-wifi.c
+++ b/src/applet-device-wifi.c
@@ -1098,7 +1098,8 @@ wireless_device_added (NMDevice *device, NMApplet *applet)
* that might be candididates. Keep the ID around so we can disconnect
* when the device is destroyed.
*/
- id = g_signal_connect (applet_get_settings (applet), "new-connection",
+ id = g_signal_connect (applet_get_settings (applet),
+ NM_SETTINGS_INTERFACE_NEW_CONNECTION,
G_CALLBACK (on_new_connection),
data);
data->new_con_id = id;
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
index 43e6509..ec4c197 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -1609,14 +1609,16 @@ nm_connection_list_new (GType def_type)
list->system_settings = nm_remote_settings_system_new (bus);
dbus_g_connection_unref (bus);
- g_signal_connect (list->system_settings, "new-connection",
- G_CALLBACK (connection_added),
- list);
+ g_signal_connect (list->system_settings,
+ NM_SETTINGS_INTERFACE_NEW_CONNECTION,
+ G_CALLBACK (connection_added),
+ list);
list->gconf_settings = nma_gconf_settings_new (NULL);
- g_signal_connect (list->gconf_settings, "new-connection",
- G_CALLBACK (connection_added),
- list);
+ g_signal_connect (list->gconf_settings,
+ NM_SETTINGS_INTERFACE_NEW_CONNECTION,
+ G_CALLBACK (connection_added),
+ list);
add_connection_tabs (list, def_type);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]