aboutsummaryrefslogtreecommitdiffstats
path: root/legacy
diff options
context:
space:
mode:
authorDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-20 10:48:12 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2016-03-20 10:51:55 +0200
commita60ff38a01de3426eb8a2c0d661cdcc0c6f1d0ad (patch)
treef470d9adc7498624fdb59e77e4fc872b916b60e0 /legacy
parentEvas.Draggable_Interface: move editable_set/get to lecacy API (diff)
downloadefl-a60ff38a01de3426eb8a2c0d661cdcc0c6f1d0ad.tar.gz
Tests/Photocam: add default image
This helps to generate a Exactness scenario that doesn't depend on file locations.
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/bin/test_photocam.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_photocam.c b/legacy/elementary/src/bin/test_photocam.c
index 1b5a027585..be6a1724b1 100644
--- a/legacy/elementary/src/bin/test_photocam.c
+++ b/legacy/elementary/src/bin/test_photocam.c
@@ -280,6 +280,7 @@ _photocam_move_resize_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj, void
void
test_photocam(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
{
+ char buf[PATH_MAX];
Evas_Object *win, *ph, *tb2, *bt, *box, *rd, *rdg = NULL;
int i;
Evas_Object *rect = NULL;
@@ -288,6 +289,8 @@ test_photocam(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
ph = elm_photocam_add(win);
evas_object_size_hint_weight_set(ph, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ snprintf(buf, sizeof(buf), "%s/images/rock_01.jpg", elm_app_data_dir_get());
+ elm_photocam_file_set(ph, buf);
elm_win_resize_object_add(win, ph);
// this rectangle hooks the event prior to scroller