Mercurial > pidgin
changeset 6326:f6480d79cb89
[gaim-migrate @ 6825]
The multi-field request dialog now has a standard GTK stock question dialog
icon.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 29 Jul 2003 05:55:22 +0000 |
parents | de67cb0dd09d |
children | 493eed80869c |
files | src/gtkrequest.c |
diffstat | 1 files changed, 15 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkrequest.c Tue Jul 29 05:35:36 2003 +0000 +++ b/src/gtkrequest.c Tue Jul 29 05:55:22 2003 +0000 @@ -379,7 +379,6 @@ /* Vertical box */ vbox = gtk_vbox_new(FALSE, 12); - gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); /* Descriptive label */ @@ -415,12 +414,14 @@ GaimGtkRequestData *data; GtkWidget *win; GtkWidget *vbox; + GtkWidget *hbox; GtkWidget *bbox; GtkWidget *frame; GtkWidget *label; GtkWidget *table; GtkWidget *sep; GtkWidget *button; + GtkWidget *img; GtkSizeGroup *sg; GList *gl, *fl; GaimRequestFieldGroup *group; @@ -441,19 +442,28 @@ data->dialog = win = gtk_window_new(GTK_WINDOW_TOPLEVEL); -#if 0 - /* HIG says no to this :( */ if (title != NULL) gtk_window_set_title(GTK_WINDOW(win), title); -#endif gtk_window_set_role(GTK_WINDOW(win), "multifield"); gtk_container_set_border_width(GTK_CONTAINER(win), 12); gtk_window_set_resizable(GTK_WINDOW(win), FALSE); + /* Setup the main horizontal box */ + hbox = gtk_hbox_new(FALSE, 12); + gtk_container_add(GTK_CONTAINER(win), hbox); + gtk_widget_show(hbox); + + /* Dialog icon. */ + img = gtk_image_new_from_stock(GAIM_STOCK_DIALOG_QUESTION, + GTK_ICON_SIZE_DIALOG); + gtk_misc_set_alignment(GTK_MISC(img), 0, 0); + gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); + gtk_widget_show(img); + /* Setup the vbox */ vbox = gtk_vbox_new(FALSE, 12); - gtk_container_add(GTK_CONTAINER(win), vbox); + gtk_box_pack_start(GTK_BOX(hbox), vbox, FALSE, FALSE, 0); gtk_widget_show(vbox); sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);