summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2005-11-21 21:22:28 +0000
committerDavid Cantrell <dcantrell@redhat.com>2005-11-21 21:22:28 +0000
commit85feb7fdee839400b3bc9d3c2904e5e9de3c1fb2 (patch)
tree79836ab3440e0eae2a4db7c0e2cdb82f90c162c8
parente9ea157654ab054de003328648cc7b32f200e3ed (diff)
downloadanaconda-85feb7fdee839400b3bc9d3c2904e5e9de3c1fb2.tar.gz
anaconda-85feb7fdee839400b3bc9d3c2904e5e9de3c1fb2.tar.xz
anaconda-85feb7fdee839400b3bc9d3c2904e5e9de3c1fb2.zip
Fixed one of the progress bars in the GUI frontend (retrieving package
information). GTK+ needs the percentage between 0 and 1, we were sending very large values. Text mode progress bar unchanged for now.
-rw-r--r--ChangeLog5
-rwxr-xr-xgui.py2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 898cdb90e..ba6377fc0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-21 David Cantrell <dcantrell@redhat.com>
+
+ * gui.py (ProgressWindow.set): Make sure the float sent to set_fraction()
+ for the progress bar percentage falls between 0 and 1.
+
2005-11-21 Chris Lumens <clumens@redhat.com>
* kickstart.py (AnacondaKSHandlers.doNetwork): More helpful message.
diff --git a/gui.py b/gui.py
index 1055fccb9..b131e6130 100755
--- a/gui.py
+++ b/gui.py
@@ -529,7 +529,7 @@ class ProgressWindow:
def set (self, amount):
# only update widget if we've changed by 5%
curval = self.progress.get_fraction()
- newval = float (amount) / self.total
+ newval = (float (amount) / self.total) / 100
if newval < 0.998:
if (newval - curval) < 0.05 and newval > curval:
return