/soc/2013/ankitkv/gobjectification: b77b3a8401c5: Moved irc sign...

Ankit Vani a at nevitus.org
Sun Sep 1 17:14:12 EDT 2013


Changeset: b77b3a8401c57226a08f5e4706f9bcb568915104
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-09-02 02:33 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/b77b3a8401c5

Description:

Moved irc signal registrations to plugin_load, so that _irc_protocol is initialized

diffstat:

 libpurple/protocols/irc/irc.c |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (35 lines):

diff --git a/libpurple/protocols/irc/irc.c b/libpurple/protocols/irc/irc.c
--- a/libpurple/protocols/irc/irc.c
+++ b/libpurple/protocols/irc/irc.c
@@ -975,15 +975,6 @@ irc_protocol_base_init(IRCProtocolClass 
 	purple_prefs_remove("/protocols/irc");
 
 	irc_register_commands();
-
-	purple_signal_register(_irc_protocol, "irc-sending-text",
-			     purple_marshal_VOID__POINTER_POINTER, G_TYPE_NONE, 2,
-			     PURPLE_TYPE_CONNECTION,
-			     G_TYPE_POINTER); /* pointer to a string */
-	purple_signal_register(_irc_protocol, "irc-receiving-text",
-			     purple_marshal_VOID__POINTER_POINTER, G_TYPE_NONE, 2,
-			     PURPLE_TYPE_CONNECTION,
-			     G_TYPE_POINTER); /* pointer to a string */
 }
 
 static void
@@ -1044,6 +1035,15 @@ plugin_load(PurplePlugin *plugin, GError
 	if (!_irc_protocol)
 		return FALSE;
 
+	purple_signal_register(_irc_protocol, "irc-sending-text",
+			     purple_marshal_VOID__POINTER_POINTER, G_TYPE_NONE, 2,
+			     PURPLE_TYPE_CONNECTION,
+			     G_TYPE_POINTER); /* pointer to a string */
+	purple_signal_register(_irc_protocol, "irc-receiving-text",
+			     purple_marshal_VOID__POINTER_POINTER, G_TYPE_NONE, 2,
+			     PURPLE_TYPE_CONNECTION,
+			     G_TYPE_POINTER); /* pointer to a string */
+
 	return TRUE;
 }
 



More information about the Commits mailing list