[vala] glib-2.0: Fix binding of Markup.collect_attributes



commit 34f3b85a17d00fde454875fc2cf556876f326a6f
Author: Jens Georg <mail jensge org>
Date:   Thu Sep 22 20:01:19 2016 +0200

    glib-2.0: Fix binding of Markup.collect_attributes
    
    Array parameters don't have an associcated length parameter but are
    null-terminated.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771790

 vapi/glib-2.0.vapi |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index b15d9a6..501df34 100644
--- a/vapi/glib-2.0.vapi
+++ b/vapi/glib-2.0.vapi
@@ -3959,7 +3959,7 @@ namespace GLib {
                public static string vprintf_escaped (string format, va_list args);
                [Version (since = "2.16")]
                [CCode (sentinel = "G_MARKUP_COLLECT_INVALID")]
-               public static bool collect_attributes (string element_name, string[] attribute_names, 
string[] attribute_values, ...) throws MarkupError;
+               public static bool collect_attributes (string element_name, [CCode (array_length = false, 
array_null_terminated = true)] string[] attribute_names, [CCode (array_length = false, array_null_terminated 
= true)] string[] attribute_values, ...) throws MarkupError;
        }
 
        /* Key-value file parser */


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