[pyatspi2] makeSyncType() doesn't should return a bitmask not an enum, the result will be the bitwise or of the



commit 4be4202b09bd3ec7dbc2095a68483d006e1bfa49
Author: Trevor Saunders <trev saunders gmail com>
Date:   Sat Feb 26 19:36:49 2011 -0500

    makeSyncType() doesn't should return a bitmask not an enum, the result will be the bitwise or of the elements of the enum, but doesn't need to be an element of the enum itself.

 pyatspi/registry.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pyatspi/registry.py b/pyatspi/registry.py
index f00ecb6..89a36bd 100644
--- a/pyatspi/registry.py
+++ b/pyatspi/registry.py
@@ -259,7 +259,7 @@ class Registry(object):
                         result |= Atspi.KeyListenerSyncType.CANCONSUME
                 if global_:
                         result |= Atspi.KeyListenerSyncType.ALL_WINDOWS
-                return Atspi.KeyListenerSyncType(result)
+                return result
 
         def makeKind(self, kind):
                 result = 0



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]