pidgin/purple-plugin-pack

Parents 8d398cb50351
Children dc673ec8f54e
Make splitter connect to signals with PURPLE_SIGNAL_PRIORITY_LOWEST, which
should cause it to be called before other plugins, such as OTR. I believe
this fixes #571.
--- a/splitter/splitter.c Wed Dec 09 00:10:28 2009 -0500
+++ b/splitter/splitter.c Thu Dec 17 20:22:35 2009 -0500
@@ -489,16 +489,18 @@
/* register "sending" message signal callback */
static gboolean
plugin_load(PurplePlugin *plugin) {
- purple_signal_connect(purple_conversations_get_handle(),
+ purple_signal_connect_priority(purple_conversations_get_handle(),
"sending-im-msg",
plugin,
PURPLE_CALLBACK(sending_im_msg_cb),
- NULL);
- purple_signal_connect(purple_conversations_get_handle(),
+ NULL,
+ PURPLE_SIGNAL_PRIORITY_LOWEST);
+ purple_signal_connect_priority(purple_conversations_get_handle(),
"sending-chat-msg",
plugin,
PURPLE_CALLBACK(sending_chat_msg_cb),
- NULL);
+ NULL,
+ PURPLE_SIGNAL_PRIORITY_LOWEST);
return TRUE;
}