summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-19 23:41:37 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-19 23:41:37 +0000
commite8304d8b708bf7a9abf5d9fe219a151c817e1525 (patch)
tree35b43c5e42ba12546406d308894ca6b0a82cad78 /iw
parentd8319e893d13756491e08d989a1907b141ce140e (diff)
downloadanaconda-e8304d8b708bf7a9abf5d9fe219a151c817e1525.tar.gz
anaconda-e8304d8b708bf7a9abf5d9fe219a151c817e1525.tar.xz
anaconda-e8304d8b708bf7a9abf5d9fe219a151c817e1525.zip
add mnemonics and get button order correct for adding a user
Diffstat (limited to 'iw')
-rw-r--r--iw/account_gui.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/iw/account_gui.py b/iw/account_gui.py
index 7fa05f38c..a3101b1aa 100644
--- a/iw/account_gui.py
+++ b/iw/account_gui.py
@@ -177,7 +177,7 @@ class AccountWindow (InstallWindow):
self.win.destroy()
def close (self, widget, button, flag):
- if button == 0:
+ if button == 1:
if flag == "addUser":
self.addUser_cb()
elif flag == "editUser":
@@ -189,8 +189,8 @@ class AccountWindow (InstallWindow):
def addUser (self, widget):
title = _("Add a New User")
self.win = self.userWindow(title, 0)
- self.win.add_button('gtk-ok', 0)
- self.win.add_button('gtk-cancel', 1)
+ self.win.add_button('gtk-cancel', 0)
+ self.win.add_button('gtk-ok', 1)
self.win.connect("response", self.close, "addUser")
self.win.show_all()
self.win.run()
@@ -407,12 +407,12 @@ class AccountWindow (InstallWindow):
sw.add (self.userlist)
- self.add = gtk.Button (_("Add"))
+ self.add = gtk.Button (_("_Add"))
self.add.connect("clicked", self.addUser)
- self.edit = gtk.Button (_("Edit"))
+ self.edit = gtk.Button (_("_Edit"))
self.edit.connect("clicked", self.editUser)
self.edit.set_sensitive(gtk.FALSE)
- self.delete = gtk.Button (_("Delete"))
+ self.delete = gtk.Button (_("_Delete"))
self.delete.connect("clicked", self.deleteUser)
self.delete.set_sensitive(gtk.FALSE)