[vala] glib-2.0: add GenericArray.length, correct type for PtrArray.set_size
- From: Evan Nemerson <evann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] glib-2.0: add GenericArray.length, correct type for PtrArray.set_size
- Date: Mon, 21 Jun 2010 06:32:04 +0000 (UTC)
commit 9c1cb931931a1044071de0f52f4467f3da830084
Author: Evan Nemerson <evan coeus-group com>
Date: Sun Jun 20 23:27:10 2010 -0700
glib-2.0: add GenericArray.length, correct type for PtrArray.set_size
vapi/glib-2.0.vapi | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 66635b4..dafb6d2 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]