orca r3754 - in branches/gnome-2-22: . src/orca
- From: richb svn gnome org
- To: svn-commits-list gnome org
- Subject: orca r3754 - in branches/gnome-2-22: . src/orca
- Date: Tue, 25 Mar 2008 18:07:47 +0000 (GMT)
Author: richb
Date: Tue Mar 25 18:07:47 2008
New Revision: 3754
URL: http://svn.gnome.org/viewvc/orca?rev=3754&view=rev
Log:
* src/orca/orca_gui_prefs.py:
Fix for bug #523712 - Orca application specific preferences window
doesn't always get focus when user types Insert-Control-Space.
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/src/orca/orca_gui_prefs.py
Modified: branches/gnome-2-22/src/orca/orca_gui_prefs.py
==============================================================================
--- branches/gnome-2-22/src/orca/orca_gui_prefs.py (original)
+++ branches/gnome-2-22/src/orca/orca_gui_prefs.py Tue Mar 25 18:07:47 2008
@@ -1859,24 +1859,22 @@
# 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, fall back to
- # trying to set the current time on the Preferences window using
- # set_user_time. If that isn't found, then catch the exception and
- # fail gracefully.
+ # in the version of pygtk that the user is using, just catch the
+ # exception. Then try to set the current time on the Preferences
+ # window using set_user_time. If that isn't found, then catch the
+ # exception and fail gracefully.
#
orcaSetupWindow.realize()
try:
if settings.showMainWindow:
orcaSetupWindow.present()
- else:
- orcaSetupWindow.window.set_user_time(\
- orca_state.lastInputEventTimestamp)
except:
- try:
- orcaSetupWindow.window.set_user_time(\
- orca_state.lastInputEventTimestamp)
- except AttributeError:
- debug.printException(debug.LEVEL_FINEST)
+ pass
+ try:
+ orcaSetupWindow.window.set_user_time(\
+ orca_state.lastInputEventTimestamp)
+ except AttributeError:
+ debug.printException(debug.LEVEL_FINEST)
# We always want to re-order the text attributes page so that enabled
# items are consistently at the top.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]