added gimp_undo_stack_get_depth().
2005-07-29 Sven Neumann <sven@gimp.org> * app/core/gimpundostack.[ch]: added gimp_undo_stack_get_depth(). * app/widgets/gimpimagepropview.[ch]: display number and memory usage of undo/redo steps. * app/core/gimpimage-merge.c: fixed signedness issue.
This commit is contained in:
committed by
Sven Neumann
parent
b82d4c46c7
commit
0728f76b35
@ -246,3 +246,11 @@ gimp_undo_stack_peek (GimpUndoStack *stack)
|
||||
|
||||
return (object ? GIMP_UNDO (object) : NULL);
|
||||
}
|
||||
|
||||
gint
|
||||
gimp_undo_stack_get_depth (GimpUndoStack *stack)
|
||||
{
|
||||
g_return_val_if_fail (GIMP_IS_UNDO_STACK (stack), 0);
|
||||
|
||||
return gimp_container_num_children (stack->undos);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user