From dca9d57eeab31ae4ff598ffc1c3991aaf5eaa252 Mon Sep 17 00:00:00 2001 From: JoseExposito Date: Sun, 18 Apr 2021 19:14:05 +0200 Subject: [PATCH] tests/clutter: Add hold event to existing test Add CLUTTER_TOUCHPAD_HOLD to existing interactive tests. Part-of: --- src/tests/clutter/interactive/test-events.c | 3 +++ src/tests/clutter/interactive/test-grab.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/tests/clutter/interactive/test-events.c b/src/tests/clutter/interactive/test-events.c index ea7ca8e49..03cae26b6 100644 --- a/src/tests/clutter/interactive/test-events.c +++ b/src/tests/clutter/interactive/test-events.c @@ -342,6 +342,9 @@ input_cb (ClutterActor *actor, case CLUTTER_TOUCHPAD_SWIPE: g_print ("[%s] TOUCHPAD SWIPE", clutter_actor_get_name (source_actor)); break; + case CLUTTER_TOUCHPAD_HOLD: + g_print ("[%s] TOUCHPAD HOLD", clutter_actor_get_name (source_actor)); + break; case CLUTTER_PROXIMITY_IN: g_print ("[%s] PROXIMITY IN", clutter_actor_get_name (source_actor)); break; diff --git a/src/tests/clutter/interactive/test-grab.c b/src/tests/clutter/interactive/test-grab.c index fc41a34df..d7f5eb710 100644 --- a/src/tests/clutter/interactive/test-grab.c +++ b/src/tests/clutter/interactive/test-grab.c @@ -67,6 +67,9 @@ debug_event_cb (ClutterActor *actor, case CLUTTER_TOUCHPAD_SWIPE: g_print ("[%s] TOUCHPAD SWIPE", source); break; + case CLUTTER_TOUCHPAD_HOLD: + g_print ("[%s] TOUCHPAD HOLD", source); + break; case CLUTTER_PROXIMITY_IN: g_print ("[%s] PROXIMITY IN", source); break;