[prev in list] [next in list] [prev in thread] [next in thread]
List: enlightenment-svn
Subject: E SVN: cedric trunk/ephoto/src/bin
From: "Enlightenment SVN" <no-reply () enlightenment ! org>
Date: 2010-09-30 16:23:54
Message-ID: 20100930162354.BEA501180C6 () e2 ! enlightenment ! org
[Download RAW message or body]
Log:
* ephoto: call exif only on jpeg file.
Author: cedric
Date: 2010-09-30 09:23:54 -0700 (Thu, 30 Sep 2010)
New Revision: 52927
Modified:
trunk/ephoto/src/bin/ephoto_flow_browser.c
Modified: trunk/ephoto/src/bin/ephoto_flow_browser.c
===================================================================
--- trunk/ephoto/src/bin/ephoto_flow_browser.c 2010-09-30 16:23:17 UTC (rev 52926)
+++ trunk/ephoto/src/bin/ephoto_flow_browser.c 2010-09-30 16:23:54 UTC (rev 52927)
@@ -77,16 +77,11 @@
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 @@
}
}
#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);
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
enlightenment-svn mailing list
enlightenment-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic