aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-field-chooser.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-08 15:55:21 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-08 15:55:21 +0800
commitc04ce4ea111fa38815975df46af6bea80e06241a (patch)
tree199fc3b9d1b3dfba7fa4d6bc85c57825fe50af19 /widgets/e-table/e-table-field-chooser.c
parent2f3245408c26ebef806b0824a1f5885b15529fce (diff)
downloadgsoc2013-evolution-c04ce4ea111fa38815975df46af6bea80e06241a.tar
gsoc2013-evolution-c04ce4ea111fa38815975df46af6bea80e06241a.tar.gz
gsoc2013-evolution-c04ce4ea111fa38815975df46af6bea80e06241a.tar.bz2
gsoc2013-evolution-c04ce4ea111fa38815975df46af6bea80e06241a.tar.lz
gsoc2013-evolution-c04ce4ea111fa38815975df46af6bea80e06241a.tar.xz
gsoc2013-evolution-c04ce4ea111fa38815975df46af6bea80e06241a.tar.zst
gsoc2013-evolution-c04ce4ea111fa38815975df46af6bea80e06241a.zip
The field chooser works now.
2000-06-08 Christopher James Lahey <clahey@helixcode.com> * The field chooser works now. * e-table-field-chooser-dialog.c: Make the dialog resizable. * e-table-field-chooser-item.c: Requested a reflow on realization. Made the correct column get dragged. * e-table-field-chooser.c: Set the height correctly. * e-table-field-chooser.glade: Replace the GnomeCanvas with an ECanvas. * e-table-header-item.c: Receive drags from the new dialog. svn path=/trunk/; revision=3476
Diffstat (limited to 'widgets/e-table/e-table-field-chooser.c')
-rw-r--r--widgets/e-table/e-table-field-chooser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/e-table/e-table-field-chooser.c b/widgets/e-table/e-table-field-chooser.c
index b72c93a197..4be2675ce6 100644
--- a/widgets/e-table/e-table-field-chooser.c
+++ b/widgets/e-table/e-table-field-chooser.c
@@ -95,7 +95,8 @@ static void allocate_callback(GtkWidget *canvas, GtkAllocation *allocation, ETab
gtk_object_get(GTK_OBJECT(etfc->item),
"height", &height,
NULL);
- gnome_canvas_set_scroll_region(GNOME_CANVAS( etfc->canvas ), 0, 0, allocation->width, height );
+ height = MAX(height, allocation->height);
+ gnome_canvas_set_scroll_region(GNOME_CANVAS( etfc->canvas ), 0, 0, allocation->width, height);
gnome_canvas_item_set( etfc->rect,
"x2", (double) allocation->width,
"y2", (double) height,
@@ -109,6 +110,8 @@ static void resize(GnomeCanvas *canvas, ETableFieldChooser *etfc)
"height", &height,
NULL);
+ height = MAX(height, etfc->last_alloc.height);
+
gnome_canvas_set_scroll_region (GNOME_CANVAS(etfc->canvas), 0, 0, etfc->last_alloc.width, height);
gnome_canvas_item_set( etfc->rect,
"x2", (double) etfc->last_alloc.width,
@@ -148,7 +151,6 @@ e_table_field_chooser_init (ETableFieldChooser *etfc)
etfc->item = gnome_canvas_item_new(gnome_canvas_root(etfc->canvas),
e_table_field_chooser_item_get_type(),
- "height", (double) 100,
"width", (double) 100,
"full_header", etfc->full_header,
"dnd_code", etfc->dnd_code,