summaryrefslogtreecommitdiff
path: root/src/edje_externals/elm.c
diff options
context:
space:
mode:
authorIván Briano <sachieru@gmail.com>2010-01-25 19:56:45 +0000
committerIván Briano <sachieru@gmail.com>2010-01-25 19:56:45 +0000
commit5b0718f56a3eeac1f07fa692507a90cf7af9b16f (patch)
tree01ae54fed6c5807f61b5e0fa29e9a3e079b000cb /src/edje_externals/elm.c
parent3a9d946025ccbee176b167f7cc35436ee1193d7b (diff)
Remove unused variable and don't create icons if there's no icon set
SVN revision: 45564
Diffstat (limited to 'src/edje_externals/elm.c')
-rw-r--r--src/edje_externals/elm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/edje_externals/elm.c b/src/edje_externals/elm.c
index cc265832b..df06c61a4 100644
--- a/src/edje_externals/elm.c
+++ b/src/edje_externals/elm.c
@@ -35,7 +35,7 @@ external_common_icon_param_parse(Evas_Object **icon, Evas_Object *obj, const Ein
35 Edje_External_Param *p; 35 Edje_External_Param *p;
36 36
37 p = edje_external_param_find(params, "icon"); 37 p = edje_external_param_find(params, "icon");
38 if (p) 38 if (p && p->s)
39 { 39 {
40 Evas_Object *parent = evas_object_smart_parent_get(obj); 40 Evas_Object *parent = evas_object_smart_parent_get(obj);
41 const char *file; 41 const char *file;
@@ -48,8 +48,8 @@ external_common_icon_param_parse(Evas_Object **icon, Evas_Object *obj, const Ein
48 return; 48 return;
49 49
50 evas_object_del(*icon); 50 evas_object_del(*icon);
51 *icon = NULL;
52 } 51 }
52 *icon = NULL;
53} 53}
54 54
55void 55void