summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-09-07 22:00:20 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-09-07 22:00:20 +0900
commitdad6e8630938712ebf97ad042c1de22854a62f17 (patch)
treeacfe9b9c5fe3fe5b0652749138d3548f89b64f9a
parentd4b5c83d8b2d1c4938c1845b28c0557ed1eaedc2 (diff)
test_gengrid: Added pressed and released callbacks for more tests.
-rw-r--r--src/bin/test_gengrid.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/bin/test_gengrid.c b/src/bin/test_gengrid.c
index bfdd85fd0..4bea62ef7 100644
--- a/src/bin/test_gengrid.c
+++ b/src/bin/test_gengrid.c
@@ -223,9 +223,21 @@ grid_double_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *
223} 223}
224 224
225static void 225static void
226grid_longpress(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) 226grid_longpressed(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
227{ 227{
228 printf("longpress %p\n", event_info); 228 printf("longpressed %p\n", event_info);
229}
230
231static void
232grid_pressed(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
233{
234 printf("pressed %p\n", event_info);
235}
236
237static void
238grid_released(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
239{
240 printf("released %p\n", event_info);
229} 241}
230 242
231static void 243static void
@@ -348,7 +360,9 @@ create_gengrid(Evas_Object *obj, int items)
348 evas_object_smart_callback_add(grid, "selected", grid_selected, NULL); 360 evas_object_smart_callback_add(grid, "selected", grid_selected, NULL);
349 evas_object_smart_callback_add(grid, "unselected", grid_unselected, NULL); 361 evas_object_smart_callback_add(grid, "unselected", grid_unselected, NULL);
350 evas_object_smart_callback_add(grid, "clicked,double", grid_double_clicked, NULL); 362 evas_object_smart_callback_add(grid, "clicked,double", grid_double_clicked, NULL);
351 evas_object_smart_callback_add(grid, "longpressed", grid_longpress, NULL); 363 evas_object_smart_callback_add(grid, "longpressed", grid_longpressed, NULL);
364 evas_object_smart_callback_add(grid, "pressed", grid_pressed, NULL);
365 evas_object_smart_callback_add(grid, "released", grid_released, NULL);
352 evas_object_smart_callback_add(grid, "moved", grid_moved, NULL); 366 evas_object_smart_callback_add(grid, "moved", grid_moved, NULL);
353 evas_object_smart_callback_add(grid, "drag,start,up", grid_drag_up, NULL); 367 evas_object_smart_callback_add(grid, "drag,start,up", grid_drag_up, NULL);
354 evas_object_smart_callback_add(grid, "drag,start,right", grid_drag_right, NULL); 368 evas_object_smart_callback_add(grid, "drag,start,right", grid_drag_right, NULL);
@@ -890,7 +904,7 @@ test_gengrid3(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_
890 elm_gengrid_multi_select_set(grid, EINA_TRUE); 904 elm_gengrid_multi_select_set(grid, EINA_TRUE);
891 evas_object_smart_callback_add(grid, "selected", grid_selected, NULL); 905 evas_object_smart_callback_add(grid, "selected", grid_selected, NULL);
892 evas_object_smart_callback_add(grid, "clicked,double", grid_double_clicked, NULL); 906 evas_object_smart_callback_add(grid, "clicked,double", grid_double_clicked, NULL);
893 evas_object_smart_callback_add(grid, "longpressed", grid_longpress, NULL); 907 evas_object_smart_callback_add(grid, "longpressed", grid_longpressed, NULL);
894 evas_object_smart_callback_add(grid, "moved", grid_moved, NULL); 908 evas_object_smart_callback_add(grid, "moved", grid_moved, NULL);
895 evas_object_smart_callback_add(grid, "drag,start,up", grid_drag_up, NULL); 909 evas_object_smart_callback_add(grid, "drag,start,up", grid_drag_up, NULL);
896 evas_object_smart_callback_add(grid, "drag,start,right", grid_drag_right, NULL); 910 evas_object_smart_callback_add(grid, "drag,start,right", grid_drag_right, NULL);