]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: add GenericArray.length, correct type for PtrArray.set_size
authorEvan Nemerson <evan@coeus-group.com>
Mon, 21 Jun 2010 06:27:10 +0000 (23:27 -0700)
committerEvan Nemerson <evan@coeus-group.com>
Mon, 21 Jun 2010 06:27:10 +0000 (23:27 -0700)
vapi/glib-2.0.vapi

index 66635b489ae479019c0393cc9fbd36f28e034192..dafb6d2791210c083961f0b7fa9e1d0e3097ad1d 100644 (file)
@@ -3595,7 +3595,7 @@ namespace GLib {
                public void sort (CompareFunc compare_func);
                public void sort_with_data (CompareDataFunc compare_func);
                public void set_free_func (GLib.DestroyNotify? element_free_function);
-               public void set_size (uint length);
+               public void set_size (int length);
 
                public uint len;
                public void** pdata;
@@ -3621,7 +3621,14 @@ namespace GLib {
                }
                public void sort (GLib.CompareFunc compare_func);
                public void sort_with_data (GLib.CompareDataFunc compare_func);
-               public void set_size (uint length);
+               private void set_size (int length);
+
+               public int length {
+                       get { return (int) this.len; }
+                       set { this.set_size (value); }
+               }
+
+               private uint len;
        }
 
        /* Byte Arrays */