summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-03-05 22:29:46 -0800
committerEitan Isaacson <eitan@monotonous.org>2011-03-05 22:29:46 -0800
commitb17f1b44751bb0f75dc31b44c4ea862786167fc5 (patch)
treef22fd1505cc5c847799238af8af2c1783f106af9
parent4460686b482cc5ac159f70f12f5c6b8feaccab22 (diff)
downloadcaribou-b17f1b44751bb0f75dc31b44c4ea862786167fc5.tar.gz
Use more stable contains() on state set.
-rw-r--r--caribou/ui/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/caribou/ui/main.py b/caribou/ui/main.py
index 5175bb0..2050906 100644
--- a/caribou/ui/main.py
+++ b/caribou/ui/main.py
@@ -112,7 +112,7 @@ class Caribou:
def on_focus(self, event):
acc = event.source
source_role = acc.getRole()
- if pyatspi.STATE_EDITABLE in acc.getState().getStates() or \
+ if acc.getState().contains(pyatspi.STATE_EDITABLE) or \
source_role == pyatspi.ROLE_TERMINAL:
if source_role in (pyatspi.ROLE_TEXT,
pyatspi.ROLE_PARAGRAPH,