summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-08-20 15:16:54 -0400
committerChris Lumens <clumens@redhat.com>2009-08-20 15:35:50 -0400
commit3e102bc0a7ffd3ca4eb5cff354688732f443f872 (patch)
tree3d4ee77b8c83eaa39f9fdb5bbed98b06b29f0e57 /gui.py
parent162c92b4838f9769f39b0c3a85f9c6e4a38a5913 (diff)
downloadanaconda-3e102bc0a7ffd3ca4eb5cff354688732f443f872.tar.gz
anaconda-3e102bc0a7ffd3ca4eb5cff354688732f443f872.tar.xz
anaconda-3e102bc0a7ffd3ca4eb5cff354688732f443f872.zip
Fix focus grabbing on both the password and hostname screens.
Since we have the Next button grab focus immediately before drawing then screens, we'd been relying on a complicated system of GTK signals to do the job but that only ever worked part of the time. Instead, add a focus() method to InstallWindow that screens can override and will set the focus to the correct widget.
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui.py b/gui.py
index 0a4ca3b5d..c83ff8c01 100755
--- a/gui.py
+++ b/gui.py
@@ -1291,6 +1291,8 @@ class InstallControlWindow:
self.installFrame.add(new_screen)
self.installFrame.show_all()
+ self.currentWindow.focus()
+
self.handle = gobject.idle_add(self.handleRenderCallback)
if self.reloadRcQueued: