[mutter/wip/carlosg/unthrottled-wayland: 970/978] clutter: Do not export _clutter_stage_do_pick()




commit e6238c4ec1c841a4122cf1ba33d03cecaea346fc
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 fa0dda69a7..64a1821a49 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -1289,7 +1289,8 @@ update_device_for_event (ClutterStage *stage,
   time = 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 05412ace86..be4f373d26 100644
--- a/clutter/clutter/clutter-stage-private.h
+++ b/clutter/clutter/clutter-stage-private.h
@@ -79,11 +79,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 8627c6a17f..d880dbd381 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]