[prev in list] [next in list] [prev in thread] [next in thread]
List: enlightenment-svn
Subject: E SVN: okra trunk/ephoto/src/bin
From: "Enlightenment SVN" <no-reply () enlightenment ! org>
Date: 2011-06-30 16:11:35
Message-ID: 20110630161135.5B2921180C4 () e2 ! enlightenment ! org
[Download RAW message or body]
Log:
Make edje work in slideshow as well
Author: okra
Date: 2011-06-30 09:11:35 -0700 (Thu, 30 Jun 2011)
New Revision: 60876
Trac: http://trac.enlightenment.org/e/changeset/60876
Modified:
trunk/ephoto/src/bin/ephoto_slideshow.c
Modified: trunk/ephoto/src/bin/ephoto_slideshow.c
===================================================================
--- trunk/ephoto/src/bin/ephoto_slideshow.c 2011-06-30 16:04:18 UTC (rev 60875)
+++ trunk/ephoto/src/bin/ephoto_slideshow.c 2011-06-30 16:11:35 UTC (rev 60876)
@@ -140,9 +140,25 @@
Ephoto_Entry *entry = data;
/* TODO use viewer from ephoto_single_browser.c */
/* TODO consider using exif rotation, see ephoto_single_browser.c */
- Evas_Object *image = elm_photo_add(obj);
- elm_photo_file_set(image, entry->path);
- elm_photo_fill_inside_set(image, EINA_TRUE);
+ const char *group = NULL;
+ const char *ext = strrchr(entry->path, '.');
+ if (ext)
+ {
+ ext++;
+ if ((strcasecmp(ext, "edj") == 0))
+ {
+ if (edje_file_group_exists(entry->path, "e,desktop,background"))
+ group = "e,desktop,background";
+ else
+ {
+ Eina_List *g = edje_file_collection_list(entry->path);
+ group = eina_list_data_get(g);
+ edje_file_collection_list_free(g);
+ }
+ }
+ }
+ Evas_Object *image = elm_image_add(obj);
+ elm_image_file_set(image, entry->path, group);
elm_object_style_set(image, "shadow");
evas_object_data_set
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
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