From: Alistair Thomas Date: Sat, 16 Jun 2018 18:58:16 +0000 (+0100) Subject: glib-2.0: Source.dispatch() accepts a null SourceFunc X-Git-Tag: 0.41.90~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fcb66c21e9568e53799e81d59024c3981ff65ee;p=thirdparty%2Fvala.git glib-2.0: Source.dispatch() accepts a null SourceFunc --- diff --git a/tests/objects/gsource.vala b/tests/objects/gsource.vala index 8ee450f1f..cb2543979 100644 --- a/tests/objects/gsource.vala +++ b/tests/objects/gsource.vala @@ -8,7 +8,7 @@ class FooSource : Source { return false; } - public override bool dispatch (SourceFunc callback) { + public override bool dispatch (SourceFunc? callback) { return false; } } diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 903089c99..720ba4140 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -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);