summaryrefslogtreecommitdiffstats
path: root/iw/blpasswidget.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-07-08 04:06:59 +0000
committerJeremy Katz <katzj@redhat.com>2002-07-08 04:06:59 +0000
commitde47657c85efb846e17d6fb9ddcb3521c2ddaa9b (patch)
treef4e3cf42f5dec03ccbf3247727b9004430b29491 /iw/blpasswidget.py
parent7f9109e7854a0d3aa4af7a51bc238bf7c7138169 (diff)
downloadanaconda-de47657c85efb846e17d6fb9ddcb3521c2ddaa9b.tar.gz
anaconda-de47657c85efb846e17d6fb9ddcb3521c2ddaa9b.tar.xz
anaconda-de47657c85efb846e17d6fb9ddcb3521c2ddaa9b.zip
now you change the boot loader from a dialog on the first screen so that confusion is gone, but otherwise, basically the same as things were before. added mnemonics as they were needed
Diffstat (limited to 'iw/blpasswidget.py')
-rw-r--r--iw/blpasswidget.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/iw/blpasswidget.py b/iw/blpasswidget.py
index 8f8f2a6b6..fa64664bf 100644
--- a/iw/blpasswidget.py
+++ b/iw/blpasswidget.py
@@ -73,10 +73,10 @@ class BootloaderPasswordWidget:
# set the label on the button for the bootloader password
def setPassLabel(self):
+ self.passButton.set_label(_("Change _password"))
if not self.usePassCb.get_active() or not self.password:
- self.passButton.set_label(_("No password"))
+ self.passButton.set_sensitive(gtk.FALSE)
else:
- self.passButton.set_label(_("Change _Password"))
self.passButton.set_sensitive(gtk.TRUE)
# callback for when the password checkbox is clicked
@@ -113,15 +113,17 @@ class BootloaderPasswordWidget:
table = gtk.Table(2, 2)
table.set_row_spacings(5)
table.set_col_spacings(5)
- table.attach(gtk.Label(_("Password:")), 0, 1, 2, 3,
- gtk.FILL, 0, 10)
+ label = gui.MnemonicLabel(_("_Password:"))
+ table.attach(label, 0, 1, 2, 3, gtk.FILL, 0, 10)
pwEntry = gtk.Entry (16)
pwEntry.set_visibility (gtk.FALSE)
+ label.set_mnemonic_widget(pwEntry)
table.attach(pwEntry, 1, 2, 2, 3, gtk.FILL, 0, 10)
- table.attach(gtk.Label(_("Confirm:")), 0, 1, 3, 4,
- gtk.FILL, 0, 10)
+ label = gui.MnemonicLabel(_("Con_firm:"))
+ table.attach(label, 0, 1, 3, 4, gtk.FILL, 0, 10)
confirmEntry = gtk.Entry (16)
confirmEntry.set_visibility (gtk.FALSE)
+ label.set_mnemonic_widget(confirmEntry)
table.attach(confirmEntry, 1, 2, 3, 4, gtk.FILL, 0, 10)
dialog.vbox.pack_start(table)