RSS/Atom feed Twitter
Site is read-only, email is disabled

get notified when gimp closes from a plugin

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

get notified when gimp closes from a plugin Ioan Calin Borcoman 01 Jun 16:27
  get notified when gimp closes from a plugin Sven Neumann 01 Jun 19:39
Ioan Calin Borcoman
2009-06-01 16:27:10 UTC (over 15 years ago)

get notified when gimp closes from a plugin

Hi,

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.

Thanx,

Ionutz

Sven Neumann
2009-06-01 19:39:07 UTC (over 15 years ago)

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