Follow-up Comment #12, bug #18278 (project mypaint):
>From what I understand right now :
request_image calls request_content with "content type" (which is called
"target") "image/png".
When copying an image any typical (almost all) windows software (like MS
paint) the only target returned by "request_targets" is "image/bmp". When
copying from Gimp on windows, the only target returned by "request_targets" is
"image/png".
That explain the difference. Still not the whole process...
In the following sequence :
- Copy an image from MS paint
- call 'request_contents("image/png",callback)'
=> The callback receive the outdated information
In the following sequence :
- Copy an image from MS paint
- call 'request_targets(request_targets_callback)'
- call 'request_contents("image/png",callback)'
=> The request_targets_callback receive only "image/bmp" BUT callback receive
the right information.
Look like "request_targets" enable a sort of "auto convert" once it has
noticed that the content is an image. Didn't found that code thought. I still
don't know if request_targets is mandatory or not, so I don't know if it's a
gtk bug or not.
Note : under pygtk/linux, I always receive "image/png" when copying image
from any app (gtk or not, like firefox), that explain the win32 specific.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?18278>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs