]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Add Node n_children() method and fix nth_child()
authorLuca Bruno <lucabru@src.gnome.org>
Sun, 1 May 2011 06:50:50 +0000 (08:50 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 29 May 2011 09:28:14 +0000 (11:28 +0200)
Fixes bug 649052.

vapi/glib-2.0.vapi

index dd0b6a5a28a3274ccdcf33ba2cd876e78ebb4eb9..0879d35cb33a41f732cc17b00692fc773465b314 100644 (file)
@@ -4101,7 +4101,7 @@ namespace GLib {
                public int child_position (Node<G> child);
                public unowned Node<G> first_child ();
                public unowned Node<G> last_child ();
-               public unowned Node<G> nth_child ();
+               public unowned Node<G> nth_child (uint n);
                public unowned Node<G> first_sibling ();
                public unowned Node<G> next_sibling ();
                public unowned Node<G> prev_sibling ();
@@ -4115,6 +4115,7 @@ namespace GLib {
 
                public uint depth ();
                public uint n_nodes (TraverseFlags flags);
+               public uint n_children ();
                public uint max_height ();
 
                [CCode (cname = "g_node_unlink")]