[pyatspi2] Add a missing 'unref' function to the StateSet api. This function



commit ed48660fff0bedb21f804a4cf43439d4a7fd592d
Author: Mark Doffman <mark doffman codethink co uk>
Date:   Fri Dec 18 07:34:49 2009 -0800

    Add a missing 'unref' function to the StateSet api. This function
    does nothing and is needed for compatibility with the CORBA class.
    
    Up the re-entrancy limit to 100 to make sure the limit is not hit
    during testing.

 pyatspi/busutils/proxy.py |    2 +-
 pyatspi/state.py          |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pyatspi/busutils/proxy.py b/pyatspi/busutils/proxy.py
index a3d2e61..11143f3 100644
--- a/pyatspi/busutils/proxy.py
+++ b/pyatspi/busutils/proxy.py
@@ -18,7 +18,7 @@ import gobject
 import Queue
 
 class _MainLoopPool (Queue.Queue):
-	_RE_ENTRANCY_LIMIT = 30
+	_RE_ENTRANCY_LIMIT = 100
 	
 	def __init__ (self):
 		Queue.Queue.__init__(self)
diff --git a/pyatspi/state.py b/pyatspi/state.py
index 7703a4a..e6b4ed4 100644
--- a/pyatspi/state.py
+++ b/pyatspi/state.py
@@ -269,4 +269,7 @@ class StateSet(object):
                         if (self.contains(i)):
                                 upper |= (1 << (i - 32))
                 return [lower, upper]
+
+	def unref(self):
+		pass
 #END----------------------------------------------------------------------------



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