Use g_timeout_add_once where possible

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

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.

Summary ID
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
QuLogic
grim
  1. Awesome work, thanks!!

  2. 
      
grim
Review request changed
Status:
Completed