Replace gtk_idle functions with g_idle equivalents