summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2009-12-20 00:28:02 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2009-12-20 00:28:02 +0000
commit0eeb89e491d700c67b954df09cd8b64b8b346a1e (patch)
treee58260a4b5c6541f6d3d0981121525ee9063cae7 /src/edje_externals/elm.c
parent06a713df13db60dc64b8a71a60b05849f33dff4b (diff)
Icon parser check if it was successfuly set and if not deletes the icon.
that's the end of that ugly space in editje button. SVN revision: 44589
Diffstat (limited to '')
-rw-r--r--src/edje_externals/elm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/edje_externals/elm.c b/src/edje_externals/elm.c
index 2477d1ad6..cc265832b 100644
--- 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
42 edje_object_file_get(parent, &file, NULL); 42 edje_object_file_get(parent, &file, NULL);
43 *icon = elm_icon_add(parent); 43 *icon = elm_icon_add(parent);
44 44
45 if (!elm_icon_file_set(*icon, file, p->s)) 45 if (elm_icon_file_set(*icon, file, p->s))
46 elm_icon_standard_set(*icon, p->s); 46 return;
47 if (elm_icon_standard_set(*icon, p->s))
48 return;
49
50 evas_object_del(*icon);
51 *icon = NULL;
47 } 52 }
48} 53}
49 54