orca r4666 - in branches/gnome-2-26: . src/orca



Author: wwalker
Date: Tue Apr  7 15:50:52 2009
New Revision: 4666
URL: http://svn.gnome.org/viewvc/orca?rev=4666&view=rev

Log:
Fix for bug #576037 - Bind F1 key to help page


Modified:
   branches/gnome-2-26/ChangeLog
   branches/gnome-2-26/src/orca/orca_gui_main.py
   branches/gnome-2-26/src/orca/orca_gui_prefs.py

Modified: branches/gnome-2-26/src/orca/orca_gui_main.py
==============================================================================
--- branches/gnome-2-26/src/orca/orca_gui_main.py	(original)
+++ branches/gnome-2-26/src/orca/orca_gui_main.py	Tue Apr  7 15:50:52 2009
@@ -48,6 +48,17 @@
 
         mainWindow = self.get_widget("mainWindow")
         self.set_orca_icon(mainWindow)
+
+        accelGroup = gtk.AccelGroup()
+        mainWindow.add_accel_group(accelGroup)
+        helpButton = self.get_widget("helpButton")
+        (keyVal, modifierMask) = gtk.accelerator_parse("F1")
+        helpButton.add_accelerator("clicked",
+                                   accelGroup,
+                                   keyVal,
+                                   modifierMask,
+                                   0)
+
         mainWindow.show()
 
     def hideGUI(self):

Modified: branches/gnome-2-26/src/orca/orca_gui_prefs.py
==============================================================================
--- branches/gnome-2-26/src/orca/orca_gui_prefs.py	(original)
+++ branches/gnome-2-26/src/orca/orca_gui_prefs.py	Tue Apr  7 15:50:52 2009
@@ -1945,6 +1945,16 @@
         orcaSetupWindow = self.get_widget("orcaSetupWindow")
         self.set_orca_icon(orcaSetupWindow)
 
+        accelGroup = gtk.AccelGroup()
+        orcaSetupWindow.add_accel_group(accelGroup)
+        helpButton = self.get_widget("helpButton")
+        (keyVal, modifierMask) = gtk.accelerator_parse("F1")
+        helpButton.add_accelerator("clicked",
+                                   accelGroup,
+                                   keyVal,
+                                   modifierMask,
+                                   0)
+
         # We want the Orca preferences window to have focus when it is
         # shown. First try using the present() call. If this isn't present
         # in the version of pygtk that the user is using, just catch the



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