diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-10-18 19:15:55 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-10-18 19:15:55 +0800 |
commit | 7794a1eb62ac24165bfa0268b49967bc7b76cca7 (patch) | |
tree | cba546705d53cb71dcc763ddc1457bd9833fe179 /widgets/table/e-table.c | |
parent | 477157f0b16adc4519f4b8c7fda145566082fb9a (diff) | |
download | gsoc2013-evolution-7794a1eb62ac24165bfa0268b49967bc7b76cca7.tar gsoc2013-evolution-7794a1eb62ac24165bfa0268b49967bc7b76cca7.tar.gz gsoc2013-evolution-7794a1eb62ac24165bfa0268b49967bc7b76cca7.tar.bz2 gsoc2013-evolution-7794a1eb62ac24165bfa0268b49967bc7b76cca7.tar.lz gsoc2013-evolution-7794a1eb62ac24165bfa0268b49967bc7b76cca7.tar.xz gsoc2013-evolution-7794a1eb62ac24165bfa0268b49967bc7b76cca7.tar.zst gsoc2013-evolution-7794a1eb62ac24165bfa0268b49967bc7b76cca7.zip |
Removed an unnecessary glade include file.
2000-10-18 Christopher James Lahey <clahey@helixcode.com>
* e-table-field-chooser-dialog.h: Removed an unnecessary glade
include file.
* e-table-field-chooser.c: Make sure that glade is initialized.
* e-table.c, e-table.h: Added a white background to the ETable.
svn path=/trunk/; revision=5988
Diffstat (limited to 'widgets/table/e-table.c')
-rw-r--r-- | widgets/table/e-table.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c index 6a9b721547..0a02f86930 100644 --- a/widgets/table/e-table.c +++ b/widgets/table/e-table.c @@ -265,6 +265,10 @@ table_canvas_reflow_idle (ETable *e_table) gnome_canvas_set_scroll_region ( GNOME_CANVAS (e_table->table_canvas), 0, 0, width - 1, height - 1); + gtk_object_set (GTK_OBJECT (e_table->white_item), + "x2", width, + "y2", height, + NULL); e_table->reflow_idle_id = 0; return FALSE; } @@ -274,7 +278,13 @@ table_canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc, ETable *e_table) { gdouble width; + gdouble height; + width = alloc->width; + gtk_object_get (GTK_OBJECT (e_table->canvas_vbox), + "height", &height, + NULL); + height = MAX ((int)height, alloc->height); gtk_object_set (GTK_OBJECT (e_table->canvas_vbox), "width", width, @@ -282,6 +292,10 @@ table_canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc, gtk_object_set (GTK_OBJECT (e_table->header), "width", width, NULL); + gtk_object_set (GTK_OBJECT (e_table->white_item), + "x2", width, + "y2", height, + NULL); if (e_table->reflow_idle_id) g_source_remove(e_table->reflow_idle_id); table_canvas_reflow_idle(e_table); @@ -430,6 +444,9 @@ changed_idle (gpointer data) gtk_object_set (GTK_OBJECT (et->canvas_vbox), "width", (double) GTK_WIDGET (et->table_canvas)->allocation.width, NULL); + + if (GTK_WIDGET_REALIZED(et->table_canvas)) + table_canvas_size_allocate (GTK_WIDGET(et->table_canvas), >K_WIDGET(et->table_canvas)->allocation, et); } et->need_rebuild = 0; @@ -524,6 +541,14 @@ e_table_setup_table (ETable *e_table, ETableHeader *full_header, ETableHeader *h gtk_widget_show (GTK_WIDGET (e_table->table_canvas)); + e_table->white_item = gnome_canvas_item_new(gnome_canvas_root(e_table->table_canvas), + gnome_canvas_rect_get_type(), + "x1", (double) 0, + "y1", (double) 0, + "x2", (double) 100, + "y2", (double) 100, + "fill_color", "white", + NULL); e_table->canvas_vbox = gnome_canvas_item_new(gnome_canvas_root(e_table->table_canvas), e_canvas_vbox_get_type(), "spacing", 10.0, |