]> git.ipfire.org Git - thirdparty/vala.git/commit
glib-2.0: Fix *.add_once () callbacks
authorSergey Bugaev <bugaevc@gmail.com>
Mon, 26 May 2025 06:55:32 +0000 (09:55 +0300)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 11 Jun 2025 10:36:50 +0000 (12:36 +0200)
commit0e39d2dae386e40bf2d7be8d299b3560d8fdb50e
tree1152cf673530a3a5ca7d7c46359cb74eb90f4001
parentec79d7049548b1fc667815599f45ab07bef8b47e
glib-2.0: Fix *.add_once () callbacks

These callbacks have scope=async, not scope=call. In Vala, the latter is
what passing an unowned delegate implies, while scope=async is achieved
with an owned delegate marked [CCode (scope = "async")].

Fixes https://gitlab.gnome.org/GNOME/vala/issues/1556
vapi/glib-2.0.vapi