1
0
Fork 0
mutter-performance-source/clutter
Sebastian Wick bd2fa3b885 gir: Correct usage of the closure annotation
Quoting Ebassi https://www.bassi.io/articles/2023/02/20/bindable-api-2023/:

    Whenever you’re describing a function that takes a callback, you
    should always annotate the callback argument with the argument that
    contains the user data using the (closure argument) annotation

    You should not annotate the data argument with a unary (closure).

    The unary (closure) is meant to be used when annotating the callback
    type

Recently gobject-introspection became a bit more strict with this and
that generated some warnings:

    Warning: Cogl: invalid "closure" annotation: only valid on callback
    parameters

This commit fix all the closure annotations.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4058>
(cherry picked from commit 077eb80a8d)
2024-10-18 14:55:35 +02:00
..
clutter gir: Correct usage of the closure annotation 2024-10-18 14:55:35 +02:00
meson.build clutter/settings: Remove unused fontconfig-timestamp property 2024-08-22 19:09:51 +00:00