From 62482c2ac093ba6754885870ffcb260ba2e4d344 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sat, 11 Nov 2023 19:34:54 +0100 Subject: [PATCH] clutter/actor: Move autocleanup functions Part-of: --- clutter/clutter/clutter-actor.h | 2 ++ clutter/clutter/clutter-autocleanups.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-actor.h b/clutter/clutter/clutter-actor.h index 8fea3dd4d..62ebe789d 100644 --- a/clutter/clutter/clutter-actor.h +++ b/clutter/clutter/clutter-actor.h @@ -51,6 +51,8 @@ G_BEGIN_DECLS #define CLUTTER_IS_ACTOR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_ACTOR)) #define CLUTTER_ACTOR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_ACTOR, ClutterActorClass)) +G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterActor, g_object_unref) + typedef struct _ClutterActorClass ClutterActorClass; typedef struct _ClutterActorPrivate ClutterActorPrivate; diff --git a/clutter/clutter/clutter-autocleanups.h b/clutter/clutter/clutter-autocleanups.h index 2f2abeb84..0ad713c06 100644 --- a/clutter/clutter/clutter-autocleanups.h +++ b/clutter/clutter/clutter-autocleanups.h @@ -29,7 +29,6 @@ #ifndef __GI_SCANNER__ -G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterActor, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterClone, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterInputDevice, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC (ClutterScrollActor, g_object_unref)