aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_gengrid.c
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2014-12-29 11:38:17 +0100
committerDave Andreoli <dave@gurumeditation.it>2014-12-29 11:38:17 +0100
commita6486bc1b6491e726b334caf13beed7d6fcb9512 (patch)
tree634e427a0ebf03eb6563debd0c0b9bd8cb852c57 /legacy/elementary/src/bin/test_gengrid.c
parentGenlist: do not fire clicked,right while dragging in progress (diff)
downloadefl-a6486bc1b6491e726b334caf13beed7d6fcb9512.tar.gz
Gengrid: new signal: clicked,right with proper test
@feature
Diffstat (limited to 'legacy/elementary/src/bin/test_gengrid.c')
-rw-r--r--legacy/elementary/src/bin/test_gengrid.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/legacy/elementary/src/bin/test_gengrid.c b/legacy/elementary/src/bin/test_gengrid.c
index 6412840baa..9a155aa912 100644
--- a/legacy/elementary/src/bin/test_gengrid.c
+++ b/legacy/elementary/src/bin/test_gengrid.c
@@ -223,6 +223,12 @@ grid_double_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *
}
static void
+grid_right_clicked(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
+{
+ printf("Right clicked: %p\n", event_info);
+}
+
+static void
grid_longpressed(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info)
{
printf("longpressed %p\n", event_info);
@@ -358,6 +364,7 @@ create_gengrid(Evas_Object *obj, int items)
evas_object_smart_callback_add(grid, "selected", grid_selected, NULL);
evas_object_smart_callback_add(grid, "unselected", grid_unselected, NULL);
evas_object_smart_callback_add(grid, "clicked,double", grid_double_clicked, NULL);
+ evas_object_smart_callback_add(grid, "clicked,right", grid_right_clicked, NULL);
evas_object_smart_callback_add(grid, "longpressed", grid_longpressed, NULL);
evas_object_smart_callback_add(grid, "pressed", grid_pressed, NULL);
evas_object_smart_callback_add(grid, "released", grid_released, NULL);