comparison src/conversation.c @ 769:c075cf268129

[gaim-migrate @ 779] I'm Only Sleeping by the Beatles when i wake up early in the morning lift my head, i'm still yawning when i'm in the middle of a dream stay in bed, float upstream (chorus) please don't wake me, no don't shake me, leave me where i am, i'm only sleeping everybody seems to think i'm lazy i don't mind. i think they're crazy running everywhere at such a speed until they find there's no need (chorus) (chorus) committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 25 Aug 2000 22:03:29 +0000
parents c5f455b6f79a
children 267ed2b889ee
comparison
equal deleted inserted replaced
768:0b160e27904b 769:c075cf268129
418 } 418 }
419 419
420 void add_callback(GtkWidget *widget, struct conversation *c) 420 void add_callback(GtkWidget *widget, struct conversation *c)
421 { 421 {
422 if (find_buddy(c->name) != NULL) { 422 if (find_buddy(c->name) != NULL) {
423 gboolean dispstyle = (display_options & OPT_DISP_CONV_SHOW_TEXT) ? TRUE : FALSE;
423 GtkWidget *parent = c->add_button->parent; 424 GtkWidget *parent = c->add_button->parent;
424 sprintf(debug_buff,_("Removing '%s' from buddylist.\n"), c->name); 425 sprintf(debug_buff,_("Removing '%s' from buddylist.\n"), c->name);
425 debug_print(debug_buff); 426 debug_print(debug_buff);
426 remove_buddy(find_group_by_buddy(c->name), find_buddy(c->name)); 427 remove_buddy(find_group_by_buddy(c->name), find_buddy(c->name));
427 build_edit_tree(); 428 build_edit_tree();
428 gtk_widget_destroy(c->add_button); 429 gtk_widget_destroy(c->add_button);
429 c->add_button = picture_button2(c->window, _("Add"), gnome_add_xpm, display_options & OPT_DISP_CONV_SHOW_TEXT); 430 c->add_button = picture_button2(c->window, _("Add"), gnome_add_xpm, dispstyle);
430 gtk_signal_connect(GTK_OBJECT(c->add_button), "clicked", GTK_SIGNAL_FUNC(add_callback), c); 431 gtk_signal_connect(GTK_OBJECT(c->add_button), "clicked", GTK_SIGNAL_FUNC(add_callback), c);
431 gtk_box_pack_end(GTK_BOX(parent), c->add_button, FALSE, FALSE, 0); 432 gtk_box_pack_end(GTK_BOX(parent), c->add_button, dispstyle, dispstyle, 0);
432 gtk_box_reorder_child(GTK_BOX(parent), c->add_button, 1); 433 gtk_box_reorder_child(GTK_BOX(parent), c->add_button, 1);
433 gtk_widget_show(c->add_button); 434 gtk_widget_show(c->add_button);
434 } 435 }
435 else 436 else
436 { 437 {