Re: gtk_clipboard_set_image



2010/11/3 Jiří Zárevúcky <zarevucky jiri gmail com>
Andy Bell píše v St 03. 11. 2010 v 11:19 +0100:
> Hi All,
>
> I am having trouble with setting an image to the clipboard.
> [...]
>
> I don't get any errors, but when I come to try to paste it I have
> nothing on the clipboard.  For example, opening OpenOffice, I would
> like to paste the image but nothing happens, nor in GIMP.  I am using
> Ubuntu 10.4.
>
> Thanks, Andy

Are you aware that data in clipboard is gone once you close your
application? I think that might be the source of your problem. That's
how X server works and I don't think you can work around it.


I am, the application is still open and I use the following call:

gtk_clipboard_store( gtk_clipboard_get( GDK_SELECTION_CLIPBOARD ) );

Thanks, Andy


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]