Mercurial > pidgin
comparison pidgin/plugins/xmppconsole.c @ 32811:3d69d8e964a3
The XMPP Console incorrectly shows non-XMPP accounts that sign on after opening.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 31 May 2012 05:38:31 +0000 |
parents | 58a36b827f45 |
children | 43e89b279eb4 |
comparison
equal
deleted
inserted
replaced
32810:58a36b827f45 | 32811:3d69d8e964a3 |
---|---|
652 } | 652 } |
653 | 653 |
654 static void | 654 static void |
655 signing_on_cb(PurpleConnection *gc) | 655 signing_on_cb(PurpleConnection *gc) |
656 { | 656 { |
657 PurpleAccount *account; | |
658 | |
657 if (!console) | 659 if (!console) |
658 return; | 660 return; |
659 | 661 |
660 gtk_combo_box_append_text(GTK_COMBO_BOX(console->dropdown), purple_account_get_username(purple_connection_get_account(gc))); | 662 account = purple_connection_get_account(gc); |
663 if (strcmp(purple_account_get_protocol_id(account), "prpl-jabber")) | |
664 return; | |
665 | |
666 gtk_combo_box_append_text(GTK_COMBO_BOX(console->dropdown), purple_account_get_username(account)); | |
661 console->accounts = g_list_append(console->accounts, gc); | 667 console->accounts = g_list_append(console->accounts, gc); |
662 console->count++; | 668 console->count++; |
663 | 669 |
664 if (console->count == 1) { | 670 if (console->count == 1) { |
665 console->gc = gc; | 671 console->gc = gc; |
666 gtk_webview_load_html_string(GTK_WEBVIEW(console->webview), EMPTY_HTML); | 672 gtk_webview_load_html_string(GTK_WEBVIEW(console->webview), EMPTY_HTML); |
673 gtk_combo_box_set_active(GTK_COMBO_BOX(console->dropdown), 0); | |
667 } else | 674 } else |
668 gtk_widget_show_all(console->hbox); | 675 gtk_widget_show_all(console->hbox); |
669 } | 676 } |
670 | 677 |
671 static void | 678 static void |