[orca/orca-xdesktop] Don't cut the presentation of a name-change on a active-descendant change
- From: Alejandro PiÃeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca/orca-xdesktop] Don't cut the presentation of a name-change on a active-descendant change
- Date: Tue, 30 Aug 2011 16:38:10 +0000 (UTC)
commit b2bbcd4debecb61eecb4b4727e481499598b9734
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date: Tue Aug 30 18:30:30 2011 +0200
Don't cut the presentation of a name-change on a active-descendant change
src/orca/scripts/default.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index e4592b2..a31c0e3 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -4639,6 +4639,18 @@ class Script(script.Script):
if not event.any_data:
return True
+ # In an object which manages its descendants, the
+ # 'descendants' may really be a single object which changes
+ # its name. If the name-change occurs followed by the active
+ # descendant changing (to the same object) we won't present
+ # the locusOfFocus because it hasn't changed. Thus we need to
+ # be sure not to cut of the presentation of the name-change
+ # event.
+
+ if orca_state.locusOfFocus == event.any_data and \
+ event.any_data.name == self.pointOfReference.get('oldName'):
+ return False
+
if event.source == orca_state.locusOfFocus == event.any_data.parent:
return False
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]