[mutter/gbsneto/pick-culling: 11/16] clutter/pick-stack: Add autoptr support




commit e8840a46b5e6123e1bf07ebb2e263d07a00948c0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Oct 22 19:34:26 2020 -0300

    clutter/pick-stack: Add autoptr support
    
    It'll allow us use g_autoptr (ClutterPickStack) when removing the pick stack
    cache, making the code a bit more modern.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1520

 clutter/clutter/clutter-pick-stack-private.h | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/clutter/clutter/clutter-pick-stack-private.h b/clutter/clutter/clutter-pick-stack-private.h
index 159b8c4ebb..0523fcafe6 100644
--- a/clutter/clutter/clutter-pick-stack-private.h
+++ b/clutter/clutter/clutter-pick-stack-private.h
@@ -61,6 +61,8 @@ clutter_pick_stack_search_actor (ClutterPickStack         *pick_stack,
                                  const graphene_point3d_t *point,
                                  const graphene_ray_t     *ray);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterPickStack, clutter_pick_stack_unref)
+
 G_END_DECLS
 
 #endif /* CLUTTER_PICK_STACK_PRIVATE_H */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]