RSS/Atom feed Twitter
Site is read-only, email is disabled

Can't paste into Gimp with custom clipboard program

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Can't paste into Gimp with custom clipboard program Edgar 22 Mar 08:35
Edgar
2011-03-22 08:35:41 UTC (about 14 years ago)

Can't paste into Gimp with custom clipboard program

I recently wrote a program to handle copy/paste of text and images using X11 for Linux. Most things are working nicely, I can copy an image to the clipboard and sucessfully retrieve it and I can paste images copied from other programs.

My problem however is that if I use my program (xcsi) to copy an image, then I can't paste it into Gimp (not Inkscape either).

My program logs all selection requests made by other programs, and I can see that Gimp requests the TARGETS selection from my program several times. The paste option is not grayed out in Gimp after copying an image with my program, but Gimp never makes a request for image/bmp or image/png when my program offers it.

Can someone help explain how Gimp handles pasting and how I might get this working please? At first I thought it was a problem with Gimp because it never requests the image, but copying from Firefox and pasting into Gimp works, so maybe it's something I'm doing wrong then.

The source code from my latest version of the program is here on an Allegro forum thread :
http://www.allegro.cc/forums/thread/606034/909368#target

Using openSUSE 11.3, and Gimp version 2.6.8-6.1.