Mercurial > pidgin.yaz
comparison pidgin/plugins/xmppconsole.c @ 32708:10e5000326a5
Convert code to use the purple_account accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Sat, 01 Oct 2011 21:04:35 +0000 |
parents | 917c597beb97 |
children | 2ec94166be43 |
comparison
equal
deleted
inserted
replaced
32707:f75041cb3fec | 32708:10e5000326a5 |
---|---|
731 if (!console) | 731 if (!console) |
732 return; | 732 return; |
733 | 733 |
734 account = purple_accounts_find(gtk_combo_box_get_active_text(GTK_COMBO_BOX(console->dropdown)), | 734 account = purple_accounts_find(gtk_combo_box_get_active_text(GTK_COMBO_BOX(console->dropdown)), |
735 "prpl-jabber"); | 735 "prpl-jabber"); |
736 if (!account || !account->gc) | 736 if (!account || !purple_account_get_connection(account)) |
737 return; | 737 return; |
738 | 738 |
739 console->gc = account->gc; | 739 console->gc = purple_account_get_connection(account); |
740 gtk_imhtml_clear(GTK_IMHTML(console->imhtml)); | 740 gtk_imhtml_clear(GTK_IMHTML(console->imhtml)); |
741 } | 741 } |
742 | 742 |
743 static void | 743 static void |
744 create_console(PurplePluginAction *action) | 744 create_console(PurplePluginAction *action) |