summaryrefslogtreecommitdiffstats
path: root/iw/installpath_gui.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-11-20 16:22:18 +0000
committerErik Troan <ewt@redhat.com>2000-11-20 16:22:18 +0000
commit8bc1d2087a7953e2b9fdbf9554c39926fb78059f (patch)
tree3632381879e81894bf13f61a28160fef5345506d /iw/installpath_gui.py
parentbf5981a5ff55a10b8eb80174f467d493572f208a (diff)
downloadanaconda-8bc1d2087a7953e2b9fdbf9554c39926fb78059f.tar.gz
anaconda-8bc1d2087a7953e2b9fdbf9554c39926fb78059f.tar.xz
anaconda-8bc1d2087a7953e2b9fdbf9554c39926fb78059f.zip
let install classes set themselves as default
Diffstat (limited to 'iw/installpath_gui.py')
-rw-r--r--iw/installpath_gui.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/iw/installpath_gui.py b/iw/installpath_gui.py
index 10faa78c7..035e7e693 100644
--- a/iw/installpath_gui.py
+++ b/iw/installpath_gui.py
@@ -199,6 +199,8 @@ class InstallPathWindow (InstallWindow):
self.installClasses = []
self.orig = self.todo.getClass()
+ haveSetDefault = 0
+ defaultGroup = None
for (name, object, pixmap) in self.installTypes:
group = self.pixRadioButton (group, _(name), pixmap)
@@ -206,6 +208,12 @@ class InstallPathWindow (InstallWindow):
self.installClasses.append ((group, object))
if isinstance(self.orig, object):
group.set_active (1)
+ haveSetDefault = 1
+ if object.default:
+ defaultGroup = group
+
+ if not haveSetDefault and defaultGroup:
+ defaultGroup.set_active(1)
spacer = GtkLabel("")
spacer.set_usize(60, 1)