From d0a494680088fb46f00c9968f941d1eeabe2fb37 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 18 Jan 2001 00:27:11 +0000 Subject: Made EEntry be shrinkable. 2001-01-17 Christopher James Lahey * gal/e-text/e-entry.c (e_entry_init): Made EEntry be shrinkable. svn path=/trunk/; revision=7604 --- widgets/text/e-entry.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'widgets/text') 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)); /* -- cgit v1.2.3