don't add the image to the image container, don't call undo_free().

2001-07-05  Michael Natterer  <mitch@gimp.org>

	* app/gimage.c: don't add the image to the image container,
	don't call undo_free().

	* app/core/gimp.[ch]: add new images to gimp->images, optionally
	attach the comment parasite.

	* app/core/gimpedit.c
	* app/core/gimpimage-duplicate.c
	* app/core/gimpimage-new.c
	* app/gui/file-open-dialog.c
	* app/gui/toolbox.c
	* tools/pdbgen/pdb/image.pdb
	* app/pdb/image_cmds.c
	* app/xcf/xcf-load.c: call gimp_create_image() and/or
	gimp_create_display(), don't attach a comment parasite.

	* app/core/gimpimage.c: call undo_free() in "destroy".

	* app/file-open.c
	* app/gui/palette-import-dialog.c
	* app/xcf/xcf-save.c: don't #include "gimage.h"
This commit is contained in:
Michael Natterer
2001-07-05 16:21:36 +00:00
committed by Michael Natterer
parent a0014f7e8e
commit a84d697b93
27 changed files with 108 additions and 113 deletions

View File

@ -42,6 +42,7 @@
#include "base/temp-buf.h"
#include "core/gimp.h"
#include "core/gimpcontext.h"
#include "core/gimpimage.h"
@ -53,7 +54,6 @@
#include "dialog_handler.h"
#include "docindex.h"
#include "gdisplay.h"
#include "gimage.h"
#include "gimprc.h"
#include "file-open.h"
#include "file-utils.h"
@ -242,7 +242,6 @@ file_open_with_proc_and_display (gchar *filename,
PlugInProcDef *file_proc)
{
GimpImage *gimage;
GDisplay *gdisplay;
gchar *absolute;
gint status;
@ -260,11 +259,7 @@ file_open_with_proc_and_display (gchar *filename,
gimp_image_clean_all (gimage);
/* display the image */
gdisplay = gdisplay_new (gimage, 0x0101);
/* always activate the first display */
if (g_slist_length (display_list) == 1)
gimp_context_set_display (gimp_context_get_user (), gdisplay);
gimp_create_display (gimage->gimp, gimage);
absolute = file_open_absolute_filename (filename);