GTK3 fixes for narrative web report

svn: r20159
This commit is contained in:
Gary Burton 2012-07-31 12:37:36 +00:00
parent ecbcea50af
commit 5f92d658dc
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ def resize_to_jpeg(source, destination, width, height, crop=None):
(width, height) = image_actual_size(width, height, img.get_width(), img.get_height())
scaled = img.scale_simple(int(width), int(height), GdkPixbuf.InterpType.BILINEAR)
scaled.save(destination, 'jpeg')
scaled.savev(destination, "jpeg" "", "")
#-------------------------------------------------------------------------
#
@ -258,7 +258,7 @@ def resize_to_jpeg_buffer(source, size, crop=None):
scaled = img.scale_simple(int(size[0]), int(size[1]), GdkPixbuf.InterpType.BILINEAR)
os.close(filed)
dest = get_unicode_path_from_env_var(dest)
scaled.save(dest, 'jpeg')
scaled.savev(dest, "jpeg", "", "")
ofile = open(dest, mode='rb')
data = ofile.read()
ofile.close()

View File

@ -1630,7 +1630,7 @@ class GuiDestinationOption(Gtk.HBox):
self.__button.connect('clicked', self.__select_file)
self.pack_start(self.__entry, True, True, 0)
self.pack_end(self.__button, False, False)
self.pack_end(self.__button, False, False, 0)
# Set up signal handlers when the widget value is changed
# from user interaction or programmatically. When handling