Follow-up Comment #11, bug #18278 (project mypaint):
After playing a bit with interactive python console and pygtk, I found an
(ugly?) workaround.
Context : "clipboard" is a python var containing a GtkClipboard. I've already
read image using clipboard.request_image(callback)
- Put an image in the clipboard using MS Paint
- call "clipboard.request_image(callback)"
callback will be call with the outdated image.
- create a dummy callback : "def dummycallback(a,b,c) : pass"
- Put an image in the clipboard using MS Paint
- call "clipboard.request_targets(dummycallback)"
- call "clipboard.request_image(callback)"
callback will be call with the expected image.
Clearly, it's a PyGtk or Gtk problem (except if request_targets is more or
less mandatory ??)
I'm trying to write a clean simple python script to reproduce the problem.
_______________________________________________________
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