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

GLib.timeout_add #164

Open
buhtz opened this issue May 4, 2018 · 2 comments
Open

GLib.timeout_add #164

buhtz opened this issue May 4, 2018 · 2 comments
Labels

Comments

@buhtz
Copy link

buhtz commented May 4, 2018

Please see https://lazka.github.io/pgi-docs/#GLib-2.0/functions.html#GLib.timeout_add where the signature is

GLib.timeout_add(priority, interval, function, *data)

But this is wrong. help() tells me

timeout_add(interval, function, *user_data, **kwargs)

How is the API Ref generated? Isn't it generated from the sources? So why is there a difference between the API Ref and help()?

@lazka lazka added the bug label May 5, 2018
@fosero
Copy link

fosero commented Aug 10, 2018

This is because it is overriden, but gets the description from the regular docs.

@yursan9
Copy link

yursan9 commented Sep 21, 2019

This also happens to GLib.idle_add(). The correct signature is GLib.idle_add(function, *user_data, **kwargs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants