From 768278d6a7b674ac42e3f87f55616aa7d41c94f2 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Tue, 24 Jul 2012 19:14:23 +0000 Subject: [PATCH] GTK3: pixbuf.save is not available via gi, use savev. Like this scaling works again svn: r20069 --- src/gui/thumbnails.py | 2 +- src/gui/widgets/photo.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/thumbnails.py b/src/gui/thumbnails.py index ed65c6852..c70f7775e 100644 --- a/src/gui/thumbnails.py +++ b/src/gui/thumbnails.py @@ -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)) diff --git a/src/gui/widgets/photo.py b/src/gui/widgets/photo.py index f8de54e8e..281a0efe0 100644 --- a/src/gui/widgets/photo.py +++ b/src/gui/widgets/photo.py @@ -25,6 +25,7 @@ # #------------------------------------------------------------------------- from gi.repository import GObject +from gi.repository import Gdk from gi.repository import Gtk #-------------------------------------------------------------------------