diff --git a/Pinta.Core/ImageFormats/GdkPixbufFormat.cs b/Pinta.Core/ImageFormats/GdkPixbufFormat.cs index aa34290ea..3505435b1 100644 --- a/Pinta.Core/ImageFormats/GdkPixbufFormat.cs +++ b/Pinta.Core/ImageFormats/GdkPixbufFormat.cs @@ -102,8 +102,7 @@ protected virtual void DoSave (Pixbuf pb, GLib.IFile file, string fileType, Gtk. { using var stream = file.Replace (); try { - // TODO-GTK4: the simpler SaveToStream() seems to be missing in GtkSharp. - pb.SaveToStreamv (stream, fileType, null, null, null); + pb.SaveToStream (stream, fileType, null); } finally { stream.Close (null); } diff --git a/Pinta.Core/ImageFormats/JpegFormat.cs b/Pinta.Core/ImageFormats/JpegFormat.cs index 83aef9eb0..ac3de9e5d 100644 --- a/Pinta.Core/ImageFormats/JpegFormat.cs +++ b/Pinta.Core/ImageFormats/JpegFormat.cs @@ -66,9 +66,7 @@ protected override void DoSave (Pixbuf pb, GLib.IFile file, string fileType, Gtk using var stream = file.Replace (); try { - // FIXME - SaveToStreamv() isn't wrapped correctly by GtkSharp, so the quality setting is skipped for now... - pb.SaveToStreamv (stream, fileType, null, null, null); - //pb.SavevUtf8 (fileName, fileType, new string?[] { "quality", null }, new string?[] { level.ToString (), null }); + pb.SaveToStreamv (stream, fileType, new string?[] { "quality", null }, new string?[] { level.ToString (), null }, null); } finally { stream.Close (null); }