summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-08-15 03:44:43 +0000
committerJeremy Katz <katzj@redhat.com>2002-08-15 03:44:43 +0000
commit2e4c404f9637a50c2e0409c7146231813fbd17ea (patch)
tree86764cf25acca40c5fe20872bdb159ea5a779991 /gui.py
parentd46f11bd1221b072d80e37e3ef043bfb1e8eabb0 (diff)
downloadanaconda-2e4c404f9637a50c2e0409c7146231813fbd17ea.tar.gz
anaconda-2e4c404f9637a50c2e0409c7146231813fbd17ea.tar.xz
anaconda-2e4c404f9637a50c2e0409c7146231813fbd17ea.zip
only get the current height and width if we need it
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/gui.py b/gui.py
index cd5a24d65..331838f72 100755
--- a/gui.py
+++ b/gui.py
@@ -1190,10 +1190,9 @@ class InstallControlState:
except RuntimeError, msg:
log("unable to read %s: %s", file, msg)
return None
- curheight = pixbuf.get_height()
- curwidth = pixbuf.get_width()
if (height is not None and width is not None
- and height != curheight and width != curwidth):
+ and height != pixbuf.get_height()
+ and width != pixbuf.get_width()):
sclpix = pixbuf.scale_simple(height, width,
gtk.gdk.INTERP_BILINEAR)
p = gtk.Image()