Gtk: Fix copy

This commit is contained in:
Ben Olden-Cooligan 2023-10-07 10:46:41 -07:00
parent 6f26ee8497
commit ff224584ec

View File

@ -44,6 +44,14 @@ public class GtkEtoPlatform : EtoPlatform
return new Bitmap(new BitmapHandler(pixbuf));
}
public override void SetClipboardImage(Clipboard clipboard, Bitmap image)
{
// Without cloning the image, Gtk gives errors on paste.
// Presumably it assumes the application will keep the Pixbuf around
// (while on Windows/Mac we can just dispose right away).
base.SetClipboardImage(clipboard, image.Clone());
}
public override IMemoryImage DrawHourglass(ImageContext imageContext, IMemoryImage image)
{
// TODO