mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
tests: Drop dependency on click count
This call is being removed, in favor of in-place handling, or a ClutterGestureAction eventually. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2024>
This commit is contained in:
parent
8c4c3f0308
commit
33ca5e3d80
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user