comparison src/dialogs.c @ 654:ea811c6dd3e0

[gaim-migrate @ 664] with all this hacking i'm surprised we don't ever get through the log committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 10 Aug 2000 04:13:46 +0000
parents c8a3bf382108
children 4bbc103a3294
comparison
equal deleted inserted replaced
653:c8a3bf382108 654:ea811c6dd3e0
43 #include "pixmaps/cancel.xpm" 43 #include "pixmaps/cancel.xpm"
44 #include "pixmaps/save.xpm" 44 #include "pixmaps/save.xpm"
45 #include "pixmaps/ok.xpm" 45 #include "pixmaps/ok.xpm"
46 #include "pixmaps/add.xpm" 46 #include "pixmaps/add.xpm"
47 #include "pixmaps/warn.xpm" 47 #include "pixmaps/warn.xpm"
48 #include "pixmaps/gnome_remove.xpm"
48 49
49 #include "pixmaps/angel.xpm" 50 #include "pixmaps/angel.xpm"
50 #include "pixmaps/bigsmile.xpm" 51 #include "pixmaps/bigsmile.xpm"
51 #include "pixmaps/burp.xpm" 52 #include "pixmaps/burp.xpm"
52 #include "pixmaps/crossedlips.xpm" 53 #include "pixmaps/crossedlips.xpm"
753 754
754 /*------------------------------------------------------------------------*/ 755 /*------------------------------------------------------------------------*/
755 /* The dialog for adding buddies */ 756 /* The dialog for adding buddies */
756 /*------------------------------------------------------------------------*/ 757 /*------------------------------------------------------------------------*/
757 758
759 extern void add_callback(GtkWidget *, struct conversation *);
760
758 void do_add_buddy(GtkWidget *w, struct addbuddy *a) 761 void do_add_buddy(GtkWidget *w, struct addbuddy *a)
759 { 762 {
760 char *grp, *who; 763 char *grp, *who;
761 struct conversation *c; 764 struct conversation *c;
762 765
765 768
766 c = find_conversation(who); 769 c = find_conversation(who);
767 770
768 add_buddy(grp, who); 771 add_buddy(grp, who);
769 772
770 /* FIXME ! pixmaps now 773 if (c != NULL) {
771 if (c != NULL) 774 GtkWidget *parent = c->add_button->parent;
772 gtk_label_set_text(GTK_LABEL(GTK_BIN(c->add_button)->child), _("Remove")); 775 gtk_widget_destroy(c->add_button);
773 */ 776 c->add_button = picture_button2(c->window, NULL, gnome_remove_xpm);
777 gtk_signal_connect(GTK_OBJECT(c->add_button), "clicked", GTK_SIGNAL_FUNC(add_callback), c);
778 gtk_box_pack_end(GTK_BOX(parent), c->add_button, FALSE, FALSE, 0);
779 gtk_box_reorder_child(GTK_BOX(parent), c->add_button, 1);
780 gtk_widget_show(c->add_button);
781 }
774 782
775 build_edit_tree(); 783 build_edit_tree();
776 784
777 serv_save_config(); 785 serv_save_config();
778 786