[orca] Revert "Interim fix for bug 672242"
- From: Alejandro PiÃeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Revert "Interim fix for bug 672242"
- Date: Fri, 1 Jun 2012 14:13:31 +0000 (UTC)
commit 4f159ba444fb2209980c71ed405cf99c85c6dd29
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date: Fri Jun 1 13:49:55 2012 +0200
Revert "Interim fix for bug 672242"
As bug 672242 was fixed on GNOME Shell, we don't need anymore
a Orca interim fix.
This reverts commit 2604e3a2c214e828b453cbec3e5f3ad5050c9846.
src/orca/scripts/toolkits/CALLY/script.py | 37 +++-------------------------
1 files changed, 4 insertions(+), 33 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/CALLY/script.py b/src/orca/scripts/toolkits/CALLY/script.py
index 49fd448..0992d40 100644
--- a/src/orca/scripts/toolkits/CALLY/script.py
+++ b/src/orca/scripts/toolkits/CALLY/script.py
@@ -1,6 +1,6 @@
# Orca
#
-# Copyright (C) 2010-2012 Igalia, S.L.
+# Copyright (C) 2010 Igalia, S.L.
#
# Author: Alejandro Pinheiro Iglesias <apinheiro igalia com>
#
@@ -22,16 +22,18 @@
__id__ = "$Id$"
__version__ = "$Revision$"
__date__ = "$Date$"
-__copyright__ = "Copyright (c) 2010-2012 Igalia, S.L."
+__copyright__ = "Copyright (c) 2010 Igalia, S.L."
__license__ = "LGPL"
import pyatspi
+
from gi.repository import Gdk
import orca.orca as orca
import orca.scripts.default as default
import orca.debug as debug
+
# Set with non printable unicode categories. Full table:
# http://www.fileformat.info/info/unicode/category/index.htm
#
@@ -248,34 +250,3 @@ class Script(default.Script):
else: #in any other case, we use the default behaviour
default.Script.onStateChanged(self, event)
-
- def locusOfFocusChanged(self, event, oldLocusOfFocus, newLocusOfFocus):
- """Called when the visual object with focus changes.
-
- Arguments:
- - event: if not None, the Event that caused the change
- - oldLocusOfFocus: Accessible that is the old locus of focus
- - newLocusOfFocus: Accessible that is the new locus of focus
- """
-
- # TODO - JD/API: We are overriding the default script's method here
- # to handle one specific case: In the gnome-shell overview, for
- # documents and places, the objects which claim focus are not the
- # objects of ROLE_PUSH_BUTTON, but rather an immediate child of those
- # objects which happens to be a nameless panel. When this issue is
- # fixed in gnome-shell, this method should be removed. BGO#672242.
-
- if newLocusOfFocus and not newLocusOfFocus.name:
- try:
- role = newLocusOfFocus.getRole()
- parent = newLocusOfFocus.parent
- parentRole = parent.getRole()
- except:
- pass
- else:
- if role == pyatspi.ROLE_PANEL \
- and parentRole == pyatspi.ROLE_PUSH_BUTTON:
- newLocusOfFocus = parent
-
- default.Script.locusOfFocusChanged(
- self, event, oldLocusOfFocus, newLocusOfFocus)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]