Icon parser check if it was successfuly set and if not deletes the icon.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Sun, 20 Dec 2009 00:28:02 +0000 (00:28 +0000)
committerGustavo 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

index 2477d1a..cc26583 100644 (file)
@@ -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;
      }
 }