Make the table not move around as you resize.

2000-06-22  Christopher James Lahey  <clahey@helixcode.com>

	* e-table.c: Make the table not move around as you resize.

svn path=/trunk/; revision=3696
This commit is contained in:
Christopher James Lahey
2000-06-22 20:33:04 +00:00
committed by Chris Lahey
parent 6d28aafe86
commit ced77ebe05
3 changed files with 40 additions and 32 deletions

View File

@ -1,3 +1,7 @@
2000-06-22 Christopher James Lahey <clahey@helixcode.com>
* e-table.c: Make the table not move around as you resize.
2000-06-22 Christopher James Lahey <clahey@helixcode.com>
* e-table-item.c: Killed a warning.

View File

@ -161,22 +161,6 @@ e_table_setup_header (ETable *e_table)
gtk_widget_set_usize (GTK_WIDGET (e_table->header_canvas), -1, COLUMN_HEADER_HEIGHT);
}
static void
table_canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc,
ETable *e_table)
{
gdouble width;
width = alloc->width;
gtk_object_set (GTK_OBJECT (e_table->group),
"minimum_width", width,
NULL);
gtk_object_set (GTK_OBJECT (e_table->header),
"width", width,
NULL);
}
static gboolean
table_canvas_reflow_idle (ETable *e_table)
{
@ -195,6 +179,24 @@ table_canvas_reflow_idle (ETable *e_table)
return FALSE;
}
static void
table_canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc,
ETable *e_table)
{
gdouble width;
width = alloc->width;
gtk_object_set (GTK_OBJECT (e_table->group),
"minimum_width", width,
NULL);
gtk_object_set (GTK_OBJECT (e_table->header),
"width", width,
NULL);
if (e_table->reflow_idle_id)
g_source_remove(e_table->reflow_idle_id);
table_canvas_reflow_idle(e_table);
}
static void
table_canvas_reflow (GnomeCanvas *canvas, ETable *e_table)
{

View File

@ -161,22 +161,6 @@ e_table_setup_header (ETable *e_table)
gtk_widget_set_usize (GTK_WIDGET (e_table->header_canvas), -1, COLUMN_HEADER_HEIGHT);
}
static void
table_canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc,
ETable *e_table)
{
gdouble width;
width = alloc->width;
gtk_object_set (GTK_OBJECT (e_table->group),
"minimum_width", width,
NULL);
gtk_object_set (GTK_OBJECT (e_table->header),
"width", width,
NULL);
}
static gboolean
table_canvas_reflow_idle (ETable *e_table)
{
@ -195,6 +179,24 @@ table_canvas_reflow_idle (ETable *e_table)
return FALSE;
}
static void
table_canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc,
ETable *e_table)
{
gdouble width;
width = alloc->width;
gtk_object_set (GTK_OBJECT (e_table->group),
"minimum_width", width,
NULL);
gtk_object_set (GTK_OBJECT (e_table->header),
"width", width,
NULL);
if (e_table->reflow_idle_id)
g_source_remove(e_table->reflow_idle_id);
table_canvas_reflow_idle(e_table);
}
static void
table_canvas_reflow (GnomeCanvas *canvas, ETable *e_table)
{