summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Nemerson <evan@coeus-group.com>2013-02-17 16:32:22 -0800
committerEvan Nemerson <evan@coeus-group.com>2013-02-17 19:14:15 -0800
commitab34f6e8a7bfc6ae67064a2590349b63f68a2f3c (patch)
tree651b51777a010f58fc3a0974f805134ecc236bc5
parent6ee49444de25a752307b73ff581eefded06ebdbc (diff)
downloadvala-ab34f6e8a7bfc6ae67064a2590349b63f68a2f3c.tar.gz
glib-2.0: fix g_variant_new_fixed_array binding
The elements argument needs to be a generic array, with the type depending on the element_type argument.
-rw-r--r--vapi/glib-2.0.vapi3
1 files changed, 2 insertions, 1 deletions
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index db675c65c..29cbb2650 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -4570,7 +4570,8 @@ namespace GLib {
public Variant.variant (Variant value);
public Variant.maybe (VariantType? child_type, Variant? child);
public Variant.array (VariantType? child_type, Variant[] children);
- public Variant.fixed_array (VariantType? element_type, [CCode (array_length_type = "gsize")] Variant[] elements, size_t element_size);
+ [CCode (simple_generics = true)]
+ public static Variant new_fixed_array<T> (VariantType? element_type, [CCode (array_length_type = "gsize")] T[] elements, size_t element_size);
public Variant.tuple (Variant[] children);
public Variant.dict_entry (Variant key, Variant value);
public Variant get_variant ();