[pyatspi2] Fix makeSyncType to generate a proper enum



commit 00d60481fae4a53a3872632cd96bd2d417c8e234
Author: Mike Gorse <mgorse novell com>
Date:   Tue May 24 16:23:16 2011 -0500

    Fix makeSyncType to generate a proper enum

 pyatspi/registry.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pyatspi/registry.py b/pyatspi/registry.py
index 89a36bd..357e801 100644
--- a/pyatspi/registry.py
+++ b/pyatspi/registry.py
@@ -252,7 +252,7 @@ class Registry(object):
         _KEY_RELEASED_EVENT=2
 
         def makeSyncType(self, synchronous, preemptive, global_):
-                result = 0
+                result = Atspi.KeyListenerSyncType.NOSYNC
                 if synchronous:
                         result |= Atspi.KeyListenerSyncType.SYNCHRONOUS
                 if preemptive:



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