aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/edje
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2018-06-22 12:15:11 +0300
committerDaniel Hirt <hirt.danny@gmail.com>2018-06-22 12:30:59 +0300
commit69b5d67367b8ae16d6e98734d2b07e40725d4a0f (patch)
tree47d8b0fb4fe5ccfe82ee2816125829db9f6ef76a /src/lib/edje
parentefl_ui_focus_manager: track list presence (diff)
downloadefl-69b5d67367b8ae16d6e98734d2b07e40725d4a0f.tar.gz
edje: fix text set/get issue without edje calculation
Summary: Some changes broke really basical function behavior of text. I couldn't get text from an edje object which I just set to the given edje object. In the past code, edje called recalc function before trying to get text. So, this patch bring that code to fix this issue. @fix Test Plan: Included. Run "make check" Reviewers: herdsman, raster, cedric, woohyun, devilhorns Subscribers: #committers, zmike Tags: #efl Differential Revision: https://phab.enlightenment.org/D6364
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c
index 7ab54bb4bd..98d6c78023 100644
--- a/src/lib/edje/edje_util.c
+++ b/src/lib/edje/edje_util.c
@@ -2052,6 +2052,9 @@ _edje_efl_text_text_get(const Eo *obj EINA_UNUSED, Edje *ed, const char *part,
if ((!ed) || (!part)) return NULL;
+ /* Need to recalc before providing the object. */
+ _edje_recalc_do(ed);
+
rp = _edje_real_part_recursive_get(&ed, part);
if (!rp) return NULL;
if ((rp->type != EDJE_RP_TYPE_TEXT) ||