Sets a function to be called at regular intervals with the default
The function is called repeatedly until it returns
FALSE, at which point the timeout is automatically destroyed
and the function will not be called again.
This internally creates a main loop source using
g_timeout_source_new_seconds() and attaches it to the main loop context
g_source_attach(). You can do these steps manually if you need
greater control. Also see
It is safe to call this function from any thread.
Note that the first call of the timer may not be precise for timeouts
of one second. If you need finer precision and have such a timeout,
you may want to use
See [memory management of sources][mainloop-memory-management] for details
on how to handle the return value and memory management of
The interval given is in terms of monotonic time, not wall clock
The time between calls to the function, in seconds.
Function to call.
Data to pass to