[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 1/2] Enter in hostname entry field advances to next screen (#494135)
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH 1/2] Enter in hostname entry field advances to next screen (#494135)
- Date: Tue, 5 May 2009 16:52:23 -1000
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.
---
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 365333a..9f5ced7 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)
--
1.6.2.2
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]