[Lazarus] Clipboard Data Goes Away

Anthony Walter sysrpl at gmail.com
Thu Apr 1 09:55:46 CEST 2021


Thanks Michael.

It looks as if this problem was fixed in Gtk2 by version 2.6. The
developers added this function to work around this problem:

void gtk_clipboard_store (GtkClipboard *clipboard);

Stores the current clipboard data somewhere so that it will stay around
after the application has quit.

Parameters
clipboard

a GtkClipboard

Since: 2.6

Looking at the LCL source, it seems the Gtk3 LCL is using this function to
save the clipboard data after the program exists, but it's not being used
in the Gtk2 LCL. With this function, the problem I've described should be
fixable in LCL Gtk2.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20210401/4e0593a3/attachment.html>


More information about the lazarus mailing list