From de0c82f3825e8bd17b8a18e19e1ae7b1557a5210 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Mon, 23 Oct 2000 19:31:14 +0000 Subject: Made the top of the folder browser a little prettier. 2000-10-23 Christopher James Lahey * folder-browser.c: Made the top of the folder browser a little prettier. * mail-display.c, mail-vfolder.c: Made more dialogs resizable. svn path=/trunk/; revision=6126 --- mail/ChangeLog | 7 +++++++ mail/folder-browser.c | 11 +++++++++-- mail/mail-display.c | 1 + mail/mail-vfolder.c | 1 + 4 files changed, 18 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index aca1bb2435..d73d53a68f 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2000-10-23 Christopher James Lahey + + * folder-browser.c: Made the top of the folder browser a little + prettier. + + * mail-display.c, mail-vfolder.c: Made more dialogs resizable. + 2000-10-23 Jeffrey Stedfast * mail-autofilter.c (filter_gui_add_from_message): Don't forget to diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 567fc70da1..86f5214b45 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -462,6 +462,7 @@ folder_browser_gui_init (FolderBrowser *fb) { GtkWidget *hbox, *label; GtkButton *button, *searchbutton; + GtkWidget *search_alignment, *save_alignment; /* * The panned container @@ -482,6 +483,8 @@ folder_browser_gui_init (FolderBrowser *fb) fb->search_entry = gtk_entry_new(); gtk_widget_show(fb->search_entry); gtk_signal_connect(GTK_OBJECT (fb->search_entry), "activate", search_activate, fb); + search_alignment = gtk_alignment_new(.5, .5, 0, 0); + gtk_widget_show(search_alignment); searchbutton = (GtkButton *)gtk_button_new_with_label(_("Full Search")); gtk_widget_show((GtkWidget *)searchbutton); label = gtk_label_new(_("Search")); @@ -489,13 +492,17 @@ folder_browser_gui_init (FolderBrowser *fb) fb->search_menu = create_option_menu(search_options, 0, fb); button = (GtkButton *)gtk_button_new_with_label(_("Save")); gtk_widget_show((GtkWidget *)button); + save_alignment = gtk_alignment_new(.5, .5, 0, 0); + gtk_widget_show(save_alignment); gtk_signal_connect((GtkObject *)button, "clicked", search_save, fb); gtk_signal_connect((GtkObject *)searchbutton, "clicked", search_full, fb); - gtk_box_pack_end((GtkBox *)hbox, (GtkWidget *)button, FALSE, FALSE, 3); + gtk_container_add(GTK_CONTAINER(save_alignment), GTK_WIDGET(button)); + gtk_box_pack_end((GtkBox *)hbox, save_alignment, FALSE, FALSE, 3); gtk_box_pack_end((GtkBox *)hbox, fb->search_entry, FALSE, FALSE, 3); gtk_box_pack_end((GtkBox *)hbox, fb->search_menu, FALSE, FALSE, 3); gtk_box_pack_end((GtkBox *)hbox, label, FALSE, FALSE, 3); - gtk_box_pack_end((GtkBox *)hbox, (GtkWidget *)searchbutton, FALSE, FALSE, 3); + gtk_container_add(GTK_CONTAINER(search_alignment), GTK_WIDGET(searchbutton)); + gtk_box_pack_end((GtkBox *)hbox, search_alignment, FALSE, FALSE, 3); gtk_table_attach ( GTK_TABLE (fb), hbox, 0, 1, 0, 1, diff --git a/mail/mail-display.c b/mail/mail-display.c index c2e576dec5..f98244b655 100644 --- a/mail/mail-display.c +++ b/mail/mail-display.c @@ -71,6 +71,7 @@ write_data_to_file (CamelMimePart *part, const char *name, gboolean unique) NULL); text = gtk_label_new (_("A file by that name already exists.\nOverwrite it?")); gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dlg)->vbox), text, TRUE, TRUE, 4); + gtk_window_set_policy(GTK_WINDOW(dlg), FALSE, TRUE, FALSE); gtk_widget_show (text); if (gnome_dialog_run_and_close (GNOME_DIALOG (dlg)) != 0) diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c index 80b4b10651..8909a2f933 100644 --- a/mail/mail-vfolder.c +++ b/mail/mail-vfolder.c @@ -293,6 +293,7 @@ vfolder_gui_add_rule(VfolderRule *rule) GNOME_STOCK_BUTTON_OK, GNOME_STOCK_BUTTON_CANCEL, NULL); + gtk_window_set_policy(GTK_WINDOW(gd), FALSE, TRUE, FALSE); gtk_box_pack_start((GtkBox *)gd->vbox, w, FALSE, TRUE, 0); gtk_widget_show((GtkWidget *)gd); gtk_object_set_data_full((GtkObject *)gd, "rule", rule, (GtkDestroyNotify)gtk_object_unref); -- cgit