diff --git a/src/bin/ephoto_flow_browser.c b/src/bin/ephoto_flow_browser.c index c8334a7..9789e08 100644 --- a/src/bin/ephoto_flow_browser.c +++ b/src/bin/ephoto_flow_browser.c @@ -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);