diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-05-05 14:43:55 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-05-06 08:29:45 -1000 |
commit | 0dbbbc01d5d3c9e21715fbb1af042a3957b62fe9 (patch) | |
tree | 4c40f31bec7e1eea54f151e6fc1eb2b23feb63a7 /iw | |
parent | 92cc721e804093e3d233b627425b6d45cbc2f7e9 (diff) | |
download | anaconda-0dbbbc01d5d3c9e21715fbb1af042a3957b62fe9.tar.gz anaconda-0dbbbc01d5d3c9e21715fbb1af042a3957b62fe9.tar.xz anaconda-0dbbbc01d5d3c9e21715fbb1af042a3957b62fe9.zip |
Enter in hostname entry field advances to next screen (#494135)
Give the hostname entry field focus when we get to that screen in
anaconda. Pressing Enter in the entry box will advance to the next
screen.
Diffstat (limited to 'iw')
-rw-r--r-- | iw/network_gui.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/iw/network_gui.py b/iw/network_gui.py index 365333ac3..9f5ced738 100644 --- a/iw/network_gui.py +++ b/iw/network_gui.py @@ -2,7 +2,7 @@ # network_gui.py: Network configuration dialog # # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, Red Hat, Inc. -# 2007, 2008 +# 2007, 2008, 2009 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -42,6 +42,9 @@ class NetworkWindow(InstallWindow): self.icon = self.xml.get_widget("icon") self.hostnameEntry = self.xml.get_widget("hostnameEntry") self.hostnameEntry.set_text(self.hostname) + self.hostnameEntry.connect("activate", + lambda w: self.ics.setGrabNext(1)) + self.hostnameEntry.grab_focus() # load the icon gui.readImageFromFile("network.png", image=self.icon) |