gobjectification: d43757bc: Fix signal registration in Pidgin.

qulogic at pidgin.im qulogic at pidgin.im
Sun Nov 8 03:31:36 EST 2009


-----------------------------------------------------------------
Revision: d43757bccef26678cc1d3b561ea116003d00b942
Ancestor: 5a63ecc7dd4872bb67cb8c01dcc3ab4dd9b24a8f
Author: qulogic at pidgin.im
Date: 2009-11-08T07:57:09
Branch: im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/d43757bccef26678cc1d3b561ea116003d00b942

Modified files:
        pidgin/gtkaccount.c pidgin/gtkstatusbox.c
        pidgin/plugins/disco/xmppdisco.c

ChangeLog: 

Fix signal registration in Pidgin.

-------------- next part --------------
============================================================
--- pidgin/gtkaccount.c	d8f8e5a03374586207c6a6d9a785ede62fd5cc45
+++ pidgin/gtkaccount.c	e3b004f1c9886d0531c610a550318b8edc55f1d9
@@ -32,6 +32,7 @@
 #include "accountopt.h"
 #include "core.h"
 #include "debug.h"
+#include "gsignal.h"
 #include "notify.h"
 #include "plugin.h"
 #include "prefs.h"
@@ -2596,7 +2597,7 @@ pidgin_account_init(void)
 	g_signal_connect(purple_account_manager_get(), "account-added",
 			G_CALLBACK(add_account_to_liststore), NULL);
 #else
-	purple_type_connect(PURPLE_TYPE_ACCOUNT, "new",
+	purple_g_signal_connect(PURPLE_TYPE_ACCOUNT, "new",
 			G_CALLBACK(add_account_to_liststore), NULL);
 	g_signal_connect(purple_account_manager_get(), "account-removed",
 			G_CALLBACK(account_removed_cb), NULL);
============================================================
--- pidgin/gtkstatusbox.c	56ffb8e765079679216a463abeec2a6400cd4eb3
+++ pidgin/gtkstatusbox.c	27bbe24427877187f6f179fd719cb87adc2151a8
@@ -47,6 +47,7 @@
 #include "account.h"
 #include "buddyicon.h"
 #include "core.h"
+#include "gsignal.h"
 #include "imgstore.h"
 #include "network.h"
 #include "request.h"
@@ -1935,7 +1936,7 @@ pidgin_status_box_init (PidginStatusBox 
 			"savedstatus-modified", status_box,
 			PURPLE_CALLBACK(saved_status_updated_cb), status_box);
 
-	purple_type_connect(PURPLE_TYPE_ACCOUNT, "enable-changed",
+	purple_g_signal_connect(PURPLE_TYPE_ACCOUNT, "enable-changed",
 		G_CALLBACK(account_enabled_cb), status_box);
 
 	purple_signal_connect(purple_accounts_get_handle(), "account-status-changed", status_box,
============================================================
--- pidgin/plugins/disco/xmppdisco.c	eb4b0bfb22a7fb456b9685837215e9e2797e532c
+++ pidgin/plugins/disco/xmppdisco.c	22d73500b060f32e526c0390d281558ff37f61b4
@@ -40,6 +40,7 @@ disco#info:
 #include "pidgin.h"
 
 #include "debug.h"
+#include "gsignal.h"
 #include "signals.h"
 #include "version.h"
 
@@ -625,8 +626,8 @@ plugin_load(PurplePlugin *plugin)
 	if (NULL == xmpp_prpl)
 		return FALSE;
 
-	purple_type_connect(PURPLE_TYPE_CONNECTION, "signing-off",
-	                    PURPLE_CALLBACK(signed_off_cb), NULL);
+	purple_g_signal_connect(PURPLE_TYPE_CONNECTION, "signing-off",
+	                        PURPLE_CALLBACK(signed_off_cb), NULL);
 
 	iq_callbacks = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
 


More information about the Commits mailing list