projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06a713d
)
Icon parser check if it was successfuly set and if not deletes the icon.
author
Gustavo Sverzut Barbieri
<barbieri@gmail.com>
Sun, 20 Dec 2009 00:28:02 +0000
(
00:28
+0000)
committer
Gustavo Sverzut Barbieri
<barbieri@gmail.com>
Sun, 20 Dec 2009 00:28:02 +0000
(
00:28
+0000)
that's the end of that ugly space in editje button.
SVN revision: 44589
src/edje_externals/elm.c
patch
|
blob
|
history
diff --git
a/src/edje_externals/elm.c
b/src/edje_externals/elm.c
index
2477d1a
..
cc26583
100644
(file)
--- a/
src/edje_externals/elm.c
+++ b/
src/edje_externals/elm.c
@@
-42,8
+42,13
@@
external_common_icon_param_parse(Evas_Object **icon, Evas_Object *obj, const Ein
edje_object_file_get(parent, &file, NULL);
*icon = elm_icon_add(parent);
- if (!elm_icon_file_set(*icon, file, p->s))
- elm_icon_standard_set(*icon, p->s);
+ if (elm_icon_file_set(*icon, file, p->s))
+ return;
+ if (elm_icon_standard_set(*icon, p->s))
+ return;
+
+ evas_object_del(*icon);
+ *icon = NULL;
}
}