Mercurial > pidgin.yaz
diff src/dialogs.c @ 3649:f09193608fd3
[gaim-migrate @ 3773]
Really, I think this is a lot prettier.
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Sat, 12 Oct 2002 01:30:44 +0000 |
parents | 9682c0e022c6 |
children | 5b439da85c3b |
line wrap: on
line diff
--- a/src/dialogs.c Fri Oct 11 21:25:48 2002 +0000 +++ b/src/dialogs.c Sat Oct 12 01:30:44 2002 +0000 @@ -106,6 +106,7 @@ static GtkWidget *rename_dialog = NULL; static GtkWidget *rename_bud_dialog = NULL; + struct confirm_del { GtkWidget *window; GtkWidget *label; @@ -4582,12 +4583,18 @@ #endif /* USE_PERL */ -GtkWidget *pixbuf_button(char *text, char *iconfile) +GtkWidget *gaim_pixbuf_button(char *text, char *iconfile, GaimButtonStyle style) { GtkWidget *button, *image, *label, *bbox; button = gtk_button_new(); - bbox = gtk_hbox_new(FALSE, 5); + + if (style == GAIM_BUTTON_HORIZONTAL) + bbox = gtk_hbox_new(FALSE, 5); + else + bbox = gtk_vbox_new(FALSE, 0); + gtk_container_add (GTK_CONTAINER(button), bbox); + if (iconfile) { char *filename; filename = g_build_filename (DATADIR, "pixmaps", "gaim", "buttons", iconfile, NULL); @@ -4596,6 +4603,7 @@ gtk_box_pack_start(GTK_BOX(bbox), image, FALSE, FALSE, 0); g_free(filename); } + if (text) { label = gtk_label_new(NULL); gtk_label_set_text_with_mnemonic(GTK_LABEL(label), text);