diff options
author | Erik Troan <ewt@redhat.com> | 2000-04-28 20:39:55 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-04-28 20:39:55 +0000 |
commit | 7d18618ffc68d100e7b35443b36fa6e9c0463472 (patch) | |
tree | 8d10b6de710f1d02b98637805d9ee125e0dfed48 /iw/rootpartition_gui.py | |
parent | 2306e02d9886970bb42444a45103d6a6cd834906 (diff) | |
download | anaconda-7d18618ffc68d100e7b35443b36fa6e9c0463472.tar.gz anaconda-7d18618ffc68d100e7b35443b36fa6e9c0463472.tar.xz anaconda-7d18618ffc68d100e7b35443b36fa6e9c0463472.zip |
cap partionless install sizes at 2000MB
Diffstat (limited to 'iw/rootpartition_gui.py')
-rw-r--r-- | iw/rootpartition_gui.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/iw/rootpartition_gui.py b/iw/rootpartition_gui.py index 48f0d96cc..9b3557b88 100644 --- a/iw/rootpartition_gui.py +++ b/iw/rootpartition_gui.py @@ -121,12 +121,16 @@ class LoopSizeWindow(InstallWindow): label.set_line_wrap (TRUE) vbox.pack_start (label, FALSE, FALSE) + upper = avail + if avail > 2000: + upper = 2000 + # XXX lower is 150 - self.sizeAdj = GtkAdjustment (value = size, lower = 150, upper = avail, step_incr = 1) + self.sizeAdj = GtkAdjustment (value = size, lower = 150, upper = upper, step_incr = 1) self.sizeSpin = GtkSpinButton (self.sizeAdj, digits = 0) self.sizeSpin.set_usize (100, -1) - self.swapAdj = GtkAdjustment (value = swapSize, lower = 16, upper = avail, step_incr = 1) + self.swapAdj = GtkAdjustment (value = swapSize, lower = 16, upper = upper, step_incr = 1) self.swapSpin = GtkSpinButton (self.swapAdj, digits = 0) self.swapSpin.set_usize (100, -1) |