pgi-docgen icon indicating copy to clipboard operation
pgi-docgen copied to clipboard

GLib.timeout_add

Open buhtz opened this issue 6 years ago • 2 comments

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()?

buhtz avatar May 04 '18 21:05 buhtz

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

fosero avatar Aug 10 '18 12:08 fosero

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

yursan9 avatar Sep 21 '19 10:09 yursan9