]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
add conditional GTree refcounts with -D GLIB_2_22
authorRyan Lortie <desrt@desrt.ca>
Wed, 2 Sep 2009 16:00:36 +0000 (12:00 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 2 Sep 2009 16:00:36 +0000 (12:00 -0400)
vapi/glib-2.0.vapi

index beb33ed0d32b77d757f61ce3fd80904abe6d1127..fdfa4a78c0f53576d590bb0883edea49ed0544ae 100644 (file)
@@ -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<K,V> {
                public Tree (CompareFunc key_compare_func);
                public Tree.with_data (CompareDataFunc key_compare_func);