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

[rhel6-branch] Focus the window after changing language (#628426)



We need to call window.present() after changing
the install language, so the window is focused in
the window manager, and the shortcuts work without
needing to click inside the window.
---
 gui.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/gui.py b/gui.py
index 992f21f..aef05fa 100755
--- a/gui.py
+++ b/gui.py
@@ -1306,12 +1306,16 @@ class InstallControlWindow:
 
         self.window.destroy()
         self.window = self.mainxml.get_widget("mainWindow")
-        
+
         self.createWidgets()
         self.connectSignals()
         self.setScreen()
         self.window.show()
 
+        # calling present() will focus the window in the window manager so
+        # the mnemonics work without additional clicking
+        self.window.present()
+
     def setLtR(self):
         ltrrtl = gettext.dgettext("gtk20", "default:LTR")
         if ltrrtl == "default:RTL":
-- 
1.7.3.2


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