Use g_timeout_add_once where possible
Review Request #3729 — Created Jan. 3, 2025 and submitted — Latest diff uploaded
In cases where
G_SOURCE_REMOVE
is always returned and no destroy func is needed, then we can use these simplifying functions instead.Also, for callbacks, use
G_SOURCE_CONTINUE
/G_SOURCE_REMOVE
instead ofTRUE
/FALSE
.These were mostly added in GLib 2.74, except
g_timeout_add_seconds_once
is from 2.78.
Ran
ninja turtles
.