summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:25:08 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commitc83023565e391caa60aea5fdd884e9bbd2685a67 (patch)
tree6d356e54074c8f2bc0d1584519291b4e6170d295
parentdded40c73ba25ad4c016014c6956d9e7134fddfe (diff)
efl_ui/check: check icon swallow existence before getting its content
Summary: some check styles do not have this part @fix Depends on D8977 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8978
-rw-r--r--src/lib/elementary/efl_ui_check.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_check.c b/src/lib/elementary/efl_ui_check.c
index 6056e5c572..e13577a407 100644
--- a/src/lib/elementary/efl_ui_check.c
+++ b/src/lib/elementary/efl_ui_check.c
@@ -480,6 +480,7 @@ _icon_signal_emit(Evas_Object *obj)
480 char buf[64]; 480 char buf[64];
481 481
482 if (!elm_widget_resize_object_get(obj)) return; 482 if (!elm_widget_resize_object_get(obj)) return;
483 if (!edje_object_part_exists(obj, "elm.swallow.content")) return;
483 snprintf(buf, sizeof(buf), "elm,state,icon,%s", 484 snprintf(buf, sizeof(buf), "elm,state,icon,%s",
484 elm_layout_content_get(obj, "icon") ? "visible" : "hidden"); 485 elm_layout_content_get(obj, "icon") ? "visible" : "hidden");
485 486