aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-02-13 07:36:21 +0800
committerHans Petter <hansp@src.gnome.org>2003-02-13 07:36:21 +0800
commita371f7b3fc5c67b87a136f7658db9284bdb51b1e (patch)
treef4146abe0272d085259a9b4c5ddf65b5d4101ace /widgets
parent1d869c5796ea566da6d40c8e6c97a6f65fa132cb (diff)
downloadgsoc2013-evolution-a371f7b3fc5c67b87a136f7658db9284bdb51b1e.tar
gsoc2013-evolution-a371f7b3fc5c67b87a136f7658db9284bdb51b1e.tar.gz
gsoc2013-evolution-a371f7b3fc5c67b87a136f7658db9284bdb51b1e.tar.bz2
gsoc2013-evolution-a371f7b3fc5c67b87a136f7658db9284bdb51b1e.tar.lz
gsoc2013-evolution-a371f7b3fc5c67b87a136f7658db9284bdb51b1e.tar.xz
gsoc2013-evolution-a371f7b3fc5c67b87a136f7658db9284bdb51b1e.tar.zst
gsoc2013-evolution-a371f7b3fc5c67b87a136f7658db9284bdb51b1e.zip
Request a reflow on realization, so size and placement will be correct
2003-02-12 Hans Petter Jansson <hpj@ximian.com> * e-table-click-to-add.c (etcta_realize): Request a reflow on realization, so size and placement will be correct initially. svn path=/trunk/; revision=19899
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-table-click-to-add.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/widgets/table/e-table-click-to-add.c b/widgets/table/e-table-click-to-add.c
index ba373e34f8..9c4d802c1e 100644
--- a/widgets/table/e-table-click-to-add.c
+++ b/widgets/table/e-table-click-to-add.c
@@ -267,6 +267,8 @@ etcta_realize (GnomeCanvasItem *item)
if (GNOME_CANVAS_ITEM_CLASS (etcta_parent_class)->realize)
(*GNOME_CANVAS_ITEM_CLASS (etcta_parent_class)->realize)(item);
+
+ e_canvas_item_request_reflow (item);
}
static void
@@ -408,7 +410,7 @@ etcta_reflow (GnomeCanvasItem *item, int flags)
ETableClickToAdd *etcta = E_TABLE_CLICK_TO_ADD (item);
double old_height = etcta->height;
-
+
if (etcta->text) {
g_object_get(etcta->text,
"height", &etcta->height,
@@ -426,6 +428,7 @@ etcta_reflow (GnomeCanvasItem *item, int flags)
"y2", etcta->height - 1,
NULL);
}
+
if (old_height != etcta->height)
e_canvas_item_request_parent_reflow(item);
}