diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2020-09-08 17:49:34 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2020-09-08 23:50:12 +0100 |
commit | 9dc5c6a0f3c34fc6192583e3cfa24e2f4ec4054c (patch) | |
tree | cf164243ab7749507b11496bd46641b267fd95d1 /gtk/gtkentrybuffer.h | |
parent | 107e49002d16125141f32f4ad0abe8c9ac611fbd (diff) | |
download | gtk+-9dc5c6a0f3c34fc6192583e3cfa24e2f4ec4054c.tar.gz |
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.
Diffstat (limited to 'gtk/gtkentrybuffer.h')
-rw-r--r-- | gtk/gtkentrybuffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
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__ */ |