[orca] Add debugging line for nameless mystery menu
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add debugging line for nameless mystery menu
- Date: Wed, 12 Oct 2016 18:01:55 +0000 (UTC)
commit d28e4a5a6ea08f3363194ab0a4fef73e35cb2f3e
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Oct 12 14:01:11 2016 -0400
Add debugging line for nameless mystery menu
src/orca/scripts/toolkits/gtk/script.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/gtk/script.py b/src/orca/scripts/toolkits/gtk/script.py
index a6507ca..f087c04 100644
--- a/src/orca/scripts/toolkits/gtk/script.py
+++ b/src/orca/scripts/toolkits/gtk/script.py
@@ -27,6 +27,7 @@ __license__ = "LGPL"
import pyatspi
+import orca.debug as debug
import orca.orca as orca
import orca.orca_state as orca_state
import orca.scripts.default as default
@@ -134,6 +135,10 @@ class Script(default.Script):
orca.setLocusOfFocus(event, event.source)
return
+ if role == pyatspi.ROLE_MENU and not event.source.name:
+ msg = "GTK: Nameless menu with parent %s" % event.source.parent
+ debug.println(debug.LEVEL_INFO, msg, True)
+
# https://bugzilla.gnome.org/show_bug.cgi?id=720989
if role == pyatspi.ROLE_MENU == event.source.parent.getRole():
orca.setLocusOfFocus(event, event.source)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]