summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:23:12 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:03 -0400
commitf8c8f9c16c7f5212e44938b0f49c94db16172efc (patch)
tree69d568c883d4c6a290b339ac3f0ee2ed829f1037
parent695dfb650aa997fd0789e680dd4197867621aee2 (diff)
efl_ui/button: check icon swallow existence before getting its content
Summary: some button styles do not have this part @fix Depends on D8970 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8971
-rw-r--r--src/lib/elementary/efl_ui_button.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_button.c b/src/lib/elementary/efl_ui_button.c
index f653e949dd..6694a91f4a 100644
--- a/src/lib/elementary/efl_ui_button.c
+++ b/src/lib/elementary/efl_ui_button.c
@@ -416,6 +416,7 @@ _icon_signal_emit(Evas_Object *obj)
416 char buf[64]; 416 char buf[64];
417 417
418 if (!elm_widget_resize_object_get(obj)) return; 418 if (!elm_widget_resize_object_get(obj)) return;
419 if (!edje_object_part_exists(obj, "elm.swallow.content")) return;
419 snprintf(buf, sizeof(buf), "elm,state,icon,%s", 420 snprintf(buf, sizeof(buf), "elm,state,icon,%s",
420 elm_layout_content_get(obj, "icon") ? "visible" : "hidden"); 421 elm_layout_content_get(obj, "icon") ? "visible" : "hidden");
421 422