[vala/wip/foreach: 4/7] glib-2.0: Improve GenericArray.length property




commit 930a983ddd409d88c4e0abb4a41d3faf5073883e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Nov 9 15:23:51 2020 +0100

    glib-2.0: Improve GenericArray.length property

 vapi/glib-2.0.vapi | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 23841a337..3ed2b2a4f 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -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")]


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