[gtk/ebassi/secure-buffer: 3/6] Move g_autoptr macro for GtkEntryBuffer




commit 9dc5c6a0f3c34fc6192583e3cfa24e2f4ec4054c
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Sep 8 17:49:34 2020 +0100

    Move g_autoptr macro for GtkEntryBuffer
    
    We need it into its own header, so we can derive from GtkEntryBuffer
    with G_DECLARE_* macros without including gtk.h.

 gtk/gtk-autocleanups.h | 1 -
 gtk/gtkentrybuffer.h   | 2 ++
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtk-autocleanups.h b/gtk/gtk-autocleanups.h
index eb4fb1b874..77c6cd5a56 100644
--- a/gtk/gtk-autocleanups.h
+++ b/gtk/gtk-autocleanups.h
@@ -63,7 +63,6 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkCssProvider, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkDrawingArea, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEditable, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntry, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntryBuffer, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntryCompletion, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEventController, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkExpander, g_object_unref)
diff --git a/gtk/gtkentrybuffer.h b/gtk/gtkentrybuffer.h
index b44bd63a05..a98ce90bcb 100644
--- a/gtk/gtkentrybuffer.h
+++ b/gtk/gtkentrybuffer.h
@@ -137,6 +137,8 @@ void                      gtk_entry_buffer_emit_deleted_text      (GtkEntryBuffe
                                                                    guint            position,
                                                                    guint            n_chars);
 
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkEntryBuffer, g_object_unref)
+
 G_END_DECLS
 
 #endif /* __GTK_ENTRY_BUFFER_H__ */


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