aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_photo.c
diff options
context:
space:
mode:
authorJonathan Atton <jonathan.atton@gmail.com>2010-07-14 14:48:21 +0000
committerJonathan Atton <jonathan.atton@gmail.com>2010-07-14 14:48:21 +0000
commita05015145db1d28c3b71f77c6fe5e9a9bac96ba9 (patch)
tree91a3c8464777b7d8e335f996ff63216b04c9bf24 /legacy/elementary/src/bin/test_photo.c
parentAdd a list of "layout" to elm_slideshow. A layout is like a "sub-style". For ... (diff)
downloadefl-a05015145db1d28c3b71f77c6fe5e9a9bac96ba9.tar.gz
Elm_Photo:
- Add a way to display a photo by keeping the ratio AND the theme can display something around the photo (border ...). The way I use is maybe a bit crappy (embryo, offset ...) but I do not know a better way. - Add a new style (with a shadow). The default style has no changes If you do not like my way, revert the commit and commit your way :) Elm_Slideshow: - Use elm_photo in the test - Add a black background SVN revision: 50248
Diffstat (limited to 'legacy/elementary/src/bin/test_photo.c')
-rw-r--r--legacy/elementary/src/bin/test_photo.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/legacy/elementary/src/bin/test_photo.c b/legacy/elementary/src/bin/test_photo.c
index 8c82d57ebf..67dd63034b 100644
--- a/legacy/elementary/src/bin/test_photo.c
+++ b/legacy/elementary/src/bin/test_photo.c
@@ -8,13 +8,13 @@ test_photo(void *data, Evas_Object *obj, void *event_info)
char buf[PATH_MAX];
const char *img[9] =
{
- "panel_01.jpg",
- "plant_01.jpg",
- "rock_01.jpg",
+ "panel_01.jpg",
+ "mystrale.jpg",
+ "mystrale_2.jpg",
"rock_02.jpg",
- "sky_01.jpg",
- "sky_02.jpg",
- "sky_03.jpg",
+ "sky_01.jpg",
+ "sky_02.jpg",
+ "sky_03.jpg",
"sky_04.jpg",
"wood_01.jpg"
};
@@ -47,6 +47,10 @@ test_photo(void *data, Evas_Object *obj, void *event_info)
evas_object_size_hint_align_set(ph, EVAS_HINT_FILL,
EVAS_HINT_FILL);
elm_photo_size_set(ph, 80);
+ if(n == 2 || n == 3) {
+ elm_photo_fill_inside_set(ph, EINA_TRUE);
+ elm_widget_style_set(ph, "shadow");
+ }
elm_table_pack(tb, ph, i, j, 1, 1);
evas_object_show(ph);
}