projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f26da0
)
efl_ui/button: check icon swallow existence before getting its content
author
Mike Blumenkrantz
<zmike@samsung.com>
Wed, 29 May 2019 13:23:12 +0000
(09:23 -0400)
committer
Wonki Kim
<wonki_.kim@samsung.com>
Mon, 3 Jun 2019 07:01:25 +0000
(16:01 +0900)
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
src/lib/elementary/efl_ui_button.c
patch
|
blob
|
history
diff --git
a/src/lib/elementary/efl_ui_button.c
b/src/lib/elementary/efl_ui_button.c
index
c197784
..
b7d0343
100644
(file)
--- a/
src/lib/elementary/efl_ui_button.c
+++ b/
src/lib/elementary/efl_ui_button.c
@@
-439,6
+439,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");