After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 692280 - Gdk.threads_add_idle() should only take 2 parameters, but takes 3.
Gdk.threads_add_idle() should only take 2 parameters, but takes 3.
Status: RESOLVED NOTABUG
Product: pygobject
Classification: Bindings
Component: introspection
unspecified
Other Linux
: Normal critical
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-22 11:44 UTC by Pouria Mellati
Modified: 2013-01-31 06:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pouria Mellati 2013-01-22 11:44:21 UTC
Based on the documentation in

http://developer.gnome.org/gdk/2.22/gdk-Threads.html#gdk-threads-add-idle

function gdk_threads_add_idle() should take only two parameters, namely a function to execute later, and some data to be passed to the first argument (when the first arg is called).

However, having imported Gdk form gi.repository, calling Gdk.threads_add_idle() with the aforementioned args, returns with an error, stating that actually three parameters are needed.


For more info, see this question:

http://stackoverflow.com/questions/14392350/what-are-the-three-arguments-to-gdk-threads-add-idle
Comment 1 Martin Pitt 2013-01-31 06:16:55 UTC
Sorry, this is indeed a bit confusing. gdk_threads_add_idle() itself is not introspectable as this function does not have a GDestroyNotify. For that reason, Gdk got a new methods gdk_threads_add_idle_full() which is renamed to threads_add_idle() in introspected languages. So you need to pass (priority, function, data).