summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-03-23 21:46:17 +0000
committerJeremy Katz <katzj@redhat.com>2007-03-23 21:46:17 +0000
commit0d101829afb737a93d48ee8e6a545c11613ee2a9 (patch)
tree90bdf102f579a8a9d39f8a655c9ddd164b48bf38 /gui.py
parentbc32614a57bb9df41010ae544e80b219cc11170d (diff)
downloadanaconda-0d101829afb737a93d48ee8e6a545c11613ee2a9.tar.gz
anaconda-0d101829afb737a93d48ee8e6a545c11613ee2a9.tar.xz
anaconda-0d101829afb737a93d48ee8e6a545c11613ee2a9.zip
2007-03-23 Jeremy Katz <katzj@redhat.com>
* gui.py (readImageFromFile): Make width/height args be in the same order as GTK functions
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui.py b/gui.py
index 8c14f8d7f..5093acea8 100755
--- a/gui.py
+++ b/gui.py
@@ -447,17 +447,17 @@ def getPixbuf(file):
return pixbuf
-def readImageFromFile(file, height = None, width = None, dither = None,
+def readImageFromFile(file, width = None, height = None, dither = None,
image = None):
pixbuf = getPixbuf(file)
if pixbuf is None:
log.warning("can't find pixmap %s" %(file,))
return None
- if (height is not None and width is not None
+ if (width is not None and height is not None
and height != pixbuf.get_height()
and width != pixbuf.get_width()):
- pixbuf = pixbuf.scale_simple(height, width,
+ pixbuf = pixbuf.scale_simple(width, height,
gtk.gdk.INTERP_BILINEAR)
if image is None: