forked from enlightenment/efl
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
This commit is contained in:
parent
97f8c738ef
commit
742dbc50f9
|
@ -480,6 +480,7 @@ _icon_signal_emit(Evas_Object *obj)
|
|||
char buf[64];
|
||||
|
||||
if (!elm_widget_resize_object_get(obj)) return;
|
||||
if (!edje_object_part_exists(obj, "elm.swallow.content")) return;
|
||||
snprintf(buf, sizeof(buf), "elm,state,icon,%s",
|
||||
elm_layout_content_get(obj, "icon") ? "visible" : "hidden");
|
||||
|
||||
|
|
Loading…
Reference in New Issue