[mutter/wip/carlosg/unthrottled-wayland: 61/75] 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: 61/75] clutter: Do not export _clutter_stage_do_pick()
- Date: Tue, 30 Nov 2021 11:26:23 +0000 (UTC)
commit bedd349810030386809dc2c901fc9aacd4e566a2
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 | 6 +++++-
3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c
index 73e60ff4cc..076d0c0d3d 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -774,7 +774,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 ab171efac9..cae0ed330d 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -170,6 +170,10 @@ static void clutter_stage_update_view_perspective (ClutterStage *stage);
static void clutter_stage_set_viewport (ClutterStage *stage,
float width,
float height);
+static ClutterActor * _clutter_stage_do_pick (ClutterStage *stage,
+ float x,
+ float y,
+ ClutterPickMode mode);
G_DEFINE_TYPE_WITH_PRIVATE (ClutterStage, clutter_stage, CLUTTER_TYPE_ACTOR)
@@ -1052,7 +1056,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]