mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-19 03:37:38 +03:00
Gtk: Fix copy
This commit is contained in:
parent
6f26ee8497
commit
ff224584ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user