* pyatspi/accessible.py
* pyatspi/accessiblecache.py
Modify the cache adding a stateset.
Modify the getState function to use the
cached values.
@return : a StateSet encapsulating the currently true states
of the object.
"""
- func = self.get_dbus_method("getState", dbus_interface=ATSPI_ACCESSIBLE)
- bitfield = func()
- return _marshal_state_set(bitfield)
+ return _marshal_state_set(self.cached_data.state)
def isEqual(self, accessible):
"""
'role',
'name',
'description',
+ 'state',
]
def __init__(self, data):
self.interfaces,
self.name,
self.role,
- self.description) = data
+ self.description,
+ self.state) = data
#------------------------------------------------------------------------------