[Gimp-developer] Re: "Cancel" function and plugins
Michael Natterer
mitch at gimp.org
Wed Jun 7 12:29:57 PDT 2006
On Wed, 2006-06-07 at 19:54 +0200, Sven Neumann wrote:
> Hi,
>
> On Wed, 2006-06-07 at 17:36 +0100, Toby Speight wrote:
>
> > While we're on this subject - obviously the plug-in process has no
> > chance to clear up if it's killed outright,
>
> Well, in theory it could catch the signal and clean up before it exits.
>
> > so what happens to e.g. undo stack in this case? Is it all just
> > left hanging as it was, or is there some attempt by Gimp to "roll-back"
> > the effect of the plugin?
>
> GIMP tries to establish a sane state. IIRC, it pops the context the
> plug-in was running in and makes sure that undo groups are closed.
Um, no :( Load plug-ins do that. Unfortunately any other plug-in
can still crash the core by leaving undo groups open. I have some
half-finished code but gave up because the approach was apparently
wrong (it became way too complicated).
ciao,
--mitch
More information about the Gimp-developer
mailing list