[gtk+] autocleanups: allow g_autoptr() usage with GtkTreePath



commit dc8320c129470d619e2fc1964a1e28b05e9477f8
Author: Christian Hergert <chergert redhat com>
Date:   Mon Dec 4 19:22:40 2017 -0800

    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

 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 75abbaa..cc8b88b 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)
 


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