Mercurial > pidgin
diff src/gtkutils.c @ 9749:a2fd9abea23a
[gaim-migrate @ 10616]
I'm probably not done with this, but I think it works pretty well, and
I want to change some stuff that might break it.
I made the buttons on conversation windows evently spaced and they
expand to take up space when you change the width of the convo windows.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sun, 15 Aug 2004 15:08:25 +0000 |
| parents | 4d05b6e9e9cd |
| children | 4f8476beabf5 |
line wrap: on
line diff
--- a/src/gtkutils.c Sun Aug 15 13:10:31 2004 +0000 +++ b/src/gtkutils.c Sun Aug 15 15:08:25 2004 +0000 @@ -109,41 +109,6 @@ (*text != '\0')); } -int -gaim_gtk_get_dispstyle(GaimConversationType type) -{ - int dispstyle = 2; - int value; - - value = gaim_prefs_get_int("/gaim/gtk/conversations/button_type"); - - switch (value) { - case GAIM_BUTTON_TEXT: dispstyle = 1; break; - case GAIM_BUTTON_IMAGE: dispstyle = 0; break; - default: dispstyle = 2; break; /* both/neither */ - } - - return dispstyle; -} - -GtkWidget * -gaim_gtk_change_text(const char *text, GtkWidget *button, - const char *stock, GaimConversationType type) -{ - int dispstyle = gaim_gtk_get_dispstyle(type); - - if (button != NULL) - gtk_widget_destroy(button); - - button = gaim_pixbuf_button_from_stock((dispstyle == 0 ? NULL : text), - (dispstyle == 1 ? NULL : stock), - GAIM_BUTTON_VERTICAL); - - gtk_widget_show(button); - - return button; -} - void gaim_gtk_toggle_sensitive(GtkWidget *widget, GtkWidget *to_toggle) {
