-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Tor Lillqvist wrote: | > > Should there be some way for plug-ins to register interest in getting | > > callbacks when paths nodes are moved/added/deleted, etc? Other | | > i think that would be useful. | | Yup. Any comments from core developers? Would implementing callbacks | to plug-ins be straightforward, or is there some gotcha? Or should | plug-ins just poll frequently to see if a path/selection/whatever has | been edited?
hmm, last time I checked, plugins run in a different process space, so setting up callbacks is a bit more difficult than normal. There are a coupla schemes that could work, including copying the args into shared memory, and telling the plugin to invoke the process, RMI over a unix socket, etc, however, the gimp process can't just invoke the callback in the plugin as though the plugin was a shared lib.
So, to answer your qestions, no, it is not straightfoward, yes, there is a gotcha but yes, it is possible.
- -- Dan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/W8Gfad4P1+ZAZk0RAk9LAJ92fqjvOVBg96atQuUWJ5Up1+k/HwCfasm1 SoPKEpyo+/6lRfMxpUHBuC8= =hrg2 -----END PGP SIGNATURE-----