Mercurial > pidgin.yaz
comparison src/gtkrequest.c @ 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 | b116f3a73256 |
children | 64a164aa6f70 |
comparison
equal
deleted
inserted
replaced
5814:fb9209877f37 | 5815:c900fc823a21 |
---|---|
335 void *user_data) | 335 void *user_data) |
336 { | 336 { |
337 GaimGtkRequestData *data; | 337 GaimGtkRequestData *data; |
338 GtkWidget *win; | 338 GtkWidget *win; |
339 GtkWidget *vbox; | 339 GtkWidget *vbox; |
340 GtkWidget *bbox; | |
340 GtkWidget *frame; | 341 GtkWidget *frame; |
341 GtkWidget *label; | 342 GtkWidget *label; |
342 GtkWidget *table; | 343 GtkWidget *table; |
344 GtkWidget *sep; | |
345 GtkWidget *button; | |
343 GtkSizeGroup *sg; | 346 GtkSizeGroup *sg; |
344 GList *gl, *fl; | 347 GList *gl, *fl; |
345 GaimRequestFieldGroup *group; | 348 GaimRequestFieldGroup *group; |
346 GaimRequestField *field; | 349 GaimRequestField *field; |
347 char *text; | 350 char *text; |
559 } | 562 } |
560 } | 563 } |
561 | 564 |
562 g_object_unref(sg); | 565 g_object_unref(sg); |
563 | 566 |
567 /* Separator */ | |
568 sep = gtk_hseparator_new(); | |
569 gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0); | |
570 gtk_widget_show(sep); | |
571 | |
572 /* Button box. */ | |
573 bbox = gtk_hbutton_box_new(); | |
574 gtk_box_set_spacing(GTK_BOX(bbox), 6); | |
575 gtk_button_box_set_layout(GTK_BUTTON_BOX(bbox), GTK_BUTTONBOX_END); | |
576 gtk_box_pack_end(GTK_BOX(vbox), bbox, FALSE, TRUE, 0); | |
577 gtk_widget_show(bbox); | |
578 | |
579 /* Cancel button */ | |
580 button = gtk_button_new_from_stock(text_to_stock(cancel_text)); | |
581 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); | |
582 gtk_widget_show(button); | |
583 | |
584 /* OK button */ | |
585 button = gtk_button_new_from_stock(text_to_stock(ok_text)); | |
586 gtk_box_pack_start(GTK_BOX(bbox), button, FALSE, FALSE, 0); | |
587 gtk_widget_show(button); | |
588 | |
564 gtk_widget_show(win); | 589 gtk_widget_show(win); |
565 | 590 |
566 return data; | 591 return data; |
567 } | 592 } |
568 | 593 |