[gtk+/gtk-3-22] autocleanups: allow g_autoptr() usage with GtkTreePath



commit 86dd1e37a70e9bae057a9a11332f7254cda242e8
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 561485e..24ae485 100644
--- a/gtk/gtk-autocleanups.h
+++ b/gtk/gtk-autocleanups.h
@@ -198,6 +198,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTargetList, gtk_target_list_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkTextAttributes, gtk_text_attributes_unref)
 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]