[gtk] refactor input purpose/hint code

now password means (not visibility) or (password hint)