general: Use g_clear_handle_id to remove GSources
Using g_clear_handle_id()
in combination with g_source_remove()
can
save a lot of boiler plate code.
This removes about 110 lines of code for free.
Edited by Matthijs Velsink
Using g_clear_handle_id()
in combination with g_source_remove()
can
save a lot of boiler plate code.
This removes about 110 lines of code for free.