aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-06-25 11:29:55 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-25 11:36:51 -0400
commitf7064f9500f258b36455f198171a5723cd53d647 (patch)
treed1f872ac14f1a02e3d57ec0bba4fef8d3d34f22d
parentefl_ui_calendar: Wrap calls to edje_object_part_object_get with (diff)
downloadefl-f7064f9500f258b36455f198171a5723cd53d647.tar.gz
elc_multibuttonentry: Wrap calls to edje_object_part_object_get with
Summary: freeze/thaw @ref https://phab.enlightenment.org/T6884 Depends on https://phab.enlightenment.org/D6412 Reviewers: zmike, ManMower Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: https://phab.enlightenment.org/T6884 Differential Revision: https://phab.enlightenment.org/D6413
-rw-r--r--src/lib/elementary/elc_multibuttonentry.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/elementary/elc_multibuttonentry.c b/src/lib/elementary/elc_multibuttonentry.c
index 9a3cf18564..193b3204f2 100644
--- a/src/lib/elementary/elc_multibuttonentry.c
+++ b/src/lib/elementary/elc_multibuttonentry.c
@@ -449,19 +449,22 @@ _item_select(Evas_Object *obj,
// ACCESS
if (_elm_config->access_mode != ELM_ACCESS_MODE_OFF)
{
- Evas_Object *ao, *po;
+ Evas_Object *ao, *po, *o;
Eina_Strbuf *buf;
const char *part;
part = "elm.btn.text";
- po = (Evas_Object *)edje_object_part_object_get(elm_layout_edje_get(VIEW(it)), part);
+ o = elm_layout_edje_get(VIEW(it));
+ edje_object_freeze(o);
+ po = (Evas_Object *)edje_object_part_object_get(o, part);
+ edje_object_thaw(o);
ao = evas_object_data_get(po, "_part_access_obj");
_elm_access_highlight_set(ao);
buf = eina_strbuf_new();
eina_strbuf_append_printf(buf,
"multi button entry item %s is selected",
- edje_object_part_text_get(elm_layout_edje_get(VIEW(it)), part));
+ edje_object_part_text_get(o, part));
_elm_access_say(eina_strbuf_string_get(buf));
eina_strbuf_free(buf);
@@ -667,7 +670,9 @@ _access_multibuttonentry_label_register(Evas_Object *obj, Eina_Bool is_access)
ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(obj, sd);
Evas_Object *po;
+ edje_object_freeze(sd->label);
po = (Evas_Object *)edje_object_part_object_get(sd->label, "elm.text");
+ edje_object_thaw(sd->label);
if (is_access)
{
Evas_Object *ao;