From c04ce4ea111fa38815975df46af6bea80e06241a Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 8 Jun 2000 07:55:21 +0000 Subject: The field chooser works now. 2000-06-08 Christopher James Lahey * 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 --- widgets/e-table/e-table-field-chooser.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets/e-table/e-table-field-chooser.c') 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, -- cgit v1.2.3