get notified when gimp closes from a plugin
Hi,
On Mon, 2009-06-01 at 17:27 +0300, Ioan Calin Borcoman wrote:
Is it possible to receive a signal or event in a plugin when gimp closes?
I want to create a plugin with a gui window and store some persistent
data between gimp restarts. If I close the gui window while gimp is
running, all is ok. But if I close gimp while the gui window is shown,
the window get's no chance to execute the destroy callback and close
gracefully.
In theory your plug-in could implement the quit method and that method
should then be called by GIMP when it quits the plug-in on exit. In
practice though this is not what the core does. Instead it will kill the
plug-in without prior notice. See the discussion in
http://bugzilla.gnome.org/show_bug.cgi?id=8141 (that's our oldest still
open bug report btw.).
So, no, what you are asking for is not possible. But, yes, we would
appreciate if someone came up with a well-designed proposal on how to
solve this problem.
Sven