[gtk] fix wrong check condition