From: Ryan Lortie Date: Wed, 2 Sep 2009 16:00:36 +0000 (-0400) Subject: add conditional GTree refcounts with -D GLIB_2_22 X-Git-Tag: 0.7.6~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1f081fff10cf6f56002181cceade73fedf6d19e;p=thirdparty%2Fvala.git add conditional GTree refcounts with -D GLIB_2_22 --- 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);