From f1f081fff10cf6f56002181cceade73fedf6d19e Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Wed, 2 Sep 2009 12:00:36 -0400 Subject: [PATCH] add conditional GTree refcounts with -D GLIB_2_22 --- vapi/glib-2.0.vapi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index beb33ed0d..fdfa4a78c 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -3428,7 +3428,11 @@ namespace GLib { } [Compact] +#if GLIB_2_22 + [CCode (ref_function = "g_tree_ref", unref_function = "g_tree_unref")] +#else [CCode (free_function = "g_tree_destroy")] +#endif public class Tree { public Tree (CompareFunc key_compare_func); public Tree.with_data (CompareDataFunc key_compare_func); -- 2.47.3