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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux