[mutter/wip/carlosg/unthrottled-wayland: 6/14] clutter: Do not export _clutter_stage_do_pick()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/unthrottled-wayland: 6/14] clutter: Do not export _clutter_stage_do_pick()
- Date: Sat, 17 Jul 2021 15:10:25 +0000 (UTC)
commit cc6251b4b0251c5b9dcefddaa7522f795b26ed24
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jun 25 18:47:24 2021 +0200
clutter: Do not export _clutter_stage_do_pick()
The clutter_stage_get_actor_at_pos() calls it almost 1:1 underneath
and is public API, we can have all callers use this, and stop using
this function outside of clutter-stage.c.
clutter/clutter/clutter-main.c | 3 ++-
clutter/clutter/clutter-stage-private.h | 5 -----
clutter/clutter/clutter-stage.c | 2 +-
3 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c
index b22c42e260..ec77c624be 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -1201,7 +1201,8 @@ update_device_for_event (ClutterStage *stage,
time_ms = clutter_event_get_time (event);
new_actor =
- _clutter_stage_do_pick (stage, point.x, point.y, CLUTTER_PICK_REACTIVE);
+ clutter_stage_get_actor_at_pos (stage, CLUTTER_PICK_REACTIVE,
+ point.x, point.y);
/* Picking should never fail, but if it does, we bail out here */
g_return_val_if_fail (new_actor != NULL, NULL);
diff --git a/clutter/clutter/clutter-stage-private.h b/clutter/clutter/clutter-stage-private.h
index 690a360fa2..a71b5df826 100644
--- a/clutter/clutter/clutter-stage-private.h
+++ b/clutter/clutter/clutter-stage-private.h
@@ -81,11 +81,6 @@ void _clutter_stage_process_queued_events (ClutterStage *stage);
void _clutter_stage_update_input_devices (ClutterStage *stage);
gboolean _clutter_stage_has_full_redraw_queued (ClutterStage *stage);
-ClutterActor *_clutter_stage_do_pick (ClutterStage *stage,
- float x,
- float y,
- ClutterPickMode mode);
-
ClutterPaintVolume *_clutter_stage_paint_volume_stack_allocate (ClutterStage *stage);
void _clutter_stage_paint_volume_stack_free_all (ClutterStage *stage);
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index fc170107f2..6be7dec20e 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -1119,7 +1119,7 @@ clutter_stage_get_view_at (ClutterStage *stage,
return NULL;
}
-ClutterActor *
+static ClutterActor *
_clutter_stage_do_pick (ClutterStage *stage,
float x,
float y,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]