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:
Sven Neumann
2005-07-28 22:40:32 +00:00
committed by Sven Neumann
parent b82d4c46c7
commit 0728f76b35
6 changed files with 97 additions and 15 deletions

View File

@ -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);
}