[orca] Make the Eclipse script a subclass of the GAIL script
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Make the Eclipse script a subclass of the GAIL script
- Date: Fri, 15 Nov 2013 20:18:57 +0000 (UTC)
commit fe20ebb751e579614bcce7ed0f6e62049c062686
Author: José Vilmar Estácio de Souza <vilmar informal com br>
Date: Fri Nov 15 18:02:49 2013 -0200
Make the Eclipse script a subclass of the GAIL script
src/orca/scripts/apps/Eclipse/script.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/orca/scripts/apps/Eclipse/script.py b/src/orca/scripts/apps/Eclipse/script.py
index 7148c57..0438cf1 100644
--- a/src/orca/scripts/apps/Eclipse/script.py
+++ b/src/orca/scripts/apps/Eclipse/script.py
@@ -25,7 +25,7 @@ __date__ = "$Date$"
__copyright__ = "Copyright (c) 2010 Informal Informatica LTDA."
__license__ = "LGPL"
-import orca.scripts.default as default
+import orca.scripts.toolkits.GAIL as GAIL
import pyatspi
from .script_utilities import Utilities
@@ -34,11 +34,11 @@ from .script_utilities import Utilities
# The Eclipse script class. #
# #
########################################################################
-class Script(default.Script):
+class Script(GAIL.Script):
def __init__(self, app):
"""Creates a new script for the given application."""
- default.Script.__init__(self, app)
+ GAIL.Script.__init__(self, app)
self.movementKeys = ["Up", "Down", "Left", "Right", "Page_Up",
"Page_Down", "Home", "End"]
@@ -52,7 +52,7 @@ class Script(default.Script):
# Let the default script's normal behavior do its thing
#
- default.Script._presentTextAtNewCaretPosition(self, event, otherObj)
+ GAIL.Script._presentTextAtNewCaretPosition(self, event, otherObj)
# check if the obj was spoken in the default script
lastKey, mods = self.utilities.lastKeyAndModifiers()
@@ -102,7 +102,7 @@ class Script(default.Script):
# Let the default script's normal behavior do its thing
#
- default.Script.onTextInserted(self, event)
+ GAIL.Script.onTextInserted(self, event)
self._saveLastTextPosition(event.source)
def onTextDeleted(self, event):
@@ -116,7 +116,7 @@ class Script(default.Script):
# Let the default script's normal behavior do its thing
#
- default.Script.onTextDeleted(self, event)
+ GAIL.Script.onTextDeleted(self, event)
self._saveLastTextPosition(event.source)
def _saveLastTextPosition(self, obj):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]