elm map: Add error handling to see the definite error log because

sometimes evas_object_image_file_set() is failed. Patch by Bluezery
<ohpowel@gmail.com>


SVN revision: 65707
This commit is contained in:
Daniel Juyung Seo 2011-11-30 05:00:56 +00:00
parent 6f1dd8c84d
commit 7cd22aa075
1 changed files with 11 additions and 11 deletions

View File

@ -1187,21 +1187,21 @@ _tile_update(Grid_Item *gi)
gi->want = EINA_FALSE;
gi->download = EINA_FALSE;
evas_object_image_file_set(gi->img, gi->file, NULL);
if (evas_object_image_load_error_get(gi->img) != EVAS_LOAD_ERROR_NONE)
Evas_Load_Error err = evas_object_image_load_error_get(gi->img);
if (err != EVAS_LOAD_ERROR_NONE)
{
ERR("Image loading error (%s)", gi->file);
ERR("Image loading error (%s): %s", gi->file, evas_load_error_str(err));
ecore_file_remove(gi->file);
gi->have = EINA_FALSE;
return;
}
obj_rotate_zoom(gi->wd->obj, gi->img);
evas_object_show(gi->img);
//evas_object_text_text_set(gi->txt, gi->file);
//evas_object_show(gi->txt);
gi->have = EINA_TRUE;
else
{
obj_rotate_zoom(gi->wd->obj, gi->img);
evas_object_show(gi->img);
gi->have = EINA_TRUE;
//evas_object_text_text_set(gi->txt, gi->file);
//evas_object_show(gi->txt);
}
}
static void