aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-06-23 04:33:04 +0800
committerChris Lahey <clahey@src.gnome.org>2000-06-23 04:33:04 +0800
commitced77ebe056db95f5e613bc7d9ce4a8d0d5f95dc (patch)
tree69f4082b2e1ea8c65a945f25a5207570e0a9f5be /widgets
parent6d28aafe86748f32b8e4f125a7ba4148d9c42d92 (diff)
downloadgsoc2013-evolution-ced77ebe056db95f5e613bc7d9ce4a8d0d5f95dc.tar
gsoc2013-evolution-ced77ebe056db95f5e613bc7d9ce4a8d0d5f95dc.tar.gz
gsoc2013-evolution-ced77ebe056db95f5e613bc7d9ce4a8d0d5f95dc.tar.bz2
gsoc2013-evolution-ced77ebe056db95f5e613bc7d9ce4a8d0d5f95dc.tar.lz
gsoc2013-evolution-ced77ebe056db95f5e613bc7d9ce4a8d0d5f95dc.tar.xz
gsoc2013-evolution-ced77ebe056db95f5e613bc7d9ce4a8d0d5f95dc.tar.zst
gsoc2013-evolution-ced77ebe056db95f5e613bc7d9ce4a8d0d5f95dc.zip
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
Diffstat (limited to 'widgets')
-rw-r--r--widgets/e-table/ChangeLog4
-rw-r--r--widgets/e-table/e-table.c34
-rw-r--r--widgets/table/e-table.c34
3 files changed, 40 insertions, 32 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index 03f4f0e471..c8cac20b3f 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,5 +1,9 @@
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.
2000-06-22 Christopher James Lahey <clahey@helixcode.com>
diff --git a/widgets/e-table/e-table.c b/widgets/e-table/e-table.c
index d368b92716..c4239068fa 100644
--- a/widgets/e-table/e-table.c
+++ b/widgets/e-table/e-table.c
@@ -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)
{
@@ -196,6 +180,24 @@ table_canvas_reflow_idle (ETable *e_table)
}
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)
{
if (!e_table->reflow_idle_id)
diff --git a/widgets/table/e-table.c b/widgets/table/e-table.c
index d368b92716..c4239068fa 100644
--- a/widgets/table/e-table.c
+++ b/widgets/table/e-table.c
@@ -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)
{
@@ -196,6 +180,24 @@ table_canvas_reflow_idle (ETable *e_table)
}
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)
{
if (!e_table->reflow_idle_id)