pidgin: 6aad606a: xmppconsole: Properly catch things befor...
darkrain42 at pidgin.im
darkrain42 at pidgin.im
Sun Feb 28 14:21:29 EST 2010
-----------------------------------------------------------------
Revision: 6aad606af7052c8039196221403dc362a640e225
Ancestor: 8a5364b724bf6bd6334ad7033a4bf4bb8ed9a0ad
Author: darkrain42 at pidgin.im
Date: 2010-02-28T19:09:20
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/6aad606af7052c8039196221403dc362a640e225
Modified files:
pidgin/plugins/xmppconsole.c
ChangeLog:
xmppconsole: Properly catch things before an account is "signed on".
IOW, while it's still connecting, because Tobias wants to see the
authentication exchange.
-------------- next part --------------
============================================================
--- pidgin/plugins/xmppconsole.c 2b84b909a7aea3dd525a36c796322f1cdc5358bb
+++ pidgin/plugins/xmppconsole.c 055cb06101803751a8e3f40d8d4cc9f8334c2f60
@@ -621,7 +621,7 @@ static void
}
static void
-signed_on_cb(PurpleConnection *gc)
+signing_on_cb(PurpleConnection *gc)
{
if (!console)
return;
@@ -630,7 +630,9 @@ signed_on_cb(PurpleConnection *gc)
console->accounts = g_list_append(console->accounts, gc);
console->count++;
- if (console->count > 1)
+ if (console->count == 1)
+ console->gc = gc;
+ else
gtk_widget_show_all(console->hbox);
}
@@ -680,8 +682,8 @@ plugin_load(PurplePlugin *plugin)
PURPLE_CALLBACK(xmlnode_received_cb), NULL);
purple_signal_connect(jabber, "jabber-sending-text", xmpp_console_handle,
PURPLE_CALLBACK(xmlnode_sent_cb), NULL);
- purple_signal_connect(purple_connections_get_handle(), "signed-on",
- plugin, PURPLE_CALLBACK(signed_on_cb), NULL);
+ purple_signal_connect(purple_connections_get_handle(), "signing-on",
+ plugin, PURPLE_CALLBACK(signing_on_cb), NULL);
purple_signal_connect(purple_connections_get_handle(), "signed-off",
plugin, PURPLE_CALLBACK(signed_off_cb), NULL);
More information about the Commits
mailing list