diff options
author | Chris Lumens <clumens@redhat.com> | 2007-02-27 15:47:35 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-02-27 15:47:35 +0000 |
commit | 1a5ba3d72e9ead39dd98f433add248fb64b49a77 (patch) | |
tree | d27609d8d49ac5d94cef75754c4e27b1b6883b0c /iw | |
parent | d95056e72013c647652dc2b270f18ec9ead15b2d (diff) | |
download | anaconda-1a5ba3d72e9ead39dd98f433add248fb64b49a77.tar.gz anaconda-1a5ba3d72e9ead39dd98f433add248fb64b49a77.tar.xz anaconda-1a5ba3d72e9ead39dd98f433add248fb64b49a77.zip |
Focus the next button when enter is pressed on the second password entry
(#206568).
Diffstat (limited to 'iw')
-rw-r--r-- | iw/account_gui.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/iw/account_gui.py b/iw/account_gui.py index 081102224..0b5a9ec57 100644 --- a/iw/account_gui.py +++ b/iw/account_gui.py @@ -100,8 +100,6 @@ class AccountWindow (InstallWindow): box.pack_start(hbox, False) - self.forward = lambda widget, box=box: box.emit('focus', gtk.DIR_TAB_FORWARD) - table = gtk.Table (2, 2) table.set_size_request(365, -1) table.set_row_spacings (5) @@ -116,12 +114,12 @@ class AccountWindow (InstallWindow): self.pw = gtk.Entry (128) pass1.set_mnemonic_widget(self.pw) - self.pw.connect ("activate", self.forward) + self.pw.connect ("activate", lambda widget, box=box: box.emit("focus", gtk.DIR_TAB_FORWARD)) self.pw.connect ("map-event", self.setFocus) self.pw.set_visibility (False) self.confirm = gtk.Entry (128) pass2.set_mnemonic_widget(self.confirm) - self.confirm.connect ("activate", self.forward) + self.confirm.connect ("activate", lambda widget, box=box: self.ics.setGrabNext(1)) self.confirm.set_visibility (False) table.attach (self.pw, 1, 2, 0, 1, gtk.FILL|gtk.EXPAND, 5) table.attach (self.confirm, 1, 2, 1, 2, gtk.FILL|gtk.EXPAND, 5) |