summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-01-27 11:56:42 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-01-27 11:56:42 +0000
commite1226ecfff0c7d91754fff2e67d162ab3f7b7c56 (patch)
tree8f1c4c820ce5a0c2c6dafe346cb5c1e2ac31d148 /src
parent257dced03842b9ac8bd4c18f59c29ca28717c9e0 (diff)
elm - test - genlist - add more callback event printfs for testing
Diffstat (limited to 'src')
-rw-r--r--src/bin/elementary/test_genlist.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/bin/elementary/test_genlist.c b/src/bin/elementary/test_genlist.c
index bf6ba4c9d9..41ff4a3903 100644
--- a/src/bin/elementary/test_genlist.c
+++ b/src/bin/elementary/test_genlist.c
@@ -292,6 +292,24 @@ _gl_selected(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
292} 292}
293 293
294static void 294static void
295_gl_unselected(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
296{
297 printf("unselected: %p\n", event_info);
298}
299
300static void
301_gl_highlighted(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
302{
303 printf("highlighted: %p\n", event_info);
304}
305
306static void
307_gl_unhighlighted(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
308{
309 printf("unhighlighted: %p\n", event_info);
310}
311
312static void
295_gl_double_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info) 313_gl_double_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
296{ 314{
297 printf("double clicked: %p\n", event_info); 315 printf("double clicked: %p\n", event_info);
@@ -445,6 +463,9 @@ test_genlist(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
445 463
446 gl = elm_genlist_add(win); 464 gl = elm_genlist_add(win);
447 evas_object_smart_callback_add(gl, "selected", _gl_selected, NULL); 465 evas_object_smart_callback_add(gl, "selected", _gl_selected, NULL);
466 evas_object_smart_callback_add(gl, "unselected", _gl_unselected, NULL);
467 evas_object_smart_callback_add(gl, "highlighted", _gl_highlighted, NULL);
468 evas_object_smart_callback_add(gl, "unhighlighted", _gl_unhighlighted, NULL);
448 evas_object_smart_callback_add(gl, "clicked,double", _gl_double_clicked, NULL); 469 evas_object_smart_callback_add(gl, "clicked,double", _gl_double_clicked, NULL);
449 evas_object_smart_callback_add(gl, "clicked,right", _gl_right_clicked, NULL); 470 evas_object_smart_callback_add(gl, "clicked,right", _gl_right_clicked, NULL);
450 evas_object_smart_callback_add(gl, "longpressed", _gl_longpress, NULL); 471 evas_object_smart_callback_add(gl, "longpressed", _gl_longpress, NULL);