summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hirt <daniel.hirt@samsung.com>2015-08-31 17:48:16 +0300
committerDaniel Hirt <daniel.hirt@samsung.com>2015-08-31 17:48:16 +0300
commitbddbac31a486d79129a8775e5dc1e88a58c6a755 (patch)
tree8bdaa7d74678d6436b1adca440a71d67edb09698
parent71f5f6eaa90dce6f851d27469f0195208e3b73b0 (diff)
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.c7
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
12442} Textblock_Paragraph_Debug_Data; 12442} Textblock_Paragraph_Debug_Data;
12443 12443
12444EAPI Eina_List * 12444EAPI Eina_List *
12445_evas_textblock_paragraphs_get(const Evas_Object *obj) 12445_evas_textblock_paragraphs_get(const Evas_Object *eo_obj)
12446{ 12446{
12447 Eina_List *rects = NULL; 12447 Eina_List *rects = NULL;
12448 Evas_Object_Textblock_Paragraph *par; 12448 Evas_Object_Textblock_Paragraph *par;
12449 Evas_Textblock_Data *o = eo_data_scope_get(obj, MY_CLASS); 12449 Evas_Object_Protected_Data *obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
12450 Evas_Textblock_Data *o = eo_data_scope_get(eo_obj, MY_CLASS);
12450 12451
12451 12452
12452 printf("Populating Items:\n"); 12453 printf("Populating Items:\n");
@@ -12464,7 +12465,7 @@ _evas_textblock_paragraphs_get(const Evas_Object *obj)
12464 d->y = par->y; 12465 d->y = par->y;
12465 d->lines = eina_inlist_count(EINA_INLIST_GET(par->lines)); 12466 d->lines = eina_inlist_count(EINA_INLIST_GET(par->lines));
12466 d->is_rtl = (par->direction == EVAS_BIDI_DIRECTION_RTL); 12467 d->is_rtl = (par->direction == EVAS_BIDI_DIRECTION_RTL);
12467 d->rect = eina_rectangle_new(0, par->y, par->w, par->h); 12468 d->rect = eina_rectangle_new(0, par->y, obj->cur->geometry.w, par->h);
12468 rects = eina_list_append(rects, d); 12469 rects = eina_list_append(rects, d);
12469 } 12470 }
12470 return rects; 12471 return rects;