[mutter/wip/carlosg/sanitize-gestures: 91/92] tests: Drop dependency on click count
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/sanitize-gestures: 91/92] tests: Drop dependency on click count
- Date: Thu, 28 Oct 2021 22:10:19 +0000 (UTC)
commit 64aa783841f0415b9213f20de45deb049cad3289
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Sep 27 20:41:50 2021 +0200
tests: Drop dependency on click count
This call is being removed, in favor of in-place handling, or a
ClutterGestureAction eventually.
src/tests/clutter/interactive/test-events.c | 6 ++----
src/tests/clutter/interactive/test-grab.c | 3 +--
2 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/tests/clutter/interactive/test-events.c b/src/tests/clutter/interactive/test-events.c
index e8408b5e2a..ea7ca8e494 100644
--- a/src/tests/clutter/interactive/test-events.c
+++ b/src/tests/clutter/interactive/test-events.c
@@ -263,19 +263,17 @@ input_cb (ClutterActor *actor,
break;
case CLUTTER_BUTTON_PRESS:
clutter_event_get_position (event, &position);
- g_print ("[%s] BUTTON PRESS (button:%i, click count:%i coords:%.02f,%.02f device:%s/%s, state:%s)",
+ g_print ("[%s] BUTTON PRESS (button:%i, coords:%.02f,%.02f device:%s/%s, state:%s)",
clutter_actor_get_name (source_actor),
clutter_event_get_button (event),
- clutter_event_get_click_count (event),
position.x, position.y,
device_name, source_name, state);
break;
case CLUTTER_BUTTON_RELEASE:
clutter_event_get_position (event, &position);
- g_print ("[%s] BUTTON RELEASE (button:%i, click count:%i coords:%.02f,%.02f device:%s/%s state:%s)",
+ g_print ("[%s] BUTTON RELEASE (button:%i, coords:%.02f,%.02f device:%s/%s state:%s)",
clutter_actor_get_name (source_actor),
clutter_event_get_button (event),
- clutter_event_get_click_count (event),
position.x, position.y,
device_name, source_name, state);
diff --git a/src/tests/clutter/interactive/test-grab.c b/src/tests/clutter/interactive/test-grab.c
index 1de60985be..fc41a34df6 100644
--- a/src/tests/clutter/interactive/test-grab.c
+++ b/src/tests/clutter/interactive/test-grab.c
@@ -41,8 +41,7 @@ debug_event_cb (ClutterActor *actor,
printf("[%s] LEAVE", source);
break;
case CLUTTER_BUTTON_PRESS:
- printf("[%s] BUTTON PRESS (click count:%i)",
- source, event->button.click_count);
+ printf("[%s] BUTTON PRESS", source);
break;
case CLUTTER_BUTTON_RELEASE:
printf("[%s] BUTTON RELEASE", source);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]