]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: fix g_variant_new_fixed_array binding
authorEvan Nemerson <evan@coeus-group.com>
Mon, 18 Feb 2013 00:32:22 +0000 (16:32 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Mon, 18 Feb 2013 03:14:15 +0000 (19:14 -0800)
The elements argument needs to be a generic array, with the type
depending on the element_type argument.

vapi/glib-2.0.vapi

index db675c65c41fa97bed16042710ede5356773b83e..29cbb26507a545ff216f45fc8bccce000b623d9f 100644 (file)
@@ -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 ();