* ephoto: call exif only on jpeg file.

SVN revision: 52927
This commit is contained in:
Cedric BAIL 2010-09-30 16:23:54 +00:00
parent 9f0346d7e1
commit 7a3e11d737
1 changed files with 11 additions and 9 deletions

View File

@ -77,16 +77,11 @@ _ephoto_go_update(Ephoto_Flow_Browser *ef)
file_type = efreet_mime_type_get(ef->cur_image);
if (file_type && !strcmp(file_type, "image/jpeg"))
{
success = (elm_photocam_file_set(ef->image, ef->cur_image) == EVAS_LOAD_ERROR_NONE);
success = elm_photocam_file_set(ef->image, ef->cur_image) == EVAS_LOAD_ERROR_NONE;
elm_layout_content_set(ef->flow_browser, "ephoto.flow.swallow", ef->image);
evas_object_show(ef->image);
} else {
success = elm_image_file_set(ef->image2, ef->cur_image, NULL);
elm_layout_content_set(ef->flow_browser, "ephoto.flow.swallow", ef->image2);
evas_object_show(ef->image2);
}
if (success)
{
evas_object_hide(ef->image2);
#ifdef HAVE_LIBEXIF
int orientation = 0;
@ -134,8 +129,15 @@ _ephoto_go_update(Ephoto_Flow_Browser *ef)
}
}
#endif
} else {
success = elm_image_file_set(ef->image2, ef->cur_image, NULL);
elm_layout_content_set(ef->flow_browser, "ephoto.flow.swallow", ef->image2);
evas_object_show(ef->image2);
evas_object_hide(ef->image);
}
if (success)
_ephoto_set_title(ef->cur_image);
}
elm_toolbar_item_unselect_all(ef->toolbar);