[network-manager-applet/rm-userset] editor: update connection signals for API changes



commit 3ecf964ecea73fb84356d35e60bcdc07c5189ebd
Author: Dan Williams <dcbw redhat com>
Date:   Wed Feb 2 18:30:59 2011 -0600

    editor: update connection signals for API changes
    
    ::updated no longer sends the settings hash in the signal
    since it has already updated the connection internally.

 src/connection-editor/nm-connection-list.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c
index d742864..60bbc59 100644
--- a/src/connection-editor/nm-connection-list.c
+++ b/src/connection-editor/nm-connection-list.c
@@ -1302,9 +1302,7 @@ connection_removed (NMRemoteConnection *connection, gpointer user_data)
 }
 
 static void
-connection_updated (NMRemoteConnection *connection,
-                    GHashTable *settings,
-                    gpointer user_data)
+connection_updated (NMRemoteConnection *connection, gpointer user_data)
 {
 	GtkListStore *store = GTK_LIST_STORE (user_data);
 	GtkTreeIter iter;
@@ -1342,8 +1340,8 @@ connection_added (NMRemoteSettings *settings,
 
 	g_free (last_used);
 
-	g_signal_connect (connection, "removed", G_CALLBACK (connection_removed), store);
-	g_signal_connect (connection, "updated", G_CALLBACK (connection_updated), store);
+	g_signal_connect (connection, NM_REMOTE_CONNECTION_REMOVED, G_CALLBACK (connection_removed), store);
+	g_signal_connect (connection, NM_REMOTE_CONNECTION_UPDATED, G_CALLBACK (connection_updated), store);
 }
 
 #define ICON_LOAD(x, y)	\



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]