Mercurial > pidgin
diff src/conversation.c @ 4090:286d487a4fd7
[gaim-migrate @ 4305]
Fixed the problems with the add/remove button being moved and keeping its
original state.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 17 Dec 2002 06:53:50 +0000 |
parents | 8aa62e2e1579 |
children | 0c131a8ea3d1 |
line wrap: on
line diff
--- a/src/conversation.c Tue Dec 17 04:44:00 2002 +0000 +++ b/src/conversation.c Tue Dec 17 06:53:50 2002 +0000 @@ -2417,14 +2417,16 @@ void update_convo_add_button(struct conversation *c) { - /*int dispstyle = set_dispstyle(0);*/ + int dispstyle = set_dispstyle(0); GtkWidget *parent = c->add->parent; gboolean rebuild = FALSE; if (find_buddy(c->gc, c->name)) { if (!gtk_object_get_user_data(GTK_OBJECT(c->add))) { gtk_widget_destroy(c->add); - c->add = gaim_pixbuf_button_from_stock(_("Remove"), "gtk-remove", GAIM_BUTTON_VERTICAL); + c->add = gaim_pixbuf_button_from_stock(dispstyle == 0 ? NULL : _("Remove"), + dispstyle == 1 ? NULL : "gtk-remove", + GAIM_BUTTON_VERTICAL); rebuild = TRUE; } if (c->gc) { @@ -2438,7 +2440,9 @@ } else { if (gtk_object_get_user_data(GTK_OBJECT(c->add))) { gtk_widget_destroy(c->add); - c->add = gaim_pixbuf_button_from_stock(_("Add"), "gtk-add", GAIM_BUTTON_VERTICAL); + c->add = gaim_pixbuf_button_from_stock(dispstyle == 0 ? NULL : _("Add"), + dispstyle == 1 ? NULL : "gtk-add", + GAIM_BUTTON_VERTICAL); rebuild = TRUE; } if (c->gc) {