summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorbfox <bfox>2002-09-20 20:27:04 +0000
committerbfox <bfox>2002-09-20 20:27:04 +0000
commit04244dbbb3cf5fc85101ea4309824ea91c1914d0 (patch)
tree1c20dced923e298217a2c80be3aafbeeddec772d /iw
parent62a6ab690998e8946a97e3cd7d6d8dfd1c09b3dd (diff)
downloadanaconda-04244dbbb3cf5fc85101ea4309824ea91c1914d0.tar.gz
anaconda-04244dbbb3cf5fc85101ea4309824ea91c1914d0.tar.xz
anaconda-04244dbbb3cf5fc85101ea4309824ea91c1914d0.zip
clean up some alignments in the root password part of the screen
Diffstat (limited to 'iw')
-rw-r--r--iw/account_gui.py19
1 files changed, 8 insertions, 11 deletions
diff --git a/iw/account_gui.py b/iw/account_gui.py
index ac3fd03f9..96276a154 100644
--- a/iw/account_gui.py
+++ b/iw/account_gui.py
@@ -334,29 +334,26 @@ class AccountWindow (InstallWindow):
self.users = 0
box = gtk.VBox ()
+ box.set_border_width(5)
hbox = gtk.HBox()
pix = self.ics.readPixmap ("root-password.png")
if pix:
- a = gtk.Alignment ()
- a.add (pix)
- a.set (0.0, 0.0, 0.0, 0.0)
- hbox.pack_start (a, gtk.FALSE)
+ hbox.pack_start (pix, gtk.FALSE)
label = gtk.Label (_("Enter the root (administrator) password "
"for the system."))
label.set_line_wrap(gtk.TRUE)
label.set_size_request(350, -1)
+ label.set_alignment(0.0, 0.5)
+ hbox.pack_start(label, gtk.FALSE)
- a = gtk.Alignment ()
- a.add (label)
- a.set (0.0, 0.5, 0.0, 0.0)
- hbox.pack_start(a, gtk.FALSE, 20)
box.pack_start(hbox, gtk.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)
table.set_col_spacings (5)
@@ -381,7 +378,9 @@ class AccountWindow (InstallWindow):
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)
- box.pack_start (table, gtk.FALSE)
+ hbox = gtk.HBox()
+ hbox.pack_start(table, gtk.FALSE)
+ box.pack_start (hbox, gtk.FALSE)
# root password statusbar
self.rootStatus = gtk.Label ("")
@@ -467,6 +466,4 @@ class AccountWindow (InstallWindow):
# XXX hack
self.users = self.users + 1
- box.set_border_width (5)
-
return box