summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hirt <hirt.danny@gmail.com>2018-12-30 14:46:03 +0200
committerDaniel Hirt <hirt.danny@gmail.com>2018-12-30 15:37:15 +0200
commit263a5d4d158a165f19f2391407571c503a6193a8 (patch)
tree8412d39e7b05304adf0e511c3f4402144c7e8bf1
parent4530fd8959e7c019074f2ef0602dde3381c82031 (diff)
Canvas layout part text: update prop for underline height
-rw-r--r--src/lib/edje/edje_part_text.c5
-rw-r--r--src/lib/edje/edje_textblock.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/edje/edje_part_text.c b/src/lib/edje/edje_part_text.c
index 9b8d09f8e9..4c10a1608e 100644
--- a/src/lib/edje/edje_part_text.c
+++ b/src/lib/edje/edje_part_text.c
@@ -512,6 +512,7 @@ _efl_canvas_layout_part_text_efl_text_style_underline_height_set(Eo *obj,
512 double value) 512 double value)
513{ 513{
514 Edje_User_Defined *eud; 514 Edje_User_Defined *eud;
515 Edje_Part_Text_Prop *prop;
515 516
516 PROXY_DATA_GET(obj, pd); 517 PROXY_DATA_GET(obj, pd);
517 if (pd->rp->part->type == EDJE_PART_TYPE_TEXT) return; 518 if (pd->rp->part->type == EDJE_PART_TYPE_TEXT) return;
@@ -519,7 +520,9 @@ _efl_canvas_layout_part_text_efl_text_style_underline_height_set(Eo *obj,
519 eud = _edje_user_text_style_definition_fetch(pd->ed, pd->part); 520 eud = _edje_user_text_style_definition_fetch(pd->ed, pd->part);
520 521
521 eud->u.text_style.types |= EDJE_PART_TEXT_PROP_UNDERLINE_HEIGHT; 522 eud->u.text_style.types |= EDJE_PART_TEXT_PROP_UNDERLINE_HEIGHT;
522 efl_text_underline_height_set(pd->rp->object, value); 523 prop = _prop_fetch(&pd->rp->typedata.text->text_props,
524 EDJE_PART_TEXT_PROP_UNDERLINE_HEIGHT);
525 prop->val.nd = value;
523} 526}
524 527
525EOLIAN static void 528EOLIAN static void
diff --git a/src/lib/edje/edje_textblock.c b/src/lib/edje/edje_textblock.c
index 4527e208ef..b22b7bea82 100644
--- a/src/lib/edje/edje_textblock.c
+++ b/src/lib/edje/edje_textblock.c
@@ -823,6 +823,13 @@ _edje_textblock_colors_set(Edje *ed EINA_UNUSED,
823 { 823 {
824 efl_text_underline_dashed_gap_set(ep->object, prop->val.ni); 824 efl_text_underline_dashed_gap_set(ep->object, prop->val.ni);
825 } 825 }
826
827 prop = _prop_find(ep->typedata.text->text_props,
828 EDJE_PART_TEXT_PROP_UNDERLINE_HEIGHT);
829 if (prop)
830 {
831 efl_text_underline_height_set(ep->object, prop->val.nd);
832 }
826} 833}
827 834
828#undef APPLY_COLOR 835#undef APPLY_COLOR