- Change Summary:
-
Remove
g_idle_add_once
from title, which hasn't been used here. - Summary:
-
Use g_timeout_add_once/g_idle_add_once where possibleUse g_timeout_add_once where possible
Use g_timeout_add_once where possible
Review Request #3729 — Created Jan. 3, 2025 and submitted
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
.
Summary | ID |
---|---|
6fa9dcd490df6cdca6b02cfb41629fff5d2abd9a |