diff options
author | jakub <jakub> | 1999-10-01 15:12:59 +0000 |
---|---|---|
committer | jakub <jakub> | 1999-10-01 15:12:59 +0000 |
commit | 1c588375180df17b5b3069004b811ab016027d20 (patch) | |
tree | b246cd991bc6915ef800335e0734aa11a4522eed /iw | |
parent | 6515be6c85964f3d6235aa2ab77bee144d2ef544 (diff) | |
download | anaconda-1c588375180df17b5b3069004b811ab016027d20.tar.gz anaconda-1c588375180df17b5b3069004b811ab016027d20.tar.xz anaconda-1c588375180df17b5b3069004b811ab016027d20.zip |
Add pixmap to silo dialog. An attempt to make auto selection for Sun
monitor work. Matt, how does moveto work? It does not scroll the listbox
to the entry I want to...
Diffstat (limited to 'iw')
-rw-r--r-- | iw/silo.py | 15 | ||||
-rw-r--r-- | iw/xconfig.py | 3 |
2 files changed, 16 insertions, 2 deletions
diff --git a/iw/silo.py b/iw/silo.py index 6a4facc8c..0c64a193d 100644 --- a/iw/silo.py +++ b/iw/silo.py @@ -201,6 +201,7 @@ class SiloWindow (InstallWindow): box = GtkVBox (FALSE, 0) + topBox = GtkHBox (FALSE, 2) optionBox = GtkVBox (FALSE, 5) optionBox.set_border_width (5) self.bootdisk = GtkCheckButton (_("Create boot disk")) @@ -217,8 +218,18 @@ class SiloWindow (InstallWindow): self.silo.set_active (FALSE) self.silo.connect ("toggled", self.toggled) optionBox.pack_start (self.silo, FALSE) - - box.pack_start (optionBox, FALSE) + topBox.pack_start (optionBox) + + im = self.ics.readPixmap ("silo.png") + if im: + im.render () + pix = im.make_pixmap () + a = GtkAlignment () + a.add (pix) + a.set (1.0, 0.0, 0.0, 0.0) + topBox.pack_start (a, FALSE) + + box.pack_start (topBox, FALSE) box.pack_start (GtkHSeparator (), FALSE) box.pack_start (self.radioBox, FALSE) diff --git a/iw/xconfig.py b/iw/xconfig.py index d618c3197..36eecc11e 100644 --- a/iw/xconfig.py +++ b/iw/xconfig.py @@ -205,16 +205,19 @@ class XConfigWindow (InstallWindow): self.monlist = GtkCList () self.monlist.set_selection_mode (SELECTION_BROWSE) arch = iutil.getArch() + select = 0 for monitor in keys: index = self.monlist.append ((monitor,)) self.monlist.set_row_data (index, (monitor, monitors[monitor])) if arch == 'sparc' and monitor[:3] == 'Sun': self.monlist.select_row (index, 0) + select = index sw = GtkScrolledWindow () sw.add (self.monlist) sw.set_policy (POLICY_NEVER, POLICY_AUTOMATIC) self.autoBox.pack_start (sw, TRUE, TRUE) + self.monlist.moveto (select, 0, 0.5, 0) if not self.sunServer: test = GtkAlignment () |