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

Gimp Undo System

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.

1 of 1 message available
Toggle history

Please log in to manage your subscriptions.

Gimp Undo System Radhwan Ben Madhkour 25 Aug 15:41
Radhwan Ben Madhkour
2009-08-25 15:41:08 UTC (over 15 years ago)

Gimp Undo System

Hello,

I'm changing the content of an image using pixel_region_set_row(). After that, I want to introduce my changes in the Undo Stack.

So, I start an undogroup with gimp_image_undo_group_start (image, GIMP_UNDO_GROUP_PAINT, "test").
After, I call the function gimp_drawable_push_undo(drawable, NULL, x1, y1, x2,y2,tilemanager , TRUE).
I finish the undo group with gimp_image_undo_group_end(image).

When I start to draw, "test" is added to the stack (I see it in the undo window).
But when I do ctrl+z, nothing happens.

With gdb and backtrace, I see that when I draw, after the group is created, gimp_image_undo_push is called is called before gimp_drawable_push_undo. I add it but there is no changes.

Does anybody have an idea of what is wrong?

Kind Regards,

Radhwan