/soc/2013/ankitkv/gobjectification: bdaf9e0edf5c: Register signa...

Ankit Vani a at nevitus.org
Sat Aug 10 20:04:50 EDT 2013


Changeset: bdaf9e0edf5c01d6db14ae80c40ece90295808a9
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-08-11 05:34 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/bdaf9e0edf5c

Description:

Register signals before initializing gplugin

diffstat:

 libpurple/plugins.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (28 lines):

diff --git a/libpurple/plugins.c b/libpurple/plugins.c
--- a/libpurple/plugins.c
+++ b/libpurple/plugins.c
@@ -958,18 +958,18 @@ purple_plugins_init(void)
 {
 	void *handle = purple_plugins_get_handle();
 
-#ifdef PURPLE_PLUGINS
-	gplugin_init();
-	purple_plugins_add_search_path(LIBDIR);
-	purple_plugins_refresh();
-#endif
-
 	purple_signal_register(handle, "plugin-load",
 	                       purple_marshal_VOID__POINTER,
 	                       G_TYPE_NONE, 1, PURPLE_TYPE_PLUGIN);
 	purple_signal_register(handle, "plugin-unload",
 	                       purple_marshal_VOID__POINTER,
 	                       G_TYPE_NONE, 1, PURPLE_TYPE_PLUGIN);
+
+#ifdef PURPLE_PLUGINS
+	gplugin_init();
+	purple_plugins_add_search_path(LIBDIR);
+	purple_plugins_refresh();
+#endif
 }
 
 void



More information about the Commits mailing list