]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
glib-2.0: Source.dispatch() accepts a null SourceFunc 4fcb66c21e9568e53799e81d59024c3981ff65ee
authorAlistair Thomas <astavale@yahoo.co.uk>
Sat, 16 Jun 2018 18:58:16 +0000 (19:58 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 18 Jun 2018 09:50:18 +0000 (11:50 +0200)
tests/objects/gsource.vala
vapi/glib-2.0.vapi

index 8ee450f1f9bfc58859d7a9f9af3024197bd32958..cb2543979352b908e25ce67c4fa486229b291b38 100644 (file)
@@ -8,7 +8,7 @@ class FooSource : Source {
                return false;
        }
 
-       public override bool dispatch (SourceFunc callback) {
+       public override bool dispatch (SourceFunc? callback) {
                return false;
        }
 }
index 903089c9911a7cc1e8968489fbc5c6e4661035cd..720ba41404ba5f4f05a36af4b2ef2ec17a73a128 100644 (file)
@@ -1903,7 +1903,7 @@ namespace GLib {
 
                protected abstract bool prepare (out int timeout_);
                protected abstract bool check ();
-               protected abstract bool dispatch (SourceFunc _callback);
+               protected abstract bool dispatch (SourceFunc? _callback);
        }
 
        [CCode (has_target = false)]
@@ -1914,7 +1914,7 @@ namespace GLib {
        [CCode (has_target = false)]
        public delegate bool SourceCheckFunc (Source source);
        [CCode (has_target = false)]
-       public delegate bool SourceDispatchFunc (Source source, SourceFunc _callback);
+       public delegate bool SourceDispatchFunc (Source source, SourceFunc? _callback);
        [CCode (has_target = false)]
        public delegate void SourceFinalizeFunc (Source source);