GNOME Bugzilla – Bug 692280
Gdk.threads_add_idle() should only take 2 parameters, but takes 3.
Last modified: 2013-01-31 06:16:55 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
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).