aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2001-01-18 08:27:11 +0800
committerChris Lahey <clahey@src.gnome.org>2001-01-18 08:27:11 +0800
commitd0a494680088fb46f00c9968f941d1eeabe2fb37 (patch)
tree8eaa7fb341dcda0201c44124ac2c92ac7344985b /widgets/text
parentd9734b1ec4a885e54d724f5b4cf1092a230f8e07 (diff)
downloadgsoc2013-evolution-d0a494680088fb46f00c9968f941d1eeabe2fb37.tar.gz
gsoc2013-evolution-d0a494680088fb46f00c9968f941d1eeabe2fb37.tar.zst
gsoc2013-evolution-d0a494680088fb46f00c9968f941d1eeabe2fb37.zip
Made EEntry be shrinkable.
2001-01-17 Christopher James Lahey <clahey@helixcode.com> * gal/e-text/e-entry.c (e_entry_init): Made EEntry be shrinkable. svn path=/trunk/; revision=7604
Diffstat (limited to 'widgets/text')
-rw-r--r--widgets/text/e-entry.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c
index 3dc9de91a5..d1b34f8aa5 100644
--- a/widgets/text/e-entry.c
+++ b/widgets/text/e-entry.c
@@ -24,7 +24,7 @@
#include "gal/widgets/e-canvas-utils.h"
#include "e-entry.h"
-#define MIN_ENTRY_WIDTH 50
+#define MIN_ENTRY_WIDTH 150
#define INNER_BORDER 2
#define PARENT_TYPE gtk_table_get_type ()
@@ -157,8 +157,11 @@ e_entry_init (GtkObject *object)
"draw_background", TRUE,
NULL));
e_entry->justification = GTK_JUSTIFY_LEFT;
- gtk_table_attach_defaults(gtk_table, GTK_WIDGET(e_entry->canvas),
- 0, 1, 0, 1);
+ gtk_table_attach(gtk_table, GTK_WIDGET(e_entry->canvas),
+ 0, 1, 0, 1,
+ GTK_EXPAND | GTK_FILL | GTK_SHRINK,
+ GTK_EXPAND | GTK_FILL | GTK_SHRINK,
+ 0, 0);
gtk_widget_show(GTK_WIDGET(e_entry->canvas));
/*