Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

From: Bluezery <ohpowel@gmail.com>

Subject: [E-devel] [Patch] elm_map: add image loading error handling

I made a bug fix for elm_map.
When a downloaded image has an error, ,  elm_map removes a file and goes on
just like download succeeded .
However, it is not success, so it should be marked as FALSE for later retry.



git-svn-id: http://svn.enlightenment.org/svn/e/trunk@64598 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
  • Loading branch information...
commit 1451d5376f00f4380fca2eff1e90e460b7d89dd7 1 parent 7ddc7f0
authored November 01, 2011
1  elementary/AUTHORS
@@ -46,3 +46,4 @@ Chanwook Jung <joey.jung@samsung.com>
46 46
 Hyoyoung Chang <hyoyoung.chang@samsung.com>
47 47
 Guillaume "Kuri" Friloux <guillaume.friloux@asp64.com>
48 48
 Kim Yunhan <spbear@gmail.com>
  49
+Bluezery <ohpowel@gmail.com>
7  elementary/src/lib/elm_map.c
@@ -1186,7 +1186,12 @@ _tile_update(Grid_Item *gi)
1186 1186
    gi->download = EINA_FALSE;
1187 1187
    evas_object_image_file_set(gi->img, gi->file, NULL);
1188 1188
    if (evas_object_image_load_error_get(gi->img) != EVAS_LOAD_ERROR_NONE)
1189  
-     ecore_file_remove(gi->file);
  1189
+     {
  1190
+        ERR("Image loading error (%s)", gi->file);
  1191
+        ecore_file_remove(gi->file);
  1192
+        gi->have = EINA_FALSE;
  1193
+        return;
  1194
+     }
1190 1195
 
1191 1196
    obj_rotate_zoom(gi->wd->obj, gi->img);
1192 1197
    evas_object_show(gi->img);

0 notes on commit 1451d53

Please sign in to comment.
Something went wrong with that request. Please try again.