-
g_source_set_callback() and g_source_set_callback_indirect() are both safe to call zero or more times on attached sources. The change in callback will take effect the next time the source is dispatched, after the set_callback() call returns (it could block due to locking). GNOME/glib#827
bfe5906b