Move all undo-related members to GimpImagePrivate

Also add some new API to access them.
This commit is contained in:
Michael Natterer
2010-02-04 20:06:49 +01:00
parent 4c1ec79281
commit 09c897262e
14 changed files with 216 additions and 150 deletions

View File

@ -284,8 +284,10 @@ edit_actions_update (GimpActionGroup *group,
if (undo_enabled)
{
GimpUndo *undo = gimp_undo_stack_peek (image->undo_stack);
GimpUndo *redo = gimp_undo_stack_peek (image->redo_stack);
GimpUndoStack *undo_stack = gimp_image_get_undo_stack (image);
GimpUndoStack *redo_stack = gimp_image_get_redo_stack (image);
GimpUndo *undo = gimp_undo_stack_peek (undo_stack);
GimpUndo *redo = gimp_undo_stack_peek (redo_stack);
if (undo)
{