summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-07-16 03:23:20 +0000
committerJeremy Katz <katzj@redhat.com>2003-07-16 03:23:20 +0000
commita51764f258d46a2e2f0ae39f25144c6ffabb8804 (patch)
tree18980a7ca91a86f6432dd19e172608ed7c12e8f1 /gui.py
parent1b2f9fe18937b9f187b7fd77a50c2c7d0f369654 (diff)
downloadanaconda-a51764f258d46a2e2f0ae39f25144c6ffabb8804.tar.gz
anaconda-a51764f258d46a2e2f0ae39f25144c6ffabb8804.tar.xz
anaconda-a51764f258d46a2e2f0ae39f25144c6ffabb8804.zip
merge from taroon branch. product.img stuff, md can be modular, lots of
little things across the board
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/gui.py b/gui.py
index e711e2148..5fec028be 100755
--- a/gui.py
+++ b/gui.py
@@ -430,7 +430,13 @@ class ProgressWindow:
rootPushBusyCursor()
def set (self, amount):
- self.progress.set_fraction (float (amount) / self.total)
+ # only update widget if we've changed by 5%
+ curval = self.progress.get_fraction()
+ newval = float (amount) / self.total
+ if newval < 0.998:
+ if (newval - curval) < 0.05 and newval > curval:
+ return
+ self.progress.set_fraction (newval)
processEvents ()
def pop(self):
@@ -1464,7 +1470,7 @@ class InstallControlState:
for path in ("/mnt/source/RHupdates/pixmaps/",
"/mnt/source/RHupdates/",
"/tmp/updates/pixmaps/", "/tmp/updates/",
- "/tmp/product/pixmaps/",
+ "/tmp/product/pixmaps/", "/tmp/product/",
"/usr/share/anaconda/pixmaps/", "pixmaps/",
"/usr/share/pixmaps/",
"/usr/share/anaconda/", ""):