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

Undo from within 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 3 messages available
Toggle history

Please log in to manage your subscriptions.

Undo from within plugin Tibor Bamhor 24 Apr 10:21
  CAGLH-RtU7jmpCxhL5Awy5maua6... 25 Apr 21:48
   Fwd: Undo from within plugin Ajay Ramanathan 25 Apr 21:48
Tibor Bamhor
2013-04-24 10:21:54 UTC (over 11 years ago)

Undo from within plugin

Hi,

I want for some reason to implement undo within a plugin (window).

I found this call:

gimp_image_undo(GimpImage *image)

I just do not know what whould be put into brackets. Can you advice?

I have this line in my plugin:

image_ID = param[1].data.d_image (I just copy/pasted it from some plugin template), is this what I am searching for?

Or the undo might be done for the layer only, this might be even better...

Thanks

Ajay Ramanathan
2013-04-25 21:48:36 UTC (over 11 years ago)

Fwd: Undo from within plugin

@Tibor

Rather than using gimp_image_undo(GimpImage *image), You can use a Array which stores all [input parameters]variable values which has been changed
and using GTK you can implement an undo button which would apply the variables in the last term of the array.

I havent tried it yet but this should definitely work. This can only undo the stuff which u do in the plugin.

For further reference look at http://developer.gimp.org/api/2.0/libgimp/libgimp-gimpundo.html

On Wed, Apr 24, 2013 at 3:51 PM, Tibor Bamhor wrote:

Hi,

I want for some reason to implement undo within a plugin (window).

I found this call:

gimp_image_undo(GimpImage *image)

I just do not know what whould be put into brackets. Can you advice?

I have this line in my plugin:

image_ID = param[1].data.d_image (I just copy/pasted it from some plugin template), is this what I am searching for?

Or the undo might be done for the layer only, this might be even better...

Thanks

_______________________________________________ gimp-developer-list mailing list
gimp-developer-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gimp-developer-list