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




commit db366bfe3396b68dbb51ee82aa4b0ba0f1683aaa
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 543ec1b1f1..e562b3ed2f 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -1201,7 +1201,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 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]