Fix depreciation warning about idle_add for GTK3 backend.