pidgin: 62e372ea: Modify the NetworkManager support to use...
rlaager at pidgin.im
rlaager at pidgin.im
Sat May 10 20:30:43 EDT 2008
-----------------------------------------------------------------
Revision: 62e372ea0e5f6eb1b56f43621e580e3e3be7e894
Ancestor: 727d816d20ca2bcfae91438cbd708b9f3d7de105
Author: rlaager at pidgin.im
Date: 2008-05-10T23:19:10
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/62e372ea0e5f6eb1b56f43621e580e3e3be7e894
Modified files:
libpurple/network.c
ChangeLog:
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.
-------------- next part --------------
============================================================
--- libpurple/network.c 403c41e2edc357d19e6fd9fd9a549fec073e629b
+++ libpurple/network.c 74f137777281a813fb5c9a6156745b2997f07dcc
@@ -738,8 +738,8 @@ purple_network_init(void)
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 @@ purple_network_uninit(void)
{
#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) {
More information about the Commits
mailing list