summaryrefslogtreecommitdiff
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
parent5a54a3d357acc1b7c285cea29b67b4a4f6404469 (diff)
elc_multibuttonentry: Wrap calls to edje_object_part_object_get with
Summary: freeze/thaw @ref T6884 Depends on D6412 Reviewers: zmike, ManMower Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: 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,
449 // ACCESS 449 // ACCESS
450 if (_elm_config->access_mode != ELM_ACCESS_MODE_OFF) 450 if (_elm_config->access_mode != ELM_ACCESS_MODE_OFF)
451 { 451 {
452 Evas_Object *ao, *po; 452 Evas_Object *ao, *po, *o;
453 Eina_Strbuf *buf; 453 Eina_Strbuf *buf;
454 const char *part; 454 const char *part;
455 455
456 part = "elm.btn.text"; 456 part = "elm.btn.text";
457 po = (Evas_Object *)edje_object_part_object_get(elm_layout_edje_get(VIEW(it)), part); 457 o = elm_layout_edje_get(VIEW(it));
458 edje_object_freeze(o);
459 po = (Evas_Object *)edje_object_part_object_get(o, part);
460 edje_object_thaw(o);
458 ao = evas_object_data_get(po, "_part_access_obj"); 461 ao = evas_object_data_get(po, "_part_access_obj");
459 _elm_access_highlight_set(ao); 462 _elm_access_highlight_set(ao);
460 463
461 buf = eina_strbuf_new(); 464 buf = eina_strbuf_new();
462 eina_strbuf_append_printf(buf, 465 eina_strbuf_append_printf(buf,
463 "multi button entry item %s is selected", 466 "multi button entry item %s is selected",
464 edje_object_part_text_get(elm_layout_edje_get(VIEW(it)), part)); 467 edje_object_part_text_get(o, part));
465 468
466 _elm_access_say(eina_strbuf_string_get(buf)); 469 _elm_access_say(eina_strbuf_string_get(buf));
467 eina_strbuf_free(buf); 470 eina_strbuf_free(buf);
@@ -667,7 +670,9 @@ _access_multibuttonentry_label_register(Evas_Object *obj, Eina_Bool is_access)
667 ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(obj, sd); 670 ELM_MULTIBUTTONENTRY_DATA_GET_OR_RETURN(obj, sd);
668 Evas_Object *po; 671 Evas_Object *po;
669 672
673 edje_object_freeze(sd->label);
670 po = (Evas_Object *)edje_object_part_object_get(sd->label, "elm.text"); 674 po = (Evas_Object *)edje_object_part_object_get(sd->label, "elm.text");
675 edje_object_thaw(sd->label);
671 if (is_access) 676 if (is_access)
672 { 677 {
673 Evas_Object *ao; 678 Evas_Object *ao;