Moved GTK calls on main thread.