summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2008-10-25 09:28:40 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-10-25 09:28:40 +0000
commitb219d8abd157cfe56db04e9e5745a5643179cf9b (patch)
treedfed59279a7955b4198c4e841badc0af400c37f8
parent94d15a4663339a53a3c05923bea6a91f0123bf5d (diff)
downloadvala-b219d8abd157cfe56db04e9e5745a5643179cf9b.tar.gz
Add GValueArray binding, patch by Mark Lee, fixes bug 557843
2008-10-25 Jürg Billeter <j@bitron.ch> * vapi/gobject-2.0.vapi: Add GValueArray binding, patch by Mark Lee, fixes bug 557843 svn path=/trunk/; revision=1917
-rw-r--r--ChangeLog6
-rw-r--r--THANKS1
-rw-r--r--vapi/gobject-2.0.vapi15
3 files changed, 20 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d894eba9f..87402bb02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2008-10-25 Jürg Billeter <j@bitron.ch>
+ * vapi/gobject-2.0.vapi:
+
+ Add GValueArray binding, patch by Mark Lee, fixes bug 557843
+
+2008-10-25 Jürg Billeter <j@bitron.ch>
+
* vapi/packages/gconf-2.0/:
Fix gconf_client_notify_add binding
diff --git a/THANKS b/THANKS
index b7f7d75a0..8a9fba01c 100644
--- a/THANKS
+++ b/THANKS
@@ -41,6 +41,7 @@ Levi Bard
Maciej Piechotka
Marc-André Lureau
Marcelo Lira
+Mark Lee
Mart Roosmaa
Mathias Hasselmann
Matías De la Puente
diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi
index d5d7e502c..7b943c5fd 100644
--- a/vapi/gobject-2.0.vapi
+++ b/vapi/gobject-2.0.vapi
@@ -253,7 +253,7 @@ namespace GLib {
public static delegate void ValueTransform (Value src_value, out Value dest_value);
- [CCode (type_id = "G_TYPE_VALUE", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", type_signature = "v")]
+ [CCode (copy_function = "g_value_copy", destroy_function = "g_value_unset", type_id = "G_TYPE_VALUE", marshaller_type_name = "BOXED", get_value_function = "g_value_get_boxed", set_value_function = "g_value_set_boxed", type_signature = "v")]
public struct Value {
[CCode (cname = "G_VALUE_HOLDS")]
public bool holds (Type type);
@@ -353,8 +353,19 @@ namespace GLib {
public static delegate void ClosureNotify (void* data, Closure closure);
+ [Compact]
[CCode (type_id = "G_TYPE_VALUE_ARRAY")]
- public struct ValueArray {
+ public class ValueArray : Boxed {
+ public uint n_values;
+ public Value[] values;
+ public ValueArray (uint n_prealloced);
+ public weak Value? get_nth (uint index_);
+ public void append (Value value);
+ public void prepend (Value value);
+ public void insert (uint index_, Value value);
+ public void remove (uint index_);
+ public void sort (CompareFunc compare_func);
+ public void sort_with_data (CompareDataFunc compare_func);
}
namespace Signal {