DelegateToUi must be an owned function
This commit is contained in:
parent
878bf9ac43
commit
854818133e
|
@ -270,7 +270,7 @@ namespace Dino.Plugins.WindowsNotification {
|
||||||
return AtomicUint.add(ref notification_counter, 1);
|
return AtomicUint.add(ref notification_counter, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void run_on_ui(DelegateToUi func) {
|
private void run_on_ui(owned DelegateToUi func) {
|
||||||
Idle.add(() => { func(); return false; }, GLib.Priority.HIGH);
|
Idle.add(() => { func(); return false; }, GLib.Priority.HIGH);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue