# HG changeset patch # User Richard Laager # Date 1210461550 0 # Node ID f5d39c44465a0abe89c570fe9d7951ab2eba3c94 # Parent 5451ce45eeb30ac1a95edb60705788dcb1d45856 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. diff -r 5451ce45eeb3 -r f5d39c44465a libpurple/network.c --- 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) {