comparison pidgin/gtkpounce.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
474 static void 474 static void
475 reset_send_msg_entry(PidginPounceDialog *dialog, GtkWidget *dontcare) 475 reset_send_msg_entry(PidginPounceDialog *dialog, GtkWidget *dontcare)
476 { 476 {
477 PurpleAccount *account = pidgin_account_option_menu_get_selected(dialog->account_menu); 477 PurpleAccount *account = pidgin_account_option_menu_get_selected(dialog->account_menu);
478 gtk_imhtml_setup_entry(GTK_IMHTML(dialog->send_msg_entry), 478 gtk_imhtml_setup_entry(GTK_IMHTML(dialog->send_msg_entry),
479 (account && account->gc) ? account->gc->flags : PURPLE_CONNECTION_HTML); 479 (account && purple_account_get_connection(account)) ? purple_account_get_connection(account)->flags : PURPLE_CONNECTION_HTML);
480 } 480 }
481 481
482 void 482 void
483 pidgin_pounce_editor_show(PurpleAccount *account, const char *name, 483 pidgin_pounce_editor_show(PurpleAccount *account, const char *name,
484 PurplePounce *cur_pounce) 484 PurplePounce *cur_pounce)
1481 conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, pouncee); 1481 conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, account, pouncee);
1482 1482
1483 purple_conversation_write(conv, NULL, message, 1483 purple_conversation_write(conv, NULL, message,
1484 PURPLE_MESSAGE_SEND, time(NULL)); 1484 PURPLE_MESSAGE_SEND, time(NULL));
1485 1485
1486 serv_send_im(account->gc, (char *)pouncee, (char *)message, 0); 1486 serv_send_im(purple_account_get_connection(account), (char *)pouncee, (char *)message, 0);
1487 } 1487 }
1488 } 1488 }
1489 1489
1490 if (purple_pounce_action_is_enabled(pounce, "execute-command")) 1490 if (purple_pounce_action_is_enabled(pounce, "execute-command"))
1491 { 1491 {