app/core/gimpundo.[ch] app/core/gimpitemundo.[ch] removed all _new()
2004-07-12 Michael Natterer <mitch@gimp.org> * app/core/gimpundo.[ch] * app/core/gimpitemundo.[ch] * app/text/gimptextundo.[ch]: removed all _new() functions and added properties and GObject::constructor() implementations instead. * app/core/gimpimage-undo.[ch] (gimp_image_undo_push): added "GType undo_gtype" parameter and allow to pass name-value pairs as "...". Une the new GParameter utility functions to construct the appropriate undo step with g_object_newv(). (gimp_image_undo_push_item): removed. (gimp_image_undo_push_undo): removed. Merged its code back into gimp_image_undo_push(), where it originally came from. * app/core/gimpimage-undo-push.c * app/core/gimpundostack.c * app/paint/gimppaintcore-undo.c * app/tools/gimptransformtool-undo.c * app/widgets/gimpundoeditor.c: changed accordingly.
This commit is contained in:
committed by
Michael Natterer
parent
9593e52ef2
commit
da74f1269e
@ -168,15 +168,11 @@ gimp_undo_stack_free (GimpUndo *undo,
|
||||
GimpUndoStack *
|
||||
gimp_undo_stack_new (GimpImage *gimage)
|
||||
{
|
||||
GimpUndoStack *stack;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_IMAGE (gimage), NULL);
|
||||
|
||||
stack = g_object_new (GIMP_TYPE_UNDO_STACK, NULL);
|
||||
|
||||
GIMP_UNDO (stack)->gimage = gimage;
|
||||
|
||||
return stack;
|
||||
return g_object_new (GIMP_TYPE_UNDO_STACK,
|
||||
"image", gimage,
|
||||
NULL);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user