Commit 4fcb66c2 authored by Al Thomas's avatar Al Thomas Committed by Rico Tzschichholz

glib-2.0: Source.dispatch() accepts a null SourceFunc

parent 17c74db5
......@@ -8,7 +8,7 @@ class FooSource : Source {
return false;
}
public override bool dispatch (SourceFunc callback) {
public override bool dispatch (SourceFunc? callback) {
return false;
}
}
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment