[gtk/header-cleanup: 2/7] gsk: Dissolve gsk-autocleanup.h




commit 3688ece655860a6a41e7579f513aa9aa771945f4
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Sep 23 19:40:42 2022 -0400

    gsk: Dissolve gsk-autocleanup.h
    
    Move the autocleanup declarations into their
    respective headers.

 gsk/gsk-autocleanup.h | 29 -----------------------------
 gsk/gsk.h             |  2 --
 gsk/gskrenderer.h     |  2 ++
 gsk/gskrendernode.h   |  1 +
 gsk/gsktransform.h    |  1 +
 gsk/meson.build       |  1 -
 6 files changed, 4 insertions(+), 32 deletions(-)
---
diff --git a/gsk/gsk.h b/gsk/gsk.h
index 73cb1daa57..25fe1b7bf6 100644
--- a/gsk/gsk.h
+++ b/gsk/gsk.h
@@ -32,8 +32,6 @@
 #include <gsk/gsktypes.h>
 #include <gsk/gskenumtypes.h>
 
-#include <gsk/gsk-autocleanup.h>
-
 #undef __GSK_H_INSIDE__
 
 #endif /* __GSK_H__ */
diff --git a/gsk/gskrenderer.h b/gsk/gskrenderer.h
index 70f05a7180..b14898d39d 100644
--- a/gsk/gskrenderer.h
+++ b/gsk/gskrenderer.h
@@ -63,6 +63,8 @@ void                    gsk_renderer_render                     (GskRenderer
                                                                  GskRenderNode           *root,
                                                                  const cairo_region_t    *region);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GskRenderer, g_object_unref)
+
 G_END_DECLS
 
 #endif /* __GSK_RENDERER_H__ */
diff --git a/gsk/gskrendernode.h b/gsk/gskrendernode.h
index ba05d606f9..3fa1d057c2 100644
--- a/gsk/gskrendernode.h
+++ b/gsk/gskrendernode.h
@@ -553,6 +553,7 @@ GskRenderNode *         gsk_value_get_render_node               (const GValue
 GDK_AVAILABLE_IN_4_4
 GskRenderNode *         gsk_value_dup_render_node               (const GValue             *value);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GskRenderNode, gsk_render_node_unref)
 
 G_END_DECLS
 
diff --git a/gsk/gsktransform.h b/gsk/gsktransform.h
index d74d4e197f..9579a684b7 100644
--- a/gsk/gsktransform.h
+++ b/gsk/gsktransform.h
@@ -134,6 +134,7 @@ void                    gsk_transform_transform_point           (GskTransform
                                                                  const graphene_point_t          *point,
                                                                  graphene_point_t                *out_point);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GskTransform, gsk_transform_unref)
 
 G_END_DECLS
 
diff --git a/gsk/meson.build b/gsk/meson.build
index b65b4261db..02e9c58954 100644
--- a/gsk/meson.build
+++ b/gsk/meson.build
@@ -70,7 +70,6 @@ gsk_public_headers = files([
   'gskroundedrect.h',
   'gsktransform.h',
   'gsktypes.h',
-  'gsk-autocleanup.h',
 ])
 install_headers(gsk_public_headers, 'gsk.h', subdir: 'gtk-4.0/gsk')
 


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