Re: [Gimp-developer] "quit" signal for plugins

2009-02-10 Thread Glimmer Labs
On Thu, Feb 5, 2009 at 3:12 PM, Sven Neumann wrote: > > I think it would make sense to call the quit method in all running > plug-ins when the core is quit. So a patch that does this would be much > appreciated. We need to somehow deal with the problem of hanging > plug-ins though. > > > Sven >

Re: [Gimp-developer] "quit" signal for plugins

2009-02-05 Thread Sven Neumann
Hi, On Wed, 2009-02-04 at 08:12 -0600, Glimmer Labs wrote: > It seems like several different plugins could take advantage of that > because they make temporary images. > (or would this still be only on plugin quit and not gimp quit?) I think it would make sense to call the quit method in all run

Re: [Gimp-developer] "quit" signal for plugins

2009-02-04 Thread Glimmer Labs
Thank you for the link to that thread, it was very informative. I have yet to find any sort of workaround. I tried trapping all the TERM type signals but no luck there. Is doing a non blocking wait still under discussion? Actually, for my purposes it doesn't matter whether the wait is blocking,

Re: [Gimp-developer] "quit" signal for plugins

2009-02-03 Thread Sven Neumann
Hi, On Tue, 2009-02-03 at 10:27 -0600, Glimmer Labs wrote: > If a plugin has a quit function that hangs or takes a long time, won't > that affect the gimp when > the quit function is normally called (on closing of plugin)? I very much doubt that any real-world plug-in is actually using the quit

Re: [Gimp-developer] "quit" signal for plugins

2009-02-03 Thread Glimmer Labs
I have been thinking about this and it does seem to be a somewhat thorny issue. One possible solution would be to call the quit functions of the plugins but have a timeout set so that you could pop up a dialog if they did not quit after a second or two asking if the user wanted to terminate the pl

Re: [Gimp-developer] "quit" signal for plugins

2009-02-01 Thread Sven Neumann
Hi, On Fri, 2009-01-30 at 14:33 -0600, Glimmer Labs wrote: > I have been developing a plugin that involves users editing files and > I need to be able to prompt them to save when the gimp closes. > > I have tried using the quit signal in pluginInfo: > > GimpPlugInInfo PLUG_IN_INFO = > { > NULL

Re: [Gimp-developer] "quit" signal for plugins

2009-02-01 Thread Bill Skaggs
On Fri, Jan 30, 2009 at 12:33 PM, Glimmer Labs wrote: > I have been developing a plugin that involves users editing files and I need > to be able to prompt them to save when the gimp closes. > > [...] I don't think there is any way to do this using current functionality. Communication between GI