gtk3: use correct condition