Package: gdk

Function gdk-threads-add-idle

Lambda List

gdk-threads-add-idle (func &key priority)

Arguments

func -- a g-source-func callback function to call
priority -- an integer with the priority of the idle source, typically this will be in the range between +g-priority-default-idle+ and +g-priority-high-idle+

Return Value

An unsigned integer ID, greater than 0, of the event source.

Details

Adds a function to be called whenever there are no higher priority events pending. If the function returns false it is automatically removed from the list of event sources and will not be called again. The default for priority is +g-priority-default-idle+.

This variant of the g-idle-add function calls the function with the GDK lock held. It can be thought of a MT-safe version for GTK widgets.
 

See also

2021-12-13