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
.
libpurple/accounts.c |
---|
libpurple/prefs.c |
---|
libpurple/purpleaccount.c |
---|
libpurple/purpleconversationmember.c |
---|
libpurple/plugins/joinpart/joinpart.c |
---|
libpurple/tests/test_conversation_member.c |
---|
pidgin/pidginautoadjustment.c |
---|
pidgin/pidgindebug.c |
---|
pidgin/plugins/gestures/stroke-draw.c |
---|