From: XZS Date: Mon, 11 Aug 2014 12:33:32 +0000 (+0200) Subject: glib: make the parameter of VariantDict constructor nullable X-Git-Tag: 0.25.2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=198d7e8bbaabe405c7096de4d6de0bc5c68fe6fd;p=thirdparty%2Fvala.git glib: make the parameter of VariantDict constructor nullable The underlying glib implementation accepts null to initialize an empty dictionary. The vapi now reflects this, defaulting the single parameter to null. Fixes bug 734612 --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 272a1ad30..13ae5e26b 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -5043,7 +5043,7 @@ namespace GLib { [Compact, CCode (ref_function = "g_variant_dict_ref", unref_function = "g_variant_dict_unref")] public class VariantDict { - public VariantDict (GLib.Variant from_asv); + public VariantDict (GLib.Variant? from_asv = null); public bool lookup (string key, string format_string, ...); public GLib.Variant lookup_value (string key, GLib.VariantType expected_type); public bool contains (string key);