Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : apps/entice
Dir : e17/apps/entice/src/bin
Modified Files:
entice.c prefs.c prefs.h
Log Message:
auto orient images based on exif data, slower, but less work rotating and saving
images off your camera, you can turn it off in your prefs
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/entice.c,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -3 -r1.61 -r1.62
--- entice.c 7 Sep 2004 03:49:35 -0000 1.61
+++ entice.c 10 Oct 2004 00:58:24 -0000 1.62
@@ -331,7 +331,9 @@
edje_object_signal_emit(entice->edje, "entice,image,display,before",
"");
- tmp = esmart_thumb_evas_object_get(o);
+ tmp =
+ esmart_thumb_evas_object_get(o,
+ entice_config_image_auto_orient_get());
if ((new_current = entice_image_new(tmp)))
{
entice_image_file_set(new_current, esmart_thumb_file_get(o));
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/prefs.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- prefs.c 7 Sep 2004 03:49:35 -0000 1.18
+++ prefs.c 10 Oct 2004 00:58:24 -0000 1.19
@@ -17,6 +17,20 @@
static void entice_config_generate_original_db(char *filename);
/**
+ * entice_config_auto_orient_get - Get whether we should auto orient or not
+ * Returns - 0 doesn't use exif info to orient, 1 does
+ */
+int
+entice_config_image_auto_orient_get(void)
+{
+ int result = 0;
+
+ if (econfig)
+ result = econfig->auto_orient;
+ return (result);
+}
+
+/**
* entice_config_image_quality_get - Get the image quality
* Returns - value should always be >= 70 and <= 100
*/
@@ -231,6 +245,9 @@
if (!e_db_int_get
(db, "/entice/image_quality", &econfig->image_quality))
econfig->image_quality = 80;
+ if (!e_db_int_get
+ (db, "/entice/auto/orient", &econfig->auto_orient))
+ econfig->auto_orient = 1;
if (e_db_int_get(db, "/entice/keys/up/count", &count))
{
@@ -331,6 +348,7 @@
{
e_db_str_set(db, "/entice/theme", "default.eet");
e_db_int_set(db, "/entice/engine", 0);
+ e_db_int_set(db, "/entice/auto/orient", 1);
#ifndef GIMP_REMOTE_BIN
e_db_str_set(db, "/entice/editor", "");
#else
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entice/src/bin/prefs.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- prefs.h 7 Sep 2004 03:49:36 -0000 1.7
+++ prefs.h 10 Oct 2004 00:58:24 -0000 1.8
@@ -19,6 +19,7 @@
int engine;
int image_quality;
+ int auto_orient;
struct
{
@@ -46,5 +47,6 @@
void entice_config_geometry_set(int x, int y, int w, int h);
int entice_config_image_quality_get(void);
const char *entice_config_editor_get(void);
+int entice_config_image_auto_orient_get(void);
#endif
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs