| 425 } |
425 } |
| 426 |
426 |
| 427 void add_callback(GtkWidget *widget, struct conversation *c) |
427 void add_callback(GtkWidget *widget, struct conversation *c) |
| 428 { |
428 { |
| 429 if (find_buddy(c->name) != NULL) { |
429 if (find_buddy(c->name) != NULL) { |
| 430 gboolean dispstyle = (display_options & OPT_DISP_CONV_SHOW_TEXT) ? TRUE : FALSE; |
430 int dispstyle; |
| 431 GtkWidget *parent = c->add->parent; |
431 GtkWidget *parent = c->add->parent; |
| |
432 |
| |
433 dispstyle = set_dispstyle(0); |
| |
434 |
| 432 sprintf(debug_buff,_("Removing '%s' from buddylist.\n"), c->name); |
435 sprintf(debug_buff,_("Removing '%s' from buddylist.\n"), c->name); |
| 433 debug_print(debug_buff); |
436 debug_print(debug_buff); |
| 434 remove_buddy(find_group_by_buddy(c->name), find_buddy(c->name)); |
437 remove_buddy(find_group_by_buddy(c->name), find_buddy(c->name)); |
| 435 build_edit_tree(); |
438 build_edit_tree(); |
| 436 gtk_widget_destroy(c->add); |
439 gtk_widget_destroy(c->add); |
| 1632 |
1635 |
| 1633 gtk_widget_realize(win); |
1636 gtk_widget_realize(win); |
| 1634 aol_icon(win->window); |
1637 aol_icon(win->window); |
| 1635 |
1638 |
| 1636 c->window = win; |
1639 c->window = win; |
| 1637 |
1640 |
| 1638 if (display_options & OPT_DISP_CONV_SHOW_TEXT) |
1641 dispstyle = set_dispstyle(0); |
| 1639 { |
|
| 1640 dispstyle = TRUE; |
|
| 1641 } |
|
| 1642 else |
|
| 1643 { |
|
| 1644 dispstyle = FALSE; |
|
| 1645 } |
|
| 1646 |
1642 |
| 1647 send = picture_button2(win, _("Send"), tmp_send_xpm, dispstyle); |
1643 send = picture_button2(win, _("Send"), tmp_send_xpm, dispstyle); |
| 1648 info = picture_button2(win, _("Info"), tb_search_xpm, dispstyle); |
1644 info = picture_button2(win, _("Info"), tb_search_xpm, dispstyle); |
| 1649 warn = picture_button2(win, _("Warn"), warn_xpm, dispstyle); |
1645 warn = picture_button2(win, _("Warn"), warn_xpm, dispstyle); |
| 1650 close = picture_button2(win, _("Close"), cancel_xpm, dispstyle); |
1646 close = picture_button2(win, _("Close"), cancel_xpm, dispstyle); |