diff options
author | Christian Hergert <chergert@redhat.com> | 2017-12-04 19:22:40 -0800 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-12-05 12:33:50 +0000 |
commit | dc8320c129470d619e2fc1964a1e28b05e9477f8 (patch) | |
tree | 0f192723e3c3d13cfd1c5a043262a43eebbb86b9 /gtk/gtk-autocleanups.h | |
parent | 51db8f8f538cc14a255d55c7d61c3a0844e52447 (diff) | |
download | gtk+-dc8320c129470d619e2fc1964a1e28b05e9477f8.tar.gz |
autocleanups: allow g_autoptr() usage with GtkTreePath
As the summary says, this allows using g_autoptr(GtkTreePath). This is
useful for API that uses out parameters for GtkTreePath that need to be
freed.
https://bugzilla.gnome.org/show_bug.cgi?id=791234
Diffstat (limited to 'gtk/gtk-autocleanups.h')
-rw-r--r-- | gtk/gtk-autocleanups.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtk-autocleanups.h b/gtk/gtk-autocleanups.h index 75abbaaa58..cc8b88b3cd 100644 --- a/gtk/gtk-autocleanups.h +++ b/gtk/gtk-autocleanups.h @@ -191,6 +191,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPaperSize, gtk_paper_size_free) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkSelectionData, gtk_selection_data_free) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTextIter, gtk_text_iter_free) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTreeIter, gtk_tree_iter_free) +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTreePath, gtk_tree_path_free) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTreeRowReference, gtk_tree_row_reference_free) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWidgetPath, gtk_widget_path_unref) |