aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-27 07:21:39 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-27 07:21:39 +0800
commit6738df5abdfc2346493140ab1e54421fa8f45977 (patch)
tree29092ae45d7a41fff1356fb7e524a27b01f8a12e
parentc82188ca4dd26e0ca26e0e48a3110bcc70efe7d1 (diff)
downloadgsoc2013-evolution-6738df5abdfc2346493140ab1e54421fa8f45977.tar
gsoc2013-evolution-6738df5abdfc2346493140ab1e54421fa8f45977.tar.gz
gsoc2013-evolution-6738df5abdfc2346493140ab1e54421fa8f45977.tar.bz2
gsoc2013-evolution-6738df5abdfc2346493140ab1e54421fa8f45977.tar.lz
gsoc2013-evolution-6738df5abdfc2346493140ab1e54421fa8f45977.tar.xz
gsoc2013-evolution-6738df5abdfc2346493140ab1e54421fa8f45977.tar.zst
gsoc2013-evolution-6738df5abdfc2346493140ab1e54421fa8f45977.zip
Set the default size of the dialog to 600x400, which seems to be a nice
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. svn path=/trunk/; revision=9604
-rw-r--r--filter/ChangeLog7
-rw-r--r--filter/rule-editor.c7
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);
}