[caribou] Use more stable contains() on state set.
- From: Eitan Isaacson <eitani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [caribou] Use more stable contains() on state set.
- Date: Sun, 6 Mar 2011 08:23:33 +0000 (UTC)
commit b17f1b44751bb0f75dc31b44c4ea862786167fc5
Author: Eitan Isaacson <eitan monotonous org>
Date: Sat Mar 5 22:29:46 2011 -0800
Use more stable contains() on state set.
caribou/ui/main.py | 2 +-
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]