Mercurial > pidgin.yaz
changeset 5815:c900fc823a21
[gaim-migrate @ 6245]
Added the buttons to the dialog.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 08 Jun 2003 22:37:04 +0000 |
parents | fb9209877f37 |
children | 64a164aa6f70 |
files | src/gtkrequest.c |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkrequest.c Sun Jun 08 15:35:28 2003 +0000 +++ b/src/gtkrequest.c Sun Jun 08 22:37:04 2003 +0000 @@ -337,9 +337,12 @@ GaimGtkRequestData *data; GtkWidget *win; GtkWidget *vbox; + GtkWidget *bbox; GtkWidget *frame; GtkWidget *label; GtkWidget *table; + GtkWidget *sep; + GtkWidget *button; GtkSizeGroup *sg; GList *gl, *fl; GaimRequestFieldGroup *group; @@ -561,6 +564,28 @@ g_object_unref(sg); + /* Separator */ + sep = gtk_hseparator_new(); + gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0); + gtk_widget_show(sep); + + /* Button box. */ + bbox = gtk_hbutton_box_new(); + gtk_box_set_spacing(GTK_BOX(bbox), 6); + gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); + gtk_box_pack_end(GTK_BOX(vbox), bbox, FALSE, TRUE, 0); + gtk_widget_show(bbox); + + /* Cancel button */ + button = gtk_button_new_from_stock(text_to_stock(cancel_text)); + gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); + gtk_widget_show(button); + + /* OK button */ + button = gtk_button_new_from_stock(text_to_stock(ok_text)); + gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); + gtk_widget_show(button); + gtk_widget_show(win); return data;