changeset 22862:f5d39c44465a

Modify the NetworkManager support to use "StateChange" directly, instead of NM_DBUS_SIGNAL_STATE_CHANGE. "StateChange" was changed to "StateChanged". They no longer list either in the header file. Apparently, you just use the string and that's okay.
author Richard Laager <rlaager@wiktel.com>
date Sat, 10 May 2008 23:19:10 +0000
parents 5451ce45eeb3
children 40364452eeaa
files libpurple/network.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/network.c	Sat May 10 09:24:58 2008 +0000
+++ b/libpurple/network.c	Sat May 10 23:19:10 2008 +0000
@@ -738,8 +738,8 @@
 		                                     NM_DBUS_SERVICE,
 		                                     NM_DBUS_PATH,
 		                                     NM_DBUS_INTERFACE);
-		dbus_g_proxy_add_signal(nm_proxy, NM_DBUS_SIGNAL_STATE_CHANGE, G_TYPE_UINT, G_TYPE_INVALID);
-		dbus_g_proxy_connect_signal(nm_proxy, NM_DBUS_SIGNAL_STATE_CHANGE,
+		dbus_g_proxy_add_signal(nm_proxy, "StateChange", G_TYPE_UINT, G_TYPE_INVALID);
+		dbus_g_proxy_connect_signal(nm_proxy, "StateChange",
 		                            G_CALLBACK(nm_state_change_cb), NULL, NULL);
 
 		dbus_proxy = dbus_g_proxy_new_for_name(nm_conn,
@@ -764,7 +764,7 @@
 {
 #ifdef HAVE_NETWORKMANAGER_NETWORKMANAGER_H
 	if (nm_proxy) {
-		dbus_g_proxy_disconnect_signal(nm_proxy, NM_DBUS_SIGNAL_STATE_CHANGE, G_CALLBACK(nm_state_change_cb), NULL);
+		dbus_g_proxy_disconnect_signal(nm_proxy, "StateChange", G_CALLBACK(nm_state_change_cb), NULL);
 		g_object_unref(G_OBJECT(nm_proxy));
 	}
 	if (dbus_proxy) {