Use g_timeout_add_once where possible

Review Request #3729 — Created Jan. 3, 2025 and submitted — Latest diff uploaded

Information

pidgin/pidgin
default

Reviewers

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 of TRUE/FALSE.

These were mostly added in GLib 2.74, except g_timeout_add_seconds_once is from 2.78.

Ran ninja turtles.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Use g_timeout_add_once/g_idle_add_once where possible
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_REMOVE`/`G_SOURCE_CONTINUE` instead of `TRUE`/`FALSE`.
6fa9dcd490df6cdca6b02cfb41629fff5d2abd9a Elliott Sales de Andrade
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
Loading...