comparison pidgin/plugins/xmppconsole.c @ 32767:2ec94166be43

On the way to hiding the PurpleConnection struct. * Added purple_connection_get_flags() and purple_connection_set_flags() * Use purple_connection_ accessor functions.
author andrew.victor@mxit.com
date Tue, 18 Oct 2011 18:47:48 +0000
parents 10e5000326a5
children 9bbbd4a7dcea
comparison
equal deleted inserted replaced
32766:ea2b621fd3ba 32767:2ec94166be43
188 char *text; 188 char *text;
189 189
190 gc = console->gc; 190 gc = console->gc;
191 191
192 if (gc) 192 if (gc)
193 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(gc->prpl); 193 prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc));
194 194
195 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(console->entry)); 195 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(console->entry));
196 gtk_text_buffer_get_start_iter(buffer, &start); 196 gtk_text_buffer_get_start_iter(buffer, &start);
197 gtk_text_buffer_get_end_iter(buffer, &end); 197 gtk_text_buffer_get_end_iter(buffer, &end);
198 198
641 signing_on_cb(PurpleConnection *gc) 641 signing_on_cb(PurpleConnection *gc)
642 { 642 {
643 if (!console) 643 if (!console)
644 return; 644 return;
645 645
646 gtk_combo_box_append_text(GTK_COMBO_BOX(console->dropdown), purple_account_get_username(gc->account)); 646 gtk_combo_box_append_text(GTK_COMBO_BOX(console->dropdown), purple_account_get_username(purple_connection_get_account(gc)));
647 console->accounts = g_list_append(console->accounts, gc); 647 console->accounts = g_list_append(console->accounts, gc);
648 console->count++; 648 console->count++;
649 649
650 if (console->count == 1) 650 if (console->count == 1)
651 console->gc = gc; 651 console->gc = gc;