]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib: make the parameter of VariantDict constructor nullable
authorXZS <d.f.fischer@web.de>
Mon, 11 Aug 2014 12:33:32 +0000 (14:33 +0200)
committerLuca Bruno <lucabru@src.gnome.org>
Tue, 12 Aug 2014 18:10:43 +0000 (20:10 +0200)
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

vapi/glib-2.0.vapi

index 272a1ad309d70e94de8db94c29f2965a4646e8da..13ae5e26b833d56b49ad7e65a88c546cbe48db20 100644 (file)
@@ -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);