GTK3: pixbuf.save is not available via gi, use savev. Like this scaling works again

svn: r20069
This commit is contained in:
Benny Malengier 2012-07-24 19:14:23 +00:00
parent e6474051cf
commit 768278d6a7
2 changed files with 2 additions and 1 deletions

View File

@ -211,7 +211,7 @@ def __create_thumbnail_image(src_file, mtype=None, rectangle=None,
pixbuf = pixbuf.scale_simple(scaled_width, scaled_height,
GdkPixbuf.InterpType.BILINEAR)
pixbuf.save(filename, "png")
pixbuf.savev(filename, "png", "", "")
return True
except Exception, err:
LOG.warn("Error scaling image down: %s", str(err))

View File

@ -25,6 +25,7 @@
#
#-------------------------------------------------------------------------
from gi.repository import GObject
from gi.repository import Gdk
from gi.repository import Gtk
#-------------------------------------------------------------------------