[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Set focus on hostname entry in network UI screen (#494135)
- From: Radek Vykydal <rvykydal redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH] Set focus on hostname entry in network UI screen (#494135)
- Date: Wed, 1 Jul 2009 15:34:04 +0200
---
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 9f5ced7..ce2c879 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -44,13 +44,16 @@ class NetworkWindow(InstallWindow):
self.hostnameEntry.set_text(self.hostname)
self.hostnameEntry.connect("activate",
lambda w: self.ics.setGrabNext(1))
- self.hostnameEntry.grab_focus()
+ self.hostnameEntry.connect("map-event", self.setFocus)
# load the icon
gui.readImageFromFile("network.png", image=self.icon)
return self.align
+ def setFocus(self, area, data):
+ self.hostnameEntry.grab_focus()
+
def hostnameError(self):
self.hostnameEntry.grab_focus()
raise gui.StayOnScreen
--
1.6.0.6
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]