[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 2/4] Remove width and height parameters from gui.readImageFromFile()



We no longer resize images from anywhere this function is used in
anaconda.

Related: rhbz#663411
---
 gui.py |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/gui.py b/gui.py
index 5e96ed8..a08adf4 100755
--- a/gui.py
+++ b/gui.py
@@ -351,19 +351,12 @@ def getPixbuf(file):
     
     return pixbuf
 
-def readImageFromFile(file, width = None, height = None, dither = None,
-                      image = None):
+def readImageFromFile(file, dither = False, image = None):
     pixbuf = getPixbuf(file)
     if pixbuf is None:
         log.warning("can't find pixmap %s" %(file,))
         return 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(width, height,
-                                     gtk.gdk.INTERP_BILINEAR)
-
     if image is None:
         p = gtk.Image()
     else:
-- 
1.7.3.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]