Mercurial > pidgin.yaz
changeset 4107:06435b94c3d7
[gaim-migrate @ 4322]
(20:29:32) deryni: LSchiere: http://deryni.perlmonk.org/block.patch I missed the add/deny dialog also
(20:29:39) LSchiere: kay
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 21 Dec 2002 01:31:41 +0000 |
parents | a843ce9d77ea |
children | 274cb26ba8dc |
files | src/dialogs.c |
diffstat | 1 files changed, 6 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dialogs.c Fri Dec 20 18:10:17 2002 +0000 +++ b/src/dialogs.c Sat Dec 21 01:31:41 2002 +0000 @@ -2450,7 +2450,6 @@ GtkWidget *bbox; GtkWidget *vbox; GtkWidget *topbox; - GtkWidget *frame; struct addperm *p = g_new0(struct addperm, 1); p->gc = gc; @@ -2463,16 +2462,11 @@ dialogwindows = g_list_prepend(dialogwindows, p->window); - bbox = gtk_hbox_new(TRUE, 10); + bbox = gtk_hbox_new(FALSE, 5); topbox = gtk_hbox_new(FALSE, 5); vbox = gtk_vbox_new(FALSE, 5); p->entry = gtk_entry_new(); - if (permit) - frame = gtk_frame_new(_("Permit")); - else - frame = gtk_frame_new(_("Deny")); - /* Build Add Button */ if (permit) @@ -2487,7 +2481,7 @@ /* Put the buttons in the box */ - gtk_box_pack_start(GTK_BOX(bbox), add, FALSE, FALSE, 5); + gtk_box_pack_end(GTK_BOX(bbox), add, FALSE, FALSE, 5); gtk_box_pack_end(GTK_BOX(bbox), cancel, FALSE, FALSE, 5); label = gtk_label_new(_("Add")); @@ -2497,7 +2491,9 @@ /* And the boxes in the box */ gtk_box_pack_start(GTK_BOX(vbox), topbox, TRUE, TRUE, 5); gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 5); - gtk_container_add(GTK_CONTAINER(frame), vbox); + gtk_widget_show(topbox); + topbox=gtk_hbox_new(FALSE, 5); + gtk_box_pack_start(GTK_BOX(topbox), vbox, FALSE, FALSE, 5); /* Handle closes right */ @@ -2513,13 +2509,12 @@ gtk_widget_show(topbox); gtk_widget_show(bbox); gtk_widget_show(vbox); - gtk_widget_show(frame); if (permit) gtk_window_set_title(GTK_WINDOW(p->window), _("Gaim - Add Permit")); else gtk_window_set_title(GTK_WINDOW(p->window), _("Gaim - Add Deny")); gtk_window_set_focus(GTK_WINDOW(p->window), p->entry); - gtk_container_add(GTK_CONTAINER(p->window), frame); + gtk_container_add(GTK_CONTAINER(p->window), topbox); gtk_widget_realize(p->window); gtk_widget_show(p->window);