diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-03-23 21:46:17 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-03-23 21:46:17 +0000 |
commit | 0d101829afb737a93d48ee8e6a545c11613ee2a9 (patch) | |
tree | 90bdf102f579a8a9d39f8a655c9ddd164b48bf38 /gui.py | |
parent | bc32614a57bb9df41010ae544e80b219cc11170d (diff) | |
download | anaconda-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-x | gui.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |