[vala] add conditional GTree refcounts with -D GLIB_2_22



commit f1f081fff10cf6f56002181cceade73fedf6d19e
Author: Ryan Lortie <desrt desrt ca>
Date:   Wed Sep 2 12:00:36 2009 -0400

    add conditional GTree refcounts with -D GLIB_2_22

 vapi/glib-2.0.vapi |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index beb33ed..fdfa4a7 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<K,V> {
 		public Tree (CompareFunc key_compare_func);
 		public Tree.with_data (CompareDataFunc key_compare_func);



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