vala r1917 - in trunk: . vapi
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1917 - in trunk: . vapi
- Date: Sat, 25 Oct 2008 09:28:40 +0000 (UTC)
Author: juergbi
Date: Sat Oct 25 09:28:40 2008
New Revision: 1917
URL: http://svn.gnome.org/viewvc/vala?rev=1917&view=rev
Log:
2008-10-25 JÃrg Billeter <j bitron ch>
* vapi/gobject-2.0.vapi:
Add GValueArray binding, patch by Mark Lee, fixes bug 557843
Modified:
trunk/ChangeLog
trunk/THANKS
trunk/vapi/gobject-2.0.vapi
Modified: trunk/THANKS
==============================================================================
--- trunk/THANKS (original)
+++ trunk/THANKS Sat Oct 25 09:28:40 2008
@@ -41,6 +41,7 @@
Maciej Piechotka
Marc-Andrà Lureau
Marcelo Lira
+Mark Lee
Mart Roosmaa
Mathias Hasselmann
MatÃas De la Puente
Modified: trunk/vapi/gobject-2.0.vapi
==============================================================================
--- trunk/vapi/gobject-2.0.vapi (original)
+++ trunk/vapi/gobject-2.0.vapi Sat Oct 25 09:28:40 2008
@@ -253,7 +253,7 @@
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 @@
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 {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]