pidgin: fc87335f: No need to search for accounts when we a...
qulogic at pidgin.im
qulogic at pidgin.im
Thu May 31 02:21:54 EDT 2012
----------------------------------------------------------------------
Revision: fc87335fae1f061f4d74f433bf23a27548c45e8d
Parent: e4816bb833201a5687d3134473e498a7c50123dd
Author: qulogic at pidgin.im
Date: 05/31/12 01:45:28
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/fc87335fae1f061f4d74f433bf23a27548c45e8d
Changelog:
No need to search for accounts when we already have a list of them.
Changes against parent e4816bb833201a5687d3134473e498a7c50123dd
patched pidgin/plugins/xmppconsole.c
-------------- next part --------------
============================================================
--- pidgin/plugins/xmppconsole.c 113acc79124d7c25aedc7c253cc7ddde89241092
+++ pidgin/plugins/xmppconsole.c f9c1ee9033be85008f8c0b5cb57f39a9debc290a
@@ -755,12 +755,7 @@ dropdown_changed_cb(GtkComboBox *widget,
if (!console)
return;
- account = purple_accounts_find(gtk_combo_box_get_active_text(GTK_COMBO_BOX(console->dropdown)),
- "prpl-jabber");
- if (!account || !purple_account_get_connection(account))
- return;
-
- console->gc = purple_account_get_connection(account);
+ console->gc = g_list_nth_data(console->accounts, gtk_combo_box_get_active(GTK_COMBO_BOX(console->dropdown)));
gtk_webview_load_html_string(GTK_WEBVIEW(console->webview), EMPTY_HTML);
}
More information about the Commits
mailing list