[orca] Fix for bug #659023 - Orca does not speak the desktop icon names in fallback mode if tutorial messag



commit e78364afd076cd7cc871426de47f44dc79323d85
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Nov 14 11:27:57 2011 -0500

    Fix for bug #659023 - Orca does not speak the desktop icon names in fallback mode if tutorial messages are enabled

 src/orca/tutorialgenerator.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/tutorialgenerator.py b/src/orca/tutorialgenerator.py
index 599c31a..1a63b64 100644
--- a/src/orca/tutorialgenerator.py
+++ b/src/orca/tutorialgenerator.py
@@ -283,7 +283,10 @@ class TutorialGenerator:
         desktopMsg = _("To get to the system menus press the alt+f1 key.")
 
         scriptName = self._script.name
-        sibling = obj.parent.getChildAtIndex(0)
+        try:
+            sibling = obj.parent.getChildAtIndex(0)
+        except AttributeError:
+            sibling = None
         if 'nautilus' in scriptName and obj == sibling:
             utterances.append(desktopMsg)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]