[vala] glib-2.0: fix g_variant_new_fixed_array binding



commit ab34f6e8a7bfc6ae67064a2590349b63f68a2f3c
Author: Evan Nemerson <evan coeus-group com>
Date:   Sun Feb 17 16:32:22 2013 -0800

    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.

 vapi/glib-2.0.vapi |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index db675c6..29cbb26 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 ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]