aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_photocam.c
diff options
context:
space:
mode:
authorMikael SANS <sans.mikael@gmail.com>2012-02-24 17:58:50 +0000
committerMikael SANS <sans.mikael@gmail.com>2012-02-24 17:58:50 +0000
commitab31707a7df83074419629776d695bb698a5b651 (patch)
treeb5448746a2ee467de1231461c8b43f71d2a3f28e /legacy/elementary/src/bin/test_photocam.c
parentelementary/elm_photocam: add multi-touch zoom gesture (diff)
downloadefl-ab31707a7df83074419629776d695bb698a5b651.tar.gz
elementary/elm_photocam: test for multi-touch zoom gesture
SVN revision: 68427
Diffstat (limited to 'legacy/elementary/src/bin/test_photocam.c')
-rw-r--r--legacy/elementary/src/bin/test_photocam.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/legacy/elementary/src/bin/test_photocam.c b/legacy/elementary/src/bin/test_photocam.c
index eeb37f0a4f..3dae136565 100644
--- a/legacy/elementary/src/bin/test_photocam.c
+++ b/legacy/elementary/src/bin/test_photocam.c
@@ -174,6 +174,12 @@ my_bt_zoom_fill(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUS
}
static void
+my_bt_gesture(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
+{
+ elm_photocam_gesture_set(data, !elm_photocam_gesture_get(data));
+}
+
+static void
_photocam_mouse_wheel_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Object *photocam = data;
@@ -316,12 +322,25 @@ test_photocam(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
elm_table_pack(tb2, bt, 2, 1, 1, 1);
evas_object_show(bt);
+ box = elm_box_add(win);
+ elm_box_horizontal_set(box, EINA_TRUE);
+ evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(box, 0.0, 0.9);
+ elm_table_pack(tb2, box, 0, 2, 1, 1);
+ evas_object_show(box);
+
bt = elm_button_add(win);
elm_object_text_set(bt, "Pause On/Off");
evas_object_smart_callback_add(bt, "clicked", my_bt_pause, ph);
evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(bt, 0.1, 0.9);
- elm_table_pack(tb2, bt, 0, 2, 1, 1);
+ elm_box_pack_end(box, bt);
+ evas_object_show(bt);
+
+ bt = elm_button_add(win);
+ elm_object_text_set(bt, "Gesture On/Off");
+ evas_object_smart_callback_add(bt, "clicked", my_bt_gesture, ph);
+ evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ elm_box_pack_end(box, bt);
evas_object_show(bt);
box = elm_box_add(win);