diff options
-rw-r--r-- | filter/ChangeLog | 7 | ||||
-rw-r--r-- | filter/rule-editor.c | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog index 5d2978ce1d..e28f8821ba 100644 --- a/filter/ChangeLog +++ b/filter/ChangeLog @@ -1,3 +1,10 @@ +2001-04-26 Jeffrey Stedfast <fejj@ximian.com> + + * rule-editor.c (rule_edit): Set the default size of the dialog to + 600x400, which seems to be a nice size that fits all the widgets + into it. + (rule_add): Same. + 2001-04-26 Dan Winship <danw@ximian.com> * Makefile.am (INCLUDES): Remove UNICODE_CFLAGS diff --git a/filter/rule-editor.c b/filter/rule-editor.c index 6e1a7cbe8a..d4afdd70dc 100644 --- a/filter/rule-editor.c +++ b/filter/rule-editor.c @@ -242,6 +242,7 @@ rule_add (GtkWidget *widget, RuleEditor *re) GNOME_STOCK_BUTTON_CANCEL, NULL); + gtk_window_set_default_size (GTK_WINDOW (dialog), 600, 400); gtk_window_set_policy (GTK_WINDOW (dialog), FALSE, TRUE, FALSE); gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), rules, TRUE, TRUE, 0); @@ -300,6 +301,7 @@ rule_edit (GtkWidget *widget, RuleEditor *re) GNOME_STOCK_BUTTON_CANCEL, NULL); + gtk_window_set_default_size (GTK_WINDOW (dialog), 600, 400); gtk_window_set_policy (GTK_WINDOW (dialog), FALSE, TRUE, FALSE); gtk_window_set_modal (GTK_WINDOW (dialog), TRUE); gtk_box_pack_start (GTK_BOX (GNOME_DIALOG (dialog)->vbox), rules, TRUE, TRUE, 0); @@ -456,7 +458,7 @@ rule_editor_construct(RuleEditor *re, RuleContext *context, GladeXML *gui, const { GtkWidget *w; int i; - + re->context = context; gtk_object_ref((GtkObject *)context); @@ -474,5 +476,6 @@ rule_editor_construct(RuleEditor *re, RuleContext *context, GladeXML *gui, const rule_editor_set_source(re, source); - gnome_dialog_append_buttons((GnomeDialog *)re, GNOME_STOCK_BUTTON_OK, GNOME_STOCK_BUTTON_CANCEL, 0); + gnome_dialog_append_buttons ((GnomeDialog *)re, GNOME_STOCK_BUTTON_OK, + GNOME_STOCK_BUTTON_CANCEL, NULL); } |