]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gobject-2.0: Mark parameter of WeakRef() and WeakRef.set() as nullable
authorPhilip Withnall <philip@tecnocode.co.uk>
Sun, 2 Sep 2012 20:34:10 +0000 (21:34 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 3 Sep 2012 17:12:30 +0000 (19:12 +0200)
Fixes bug 683227.

vapi/gobject-2.0.vapi

index e4aae292ae37d732030c2dfd4b7dee9e1a429246..0840c1116df6da6c3163f669cd99dbc551e3b993 100644 (file)
@@ -381,9 +381,9 @@ namespace GLib {
 
        [CCode (destroy_function = "g_weak_ref_clear")]
        public struct WeakRef {
-               public WeakRef (GLib.Object object);
+               public WeakRef (GLib.Object? object);
                public GLib.Object? get ();
-               public void set (GLib.Object object);
+               public void set (GLib.Object? object);
        }
 
        [CCode (instance_pos = 0)]