/soc/2013/ankitkv/gobjectification: ea477f05a2ea: Connect signal...

Ankit Vani a at nevitus.org
Sun Aug 11 17:24:22 EDT 2013


Changeset: ea477f05a2ea62e520e01c75f396126fad8efa4f
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-08-12 02:51 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/ea477f05a2ea

Description:

Connect signals by protocol instead of plugin

diffstat:

 libpurple/protocols/jabber/libfacebook.c |  2 +-
 libpurple/protocols/jabber/libgtalk.c    |  2 +-
 libpurple/protocols/jabber/libxmpp.c     |  2 +-
 libpurple/protocols/msn/msn.c            |  2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diffs (48 lines):

diff --git a/libpurple/protocols/jabber/libfacebook.c b/libpurple/protocols/jabber/libfacebook.c
--- a/libpurple/protocols/jabber/libfacebook.c
+++ b/libpurple/protocols/jabber/libfacebook.c
@@ -288,7 +288,7 @@ plugin_load(PurplePlugin *plugin, GError
 
 	my_protocol = &prpl_info;
 
-	purple_signal_connect(purple_get_core(), "uri-handler", plugin,
+	purple_signal_connect(purple_get_core(), "uri-handler", my_protocol,
 		PURPLE_CALLBACK(xmpp_uri_handler), NULL);
 
 	purple_protocols_add(my_protocol);
diff --git a/libpurple/protocols/jabber/libgtalk.c b/libpurple/protocols/jabber/libgtalk.c
--- a/libpurple/protocols/jabber/libgtalk.c
+++ b/libpurple/protocols/jabber/libgtalk.c
@@ -296,7 +296,7 @@ plugin_load(PurplePlugin *plugin, GError
 
 	my_protocol = &prpl_info;
 
-	purple_signal_connect(purple_get_core(), "uri-handler", plugin,
+	purple_signal_connect(purple_get_core(), "uri-handler", my_protocol,
 		PURPLE_CALLBACK(xmpp_uri_handler), NULL);
 
 	purple_protocols_add(my_protocol);
diff --git a/libpurple/protocols/jabber/libxmpp.c b/libpurple/protocols/jabber/libxmpp.c
--- a/libpurple/protocols/jabber/libxmpp.c
+++ b/libpurple/protocols/jabber/libxmpp.c
@@ -292,7 +292,7 @@ plugin_load(PurplePlugin *plugin, GError
 
 	purple_prefs_remove("/plugins/prpl/jabber");
 
-	purple_signal_connect(purple_get_core(), "uri-handler", plugin,
+	purple_signal_connect(purple_get_core(), "uri-handler", my_protocol,
 		PURPLE_CALLBACK(xmpp_uri_handler), NULL);
 
 	purple_protocols_add(my_protocol);
diff --git a/libpurple/protocols/msn/msn.c b/libpurple/protocols/msn/msn.c
--- a/libpurple/protocols/msn/msn.c
+++ b/libpurple/protocols/msn/msn.c
@@ -3006,7 +3006,7 @@ plugin_load(PurplePlugin *plugin, GError
 
 	purple_prefs_remove("/plugins/prpl/msn");
 
-	purple_signal_connect(purple_get_core(), "uri-handler", plugin,
+	purple_signal_connect(purple_get_core(), "uri-handler", &prpl_info,
 		PURPLE_CALLBACK(msn_uri_handler), NULL);
 
 	msn_notification_init();



More information about the Commits mailing list