]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Improve GenericArray.length property
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 9 Nov 2020 14:23:51 +0000 (15:23 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Tue, 10 Nov 2020 08:14:29 +0000 (09:14 +0100)
vapi/glib-2.0.vapi

index 23841a3375a7e7f914ea4a8096357adaa19d7f87..3ed2b2a4f1420a552fb91778a4a34822ad56bf35 100644 (file)
@@ -5462,8 +5462,10 @@ namespace GLib {
                private void set_size (int length);
 
                public int length {
+                       [CCode (cname = "vala_g_ptr_array_get_length")]
                        get { return (int) this.len; }
-                       set { this.set_size (value); }
+                       [CCode (cname = "g_ptr_array_set_size")]
+                       set;
                }
 
                [CCode (cname = "pdata", array_length_cname = "len", array_length_type = "guint")]