Changes to enable new introspection format.
[platform/core/uifw/at-spi2-atk.git] / pyatspi / constants.py
index 6643b06..1db6408 100644 (file)
@@ -52,8 +52,8 @@ for obj in acc_dict.values():
       utils.getInterfaceName(obj) not in not_interfaces):
     # this is an interface class
     ALL_INTERFACES.append(obj)
-# get rid of our temporary list
-del not_interfaces
+# get rid of our temporary vars
+del not_interfaces, obj, kind
 
 # constants used in the Component interface to get screen coordinates
 DESKTOP_COORDS = 0
@@ -79,6 +79,12 @@ MOUSE_REL = 'rel'
 CACHE_INTERFACES = 0
 CACHE_PROPERTIES = 1
 
+# events that clear cached properties
+CACHE_EVENTS = ['object:property-change:accessible-name',
+                'object:property-change:accessible-description',
+                'object:property-change:accessible-role',
+                'object:property-change:accessible-parent']
+
 # dictionary used to correct the bug of not being able to register for all the
 # subevents given only an AT-SPI event class (i.e. first part of the event
 # name) keys are event names having subevents and values are the subevents