[gtk/present-toplevel: 4/54] Move GdkSurface autocleanup declaration



commit 726a3abc14abb22cc932cdf3629e7416d452c10d
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Feb 29 09:17:23 2020 -0500

    Move GdkSurface autocleanup declaration
    
    We need this available after including gdksurface.h.

 gdk/gdk-autocleanup.h | 1 -
 gdk/gdksurface.h      | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gdk/gdk-autocleanup.h b/gdk/gdk-autocleanup.h
index 0086e21794..d566986a45 100644
--- a/gdk/gdk-autocleanup.h
+++ b/gdk/gdk-autocleanup.h
@@ -37,7 +37,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkMonitor, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkSeat, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkPopupLayout, gdk_popup_layout_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkVulkanContext, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkSurface, g_object_unref)
 
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkContentFormats, gdk_content_formats_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkEvent, g_object_unref)
diff --git a/gdk/gdksurface.h b/gdk/gdksurface.h
index 5d796d9508..221f93b809 100644
--- a/gdk/gdksurface.h
+++ b/gdk/gdksurface.h
@@ -603,6 +603,8 @@ GdkVulkanContext *
                gdk_surface_create_vulkan_context(GdkSurface     *surface,
                                                  GError        **error);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkSurface, g_object_unref)
+
 G_END_DECLS
 
 #endif /* __GDK_SURFACE_H__ */


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