aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_widget_image.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-01-01 22:19:51 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-01-02 09:51:57 +0900
commit3779086a638ec5e30bc102fefa17e34d91d17767 (patch)
tree40f53c90753c265646e5f1dada0c759022ec14d9 /src/bin/e_widget_image.c
parente icon header - clean up formatting (diff)
downloadenlightenment-3779086a638ec5e30bc102fefa17e34d91d17767.tar.gz
e icon - use new skip header async preload to make icon loads async
now they can be trule async hopefully stopping things like application menu from stalling while loading icons header... which is really nasty with svg's. this actually makes icons async by default which is really EXACTLY what you want. this also prepares for later making edje loads async. @feature
Diffstat (limited to 'src/bin/e_widget_image.c')
-rw-r--r--src/bin/e_widget_image.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/bin/e_widget_image.c b/src/bin/e_widget_image.c
index d792edf6d..2196ae3a7 100644
--- a/src/bin/e_widget_image.c
+++ b/src/bin/e_widget_image.c
@@ -49,19 +49,14 @@ e_widget_image_add_from_file(Evas *evas, const char *file, int minw, int minh)
Evas_Object *obj, *o;
E_Widget_Data *wd;
+ if (!ecore_file_exists(file)) return NULL;
obj = e_widget_add(evas);
wd = calloc(1, sizeof(E_Widget_Data));
if (!wd) return NULL;
o = e_icon_add(evas);
e_icon_fill_inside_set(o, 1);
- if (!e_icon_file_set(o, file))
- {
- evas_object_del(o);
- free(wd);
- evas_object_del(obj);
- return NULL;
- }
+ e_icon_file_set(o, file);
wd->img = o;
evas_object_show(o);