diff options
author | Daniel Hirt <daniel.hirt@samsung.com> | 2015-08-31 17:48:16 +0300 |
---|---|---|
committer | Daniel Hirt <daniel.hirt@samsung.com> | 2015-08-31 17:48:16 +0300 |
commit | bddbac31a486d79129a8775e5dc1e88a58c6a755 (patch) | |
tree | 8bdaa7d74678d6436b1adca440a71d67edb09698 | |
parent | 71f5f6eaa90dce6f851d27469f0195208e3b73b0 (diff) | |
download | efl-devs/herdsman/tb_add_decorate_debug_api.tar.gz |
Evas Textblock: Improve decoration of paragraphdevs/herdsman/tb_add_decorate_debug_api
It looks better to color the whole width of the textblock as the
paragraph's width. This is only for the decoration box. The real
paragraph width is passed in the debug data.
-rw-r--r-- | src/lib/evas/canvas/evas_object_textblock.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 61c0634406..2d9949045d 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c @@ -12442,11 +12442,12 @@ typedef struct } Textblock_Paragraph_Debug_Data; EAPI Eina_List * -_evas_textblock_paragraphs_get(const Evas_Object *obj) +_evas_textblock_paragraphs_get(const Evas_Object *eo_obj) { Eina_List *rects = NULL; Evas_Object_Textblock_Paragraph *par; - Evas_Textblock_Data *o = eo_data_scope_get(obj, MY_CLASS); + Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS); + Evas_Textblock_Data *o = eo_data_scope_get(eo_obj, MY_CLASS); printf("Populating Items:\n"); @@ -12464,7 +12465,7 @@ _evas_textblock_paragraphs_get(const Evas_Object *obj) d->y = par->y; d->lines = eina_inlist_count(EINA_INLIST_GET(par->lines)); d->is_rtl = (par->direction == EVAS_BIDI_DIRECTION_RTL); - d->rect = eina_rectangle_new(0, par->y, par->w, par->h); + d->rect = eina_rectangle_new(0, par->y, obj->cur->geometry.w, par->h); rects = eina_list_append(rects, d); } return rects; |