Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gir: Correct usage of the closure annotation #704

Merged
merged 1 commit into from
Nov 3, 2024

Commits on Oct 6, 2024

  1. gir: Correct usage of the closure annotation

    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
    
    Ref:
    https://gitlab.gnome.org/GNOME/mutter/-/commit/077eb80a8d9bb2968c2bfac959c2f2ca966ca7e7
    Fantu authored and rcalixte committed Oct 6, 2024
    Configuration menu
    Copy the full SHA
    8cb1f53 View commit details
    Browse the repository at this point in the history