aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_photocam.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2009-09-11 13:43:02 +0000
committerCarsten Haitzler <raster@rasterman.com>2009-09-11 13:43:02 +0000
commitb08873a42d453566f0c387832bb108a99bc70c39 (patch)
treebf18ab83b185cea33c325f67d71a120f49fcbca1 /legacy/elementary/src/bin/test_photocam.c
parentfix disable state for the spinner (diff)
downloadefl-b08873a42d453566f0c387832bb108a99bc70c39.tar.gz
1. box has clear.
2. photocam widget++ SVN revision: 42405
Diffstat (limited to 'legacy/elementary/src/bin/test_photocam.c')
-rw-r--r--legacy/elementary/src/bin/test_photocam.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_photocam.c b/legacy/elementary/src/bin/test_photocam.c
new file mode 100644
index 0000000000..ad2f23d1ea
--- /dev/null
+++ b/legacy/elementary/src/bin/test_photocam.c
@@ -0,0 +1,34 @@
+#include <Elementary.h>
+
+void
+test_photocam(void *data, Evas_Object *obj, void *event_info)
+{
+ Evas_Object *win, *bg, *ph;
+ char buf[PATH_MAX];
+ const char *img[3] =
+ {
+ "/home/raster/t1.jpg",
+ "/home/raster/t2.jpg",
+ "/home/raster/t3.jpg"
+ };
+
+ win = elm_win_add(NULL, "photo", ELM_WIN_BASIC);
+ elm_win_title_set(win, "Photo");
+ elm_win_autodel_set(win, 1);
+
+ bg = elm_bg_add(win);
+ evas_object_size_hint_weight_set(bg, 1.0, 1.0);
+ elm_win_resize_object_add(win, bg);
+ evas_object_show(bg);
+
+ ph = elm_photocam_add(win);
+ evas_object_size_hint_weight_set(ph, 1.0, 1.0);
+ elm_win_resize_object_add(win, ph);
+
+ elm_photocam_file_set(ph, img[1]);
+
+ evas_object_show(ph);
+
+ evas_object_resize(win, 800, 800);
+ evas_object_show(win);
+}