]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GTree binding improvements, patch by Evan Nemerson, fixes bug 564823
authorJürg Billeter <j@bitron.ch>
Wed, 17 Dec 2008 21:33:33 +0000 (21:33 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Wed, 17 Dec 2008 21:33:33 +0000 (21:33 +0000)
2008-12-17  Jürg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi:

GTree binding improvements, patch by Evan Nemerson,
fixes bug 564823

svn path=/trunk/; revision=2204

ChangeLog
vapi/glib-2.0.vapi

index 32502cf38eb76a2d51cd3102aaea89c3d5c34771..c52ece6913d1f81fd6e15165b39ff22eb95e7eb5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-12-17  Jürg Billeter  <j@bitron.ch>
+
+       * vapi/glib-2.0.vapi:
+
+       GTree binding improvements, patch by Evan Nemerson,
+       fixes bug 564823
+
 2008-12-17  Jürg Billeter  <j@bitron.ch>
 
        * vapi/packages/gstreamer-0.10/:
index 9fb16767dae1e8442a9bebe98c90b7b21821b46b..de4ab0bdd92a9f33a27813f8a8291ac76aabebfd 100644 (file)
@@ -3095,7 +3095,7 @@ namespace GLib {
        
        /* GTree */
        
-       public static delegate int TraverseFunc (void* key, void* value, void* data);
+       public delegate int TraverseFunc (void* key, void* value);
        
        [CCode (c_prefix="C_", has_type_id = false)]
        public enum TraverseType {
@@ -3109,16 +3109,16 @@ namespace GLib {
        [CCode (free_function = "g_tree_destroy")]
        public class Tree<K,V> {
                public Tree (CompareFunc key_compare_func);
-               public Tree.with_data (CompareFunc key_compare_func, void* key_compare_data);
-               public Tree.full (CompareFunc key_compare_func, void* key_compare_data, DestroyNotify? key_destroy_func, DestroyNotify? value_destroy_func);
-               public void insert (K key, V value);
-               public void replace (K key, V value);
+               public Tree.with_data (CompareDataFunc key_compare_func);
+               public Tree.full (CompareDataFunc key_compare_func, DestroyNotify? key_destroy_func, DestroyNotify? value_destroy_func);
+               public void insert (K# key, V# value);
+               public void replace (K# key, V# value);
                public int nnodes ();
                public int height ();
                public weak V lookup (K key);
                public bool lookup_extended (K lookup_key, K orig_key, V value);
-               public void tree_foreach (TraverseFunc traverse_func, TraverseType traverse_type, void* user_data);
-               public weak V tree_search (CompareFunc search_func, void* user_data);
+               public void foreach (TraverseFunc traverse_func);
+               public weak V search (CompareFunc search_func, void* user_data);
                public bool remove (K key);
                public bool steal (K key);
        }