threadsAddTimeoutSeconds

fnuint threadsAddTimeoutSeconds(int priority, uint interval, glib.types.SourceFunc function_)

A variant of [gdk.global.threadsAddTimeoutFull] with second-granularity. See [glib.global.timeoutAddSecondsFull] for a discussion of why it is a good idea to use this function if you don’t need finer granularity.

Parameters

prioritythe priority of the timeout source. Typically this will be in the range between #G_PRIORITY_DEFAULT_IDLE and #G_PRIORITY_HIGH_IDLE.
intervalthe time between calls to the function, in seconds
function_function to call

Returns

the ID (greater than 0) of the event source.