[orca] Fix for bug #637551 - Pressing help in the Orca Preferences dialog should put you in the Preferences
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix for bug #637551 - Pressing help in the Orca Preferences dialog should put you in the Preferences
- Date: Sun, 19 Dec 2010 10:50:09 +0000 (UTC)
commit ab0d6e4bba417640d1d4ac614b2a2f688e317ca7
Author: Joanmarie Diggs <joanmarie diggs gmail com>
Date: Sun Dec 19 05:49:07 2010 -0500
Fix for bug #637551 - Pressing help in the Orca Preferences dialog should put you in the Preferences help
src/orca/orca.py | 7 +++++--
src/orca/orca_gui_prefs.py | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index 02459c6..6e3b553 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -1301,13 +1301,16 @@ def _showPreferencesConsole(script=None, inputEvent=None):
return True
-def helpForOrca(script=None, inputEvent=None):
+def helpForOrca(script=None, inputEvent=None, page=""):
"""Show Orca Help window (part of the GNOME Access Guide).
Returns True to indicate the input event has been consumed.
"""
+ uri = "ghelp:orca"
+ if page:
+ uri += "?%s" % page
gtk.show_uri(gtk.gdk.screen_get_default(),
- "ghelp:orca",
+ uri,
gtk.get_current_event_time())
return True
diff --git a/src/orca/orca_gui_prefs.py b/src/orca/orca_gui_prefs.py
index 6dcc9cc..1ce66a0 100644
--- a/src/orca/orca_gui_prefs.py
+++ b/src/orca/orca_gui_prefs.py
@@ -4215,7 +4215,7 @@ class OrcaSetupGUI(orca_gtkbuilder.GtkBuilderWrapper):
- widget: the component that generated the signal.
"""
- orca.helpForOrca()
+ orca.helpForOrca(page="preferences")
def restoreSettings(self):
"""Restore the settings we saved away when opening the preferences
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]