summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2011-09-07 10:41:44 +0000
committerTom Hacohen <tom@stosb.com>2011-09-07 10:41:44 +0000
commitc0b309e43eee6e8c2cc4912362e02bc92fc2ec24 (patch)
tree04b3c20356faf130c79d26861ae1cc7d09abf648 /legacy
parenta0fab4b871ea6e037fbe0fd8ada735740a0959a3 (diff)
Evas textblock: Added a workaround for the coords_recalc not being called.
Please, when you fix this annoying issue, revert this terrible commit. This commit is intended to be a temporary fix. SVN revision: 63267
Diffstat (limited to 'legacy')
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_textblock.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c
index 96ba09b8b3..ece813f10d 100644
--- a/legacy/evas/src/lib/canvas/evas_object_textblock.c
+++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c
@@ -8751,6 +8751,17 @@ evas_object_textblock_style_insets_get(const Evas_Object *obj, Evas_Coord *l, Ev
8751 if (b) *b = o->style_pad.b; 8751 if (b) *b = o->style_pad.b;
8752} 8752}
8753 8753
8754/** @internal
8755 * FIXME: DELETE ME! DELETE ME!
8756 * This is an ugly workaround to get around the fact that
8757 * evas_object_textblock_coords_recalc isn't really called when it's supposed
8758 * to. When that bug is fixed please remove this. */
8759static void
8760_workaround_object_coords_recalc(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj, void *event_info __UNUSED__)
8761{
8762 evas_object_textblock_coords_recalc(obj);
8763}
8764
8754/* all nice and private */ 8765/* all nice and private */
8755static void 8766static void
8756evas_object_textblock_init(Evas_Object *obj) 8767evas_object_textblock_init(Evas_Object *obj)
@@ -8786,6 +8797,8 @@ evas_object_textblock_init(Evas_Object *obj)
8786 o = (Evas_Object_Textblock *)(obj->object_data); 8797 o = (Evas_Object_Textblock *)(obj->object_data);
8787 o->cursor->obj = obj; 8798 o->cursor->obj = obj;
8788 o->legacy_newline = EINA_TRUE; 8799 o->legacy_newline = EINA_TRUE;
8800 evas_object_event_callback_priority_add(obj, EVAS_CALLBACK_RESIZE, -1000,
8801 _workaround_object_coords_recalc, NULL);
8789} 8802}
8790 8803
8791static void * 8804static void *