1
0
Fork 0
mutter-performance-source/cogl
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
..
cogl gir: Correct usage of the closure annotation 2024-10-18 14:55:35 +02:00
cogl-pango cogl/pango: Drop mipmapping API/env variables 2024-08-22 16:45:01 +00:00
meson.build build: Split X11 server & client dependencies 2024-06-30 15:09:00 +02:00