Replace g_idle_add/g_timeout_add with their gdk_threads counterparts