[pyatspi2/gi: 3/3] State and action fixes; work in progress
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2/gi: 3/3] State and action fixes; work in progress
- Date: Wed, 24 Nov 2010 19:41:20 +0000 (UTC)
commit 99fb696e3eac259acafcf22b82b5116ea289e888
Author: Mike Gorse <mgorse novell com>
Date: Wed Nov 24 14:41:04 2010 -0500
State and action fixes; work in progress
pyatspi/Makefile.am | 1 -
pyatspi/state.py | 8 +++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/Makefile.am b/pyatspi/Makefile.am
index b303d68..128e4ab 100644
--- a/pyatspi/Makefile.am
+++ b/pyatspi/Makefile.am
@@ -8,7 +8,6 @@ endif
pyatspi_PYTHON = \
Accessibility.py \
accessible.py \
- action.py \
appevent.py \
application.py \
cache.py \
diff --git a/pyatspi/state.py b/pyatspi/state.py
index 73e580e..f5800f0 100644
--- a/pyatspi/state.py
+++ b/pyatspi/state.py
@@ -20,6 +20,7 @@
#authors: Peter Parente, Mark Doffman
from gi.repository import Atspi
+from gi.repository import GObject
from enum import Enum as _Enum
#------------------------------------------------------------------------------
@@ -157,6 +158,11 @@ def _marshal_state_set(bitfield):
#------------------------------------------------------------------------------
+def stateset_init(self, *states):
+ GObject.GObject.__init__(self)
+ map(self.add, states)
+
StateSet = Atspi.StateSet
+StateSet.getStates = StateSet.get_states
StateSet.isEmpty = StateSet.is_empty
-StateSet.__new__ = StateSet.new
+StateSet.__init__ = stateset_init
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]