summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-29 09:17:23 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-29 13:33:43 -0500
commit726a3abc14abb22cc932cdf3629e7416d452c10d (patch)
tree4f3ca46278936890ffa4e9c89995453dee62ce3f
parent0b73150a5b88aa7e867997b4e3eb72a8d86e21e6 (diff)
downloadgtk+-726a3abc14abb22cc932cdf3629e7416d452c10d.tar.gz
Move GdkSurface autocleanup declaration
We need this available after including gdksurface.h.
-rw-r--r--gdk/gdk-autocleanup.h1
-rw-r--r--gdk/gdksurface.h2
2 files changed, 2 insertions, 1 deletions
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__ */