From ee7ba54a7f44372c6c938429c5853fde10cc19b6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 14 Jul 2024 12:52:56 -0400 Subject: [PATCH] colorstate: Add autoptr definitions A little convenience never hurts. --- gdk/gdkcolorstate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/gdkcolorstate.h b/gdk/gdkcolorstate.h index d76b8f574d..fffa4e692c 100644 --- a/gdk/gdkcolorstate.h +++ b/gdk/gdkcolorstate.h @@ -53,4 +53,6 @@ GDK_AVAILABLE_IN_4_16 gboolean gdk_color_state_equal (GdkColorState *self, GdkColorState *other); +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GdkColorState, gdk_color_state_unref); + G_END_DECLS