2006-12-09 13:33:38 -08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2000-02-24 08:11:26 -08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
|
*
|
2009-01-17 14:28:01 -08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2000-02-24 08:11:26 -08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-17 14:28:01 -08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2000-02-24 08:11:26 -08:00
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-07-11 14:47:19 -07:00
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2000-02-24 08:11:26 -08:00
|
|
|
*/
|
2000-12-16 13:37:03 -08:00
|
|
|
|
1999-02-20 15:20:54 -08:00
|
|
|
#include "config.h"
|
|
|
|
|
|
1997-11-24 14:05:25 -08:00
|
|
|
#include <errno.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
2013-10-14 16:58:39 -07:00
|
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
2005-02-06 17:38:18 -08:00
|
|
|
#include <glib/gstdio.h>
|
2013-10-14 16:58:39 -07:00
|
|
|
#include <gegl.h>
|
1997-11-24 14:05:25 -08:00
|
|
|
|
2004-01-18 17:54:11 -08:00
|
|
|
#include "libgimpbase/gimpbase.h"
|
|
|
|
|
|
2001-05-09 15:34:59 -07:00
|
|
|
#include "core/core-types.h"
|
2000-12-29 07:22:01 -08:00
|
|
|
|
removed the gimp_busy boolean, check whether user_installation is needed
2001-07-10 Michael Natterer <mitch@gimp.org>
* app/app_procs.[ch]: removed the gimp_busy boolean, check whether
user_installation is needed here, not in user_install.c, parse
gtkrc an friends only if(!no_interface), create the Gimp object
before parsing gimp's rc files an pas it to the parse functions,
many other cleanups.
* app/appenums.h: added MessageHandlerType and StackTraceMode.
* app/appenv.h: removed MessageHandlerType, declare all global
variables from main.c (no more hidden global stuff please).
* app/errors.[ch]: added the fatal message func here (from main.c),
removed the StackTraceMode enum.
* app/gimprc.[ch]: renamed functions to gimprc_*(), pass a Gimp
pointer to some functions.
* app/gimpunit.c
* app/unitrc.h: ok, this is ugly: renamed all functions to
_gimp_unit_*() and made them public. The unit list is part
of the Gimp object now, so pass a Gimp* to all functions.
* app/libgimp_glue.[ch]: added EEKy wrappers for all gimp_unit_*()
functions which are used by widgets.
* app/main.c: cleaned up the global variables, removed the fatal
message handler, call app_init() directly, not via the
user_install stuff, misc. cleanups.
* app/user_install.[ch]: removed the check if user_installation is
needed (done by app_procs.c now).
* app/core/gimp.[ch]: added the user_unit list and the "busy"
boolean. Moved gimp_[set|unset]_busy() here. Added
gimp_initialize() which is called after unitrc and gimprc are
parsed.
* app/batch.c
* app/colormaps.c
* app/devices.c
* app/disp_callbacks.c
* app/gdisplay_ops.c
* app/gimphelp.c
* app/module_db.c
* app/nav_window.c
* app/plug_in.c
* app/core/gimpcontext.c
* app/core/gimpdatafiles.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage.c
* app/core/gimpparasite.c
* app/core/gimpparasitelist.h
* app/gui/file-open-dialog.c
* app/gui/gui.[ch]
* app/gui/info-dialog.c
* app/gui/info-window.c
* app/gui/preferences-dialog.c
* app/gui/session.c
* app/gui/tips-dialog.c
* app/gui/toolbox.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimptransformtool.c
* app/tools/tool_manager.c
* app/widgets/gimpcolorpanel.c
* app/widgets/gimpcursor.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* app/xcf/xcf.c
* tools/pdbgen/Makefile.am
* tools/pdbgen/app.pl
* tools/pdbgen/enums.pl
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/message.pdb
* tools/pdbgen/pdb/unit.pdb
* app/pdb/image_cmds.c
* app/pdb/message_cmds.c
* app/pdb/unit_cmds.c: changed accordingly, minor cleanups.
2001-07-10 12:16:16 -07:00
|
|
|
#include "core/gimp.h"
|
2001-05-08 19:32:03 -07:00
|
|
|
#include "core/gimpimage.h"
|
2006-03-29 15:56:07 -08:00
|
|
|
#include "core/gimpparamspecs.h"
|
2006-07-11 13:21:18 -07:00
|
|
|
#include "core/gimpprogress.h"
|
2001-07-03 11:38:56 -07:00
|
|
|
|
2006-04-28 15:26:51 -07:00
|
|
|
#include "plug-in/gimppluginmanager.h"
|
2006-08-05 14:21:01 -07:00
|
|
|
#include "plug-in/gimppluginprocedure.h"
|
2001-11-30 16:14:14 -08:00
|
|
|
|
2001-07-03 11:38:56 -07:00
|
|
|
#include "xcf.h"
|
|
|
|
|
#include "xcf-private.h"
|
|
|
|
|
#include "xcf-load.h"
|
|
|
|
|
#include "xcf-read.h"
|
|
|
|
|
#include "xcf-save.h"
|
2001-05-08 19:32:03 -07:00
|
|
|
|
2003-03-25 08:38:19 -08:00
|
|
|
#include "gimp-intl.h"
|
2000-04-27 10:27:28 -07:00
|
|
|
|
1997-11-24 14:05:25 -08:00
|
|
|
|
2007-12-02 23:44:49 -08:00
|
|
|
typedef GimpImage * GimpXcfLoaderFunc (Gimp *gimp,
|
|
|
|
|
XcfInfo *info,
|
|
|
|
|
GError **error);
|
1997-11-24 14:05:25 -08:00
|
|
|
|
|
|
|
|
|
2012-05-03 15:50:23 -07:00
|
|
|
static GimpValueArray * xcf_load_invoker (GimpProcedure *procedure,
|
|
|
|
|
Gimp *gimp,
|
|
|
|
|
GimpContext *context,
|
|
|
|
|
GimpProgress *progress,
|
|
|
|
|
const GimpValueArray *args,
|
|
|
|
|
GError **error);
|
|
|
|
|
static GimpValueArray * xcf_save_invoker (GimpProcedure *procedure,
|
|
|
|
|
Gimp *gimp,
|
|
|
|
|
GimpContext *context,
|
|
|
|
|
GimpProgress *progress,
|
|
|
|
|
const GimpValueArray *args,
|
|
|
|
|
GError **error);
|
1997-11-24 14:05:25 -08:00
|
|
|
|
|
|
|
|
|
2006-04-07 04:58:12 -07:00
|
|
|
static GimpXcfLoaderFunc * const xcf_loaders[] =
|
1997-11-24 14:05:25 -08:00
|
|
|
{
|
2017-02-20 17:11:18 -08:00
|
|
|
xcf_load_image, /* version 0 */
|
|
|
|
|
xcf_load_image, /* version 1 */
|
|
|
|
|
xcf_load_image, /* version 2 */
|
|
|
|
|
xcf_load_image, /* version 3 */
|
|
|
|
|
xcf_load_image, /* version 4 */
|
|
|
|
|
xcf_load_image, /* version 5 */
|
|
|
|
|
xcf_load_image, /* version 6 */
|
|
|
|
|
xcf_load_image, /* version 7 */
|
|
|
|
|
xcf_load_image, /* version 8 */
|
|
|
|
|
xcf_load_image, /* version 9 */
|
2017-03-23 06:17:56 -07:00
|
|
|
xcf_load_image, /* version 10 */
|
2017-09-16 10:03:20 -07:00
|
|
|
xcf_load_image, /* version 11 */
|
2018-02-05 10:54:21 -08:00
|
|
|
xcf_load_image, /* version 12 */
|
|
|
|
|
xcf_load_image /* version 13 */
|
1997-11-24 14:05:25 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void
|
2001-07-04 12:31:35 -07:00
|
|
|
xcf_init (Gimp *gimp)
|
1997-11-24 14:05:25 -08:00
|
|
|
{
|
2006-04-05 01:38:33 -07:00
|
|
|
GimpPlugInProcedure *proc;
|
2014-07-08 12:09:35 -07:00
|
|
|
GFile *file;
|
2006-04-05 01:38:33 -07:00
|
|
|
GimpProcedure *procedure;
|
2006-03-31 01:15:08 -08:00
|
|
|
|
2001-10-18 10:27:36 -07:00
|
|
|
g_return_if_fail (GIMP_IS_GIMP (gimp));
|
|
|
|
|
|
2004-07-16 15:54:53 -07:00
|
|
|
/* So this is sort of a hack, but its better than it was before. To
|
|
|
|
|
* do this right there would be a file load-save handler type and
|
|
|
|
|
* the whole interface would change but there isn't, and currently
|
|
|
|
|
* the plug-in structure contains all the load-save info, so it
|
|
|
|
|
* makes sense to use that for the XCF load/save handlers, even
|
|
|
|
|
* though they are internal. The only thing it requires is using a
|
|
|
|
|
* PlugInProcDef struct. -josh
|
2001-07-03 11:38:56 -07:00
|
|
|
*/
|
2006-03-31 08:17:07 -08:00
|
|
|
|
|
|
|
|
/* gimp-xcf-save */
|
2014-07-08 12:09:35 -07:00
|
|
|
file = g_file_new_for_path ("gimp-xcf-save");
|
|
|
|
|
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
|
|
|
|
g_object_unref (file);
|
|
|
|
|
|
2006-04-06 03:01:30 -07:00
|
|
|
procedure->proc_type = GIMP_INTERNAL;
|
|
|
|
|
procedure->marshal_func = xcf_save_invoker;
|
|
|
|
|
|
|
|
|
|
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
2006-04-05 01:38:33 -07:00
|
|
|
proc->menu_label = g_strdup (N_("GIMP XCF image"));
|
2014-05-11 14:56:30 -07:00
|
|
|
gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME,
|
2006-04-05 01:38:33 -07:00
|
|
|
(const guint8 *) "gimp-wilber",
|
|
|
|
|
strlen ("gimp-wilber") + 1);
|
|
|
|
|
gimp_plug_in_procedure_set_image_types (proc, "RGB*, GRAY*, INDEXED*");
|
2006-04-06 03:01:30 -07:00
|
|
|
gimp_plug_in_procedure_set_file_proc (proc, "xcf", "", NULL);
|
2017-05-04 14:22:37 -07:00
|
|
|
gimp_plug_in_procedure_set_mime_types (proc, "image/x-xcf");
|
2013-10-08 12:22:14 -07:00
|
|
|
gimp_plug_in_procedure_set_handles_uri (proc);
|
2006-04-05 01:38:33 -07:00
|
|
|
|
2006-04-07 03:04:27 -07:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-xcf-save");
|
2006-03-31 08:17:07 -08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
|
"gimp-xcf-save",
|
2006-07-11 12:03:55 -07:00
|
|
|
"Saves file in the .xcf file format",
|
|
|
|
|
"The XCF file format has been designed "
|
2006-03-31 08:17:07 -08:00
|
|
|
"specifically for loading and saving "
|
2007-06-06 01:44:52 -07:00
|
|
|
"tiled and layered images in GIMP. "
|
2006-03-31 08:17:07 -08:00
|
|
|
"This procedure will save the specified "
|
|
|
|
|
"image in the xcf file format.",
|
|
|
|
|
"Spencer Kimball & Peter Mattis",
|
|
|
|
|
"Spencer Kimball & Peter Mattis",
|
|
|
|
|
"1995-1996",
|
|
|
|
|
NULL);
|
|
|
|
|
|
2006-04-04 08:54:51 -07:00
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
|
gimp_param_spec_int32 ("dummy-param",
|
|
|
|
|
"Dummy Param",
|
|
|
|
|
"Dummy parameter",
|
|
|
|
|
G_MININT32, G_MAXINT32, 0,
|
|
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
|
gimp_param_spec_image_id ("image",
|
|
|
|
|
"Image",
|
|
|
|
|
"Input image",
|
2006-05-06 12:03:03 -07:00
|
|
|
gimp, FALSE,
|
2006-04-04 08:54:51 -07:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
|
gimp_param_spec_drawable_id ("drawable",
|
|
|
|
|
"Drawable",
|
|
|
|
|
"Active drawable of input image",
|
2006-05-06 12:03:03 -07:00
|
|
|
gimp, TRUE,
|
2006-04-04 08:54:51 -07:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
|
gimp_param_spec_string ("filename",
|
|
|
|
|
"Filename",
|
|
|
|
|
"The name of the file "
|
|
|
|
|
"to save the image in, "
|
2015-07-11 07:10:37 -07:00
|
|
|
"in URI format and "
|
|
|
|
|
"UTF-8 encoding",
|
2007-04-25 07:23:05 -07:00
|
|
|
TRUE, FALSE, TRUE,
|
|
|
|
|
NULL,
|
2006-04-04 08:54:51 -07:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
|
gimp_param_spec_string ("raw-filename",
|
|
|
|
|
"Raw filename",
|
|
|
|
|
"The basename of the "
|
|
|
|
|
"file, in UTF-8",
|
2007-04-25 07:23:05 -07:00
|
|
|
FALSE, FALSE, TRUE,
|
|
|
|
|
NULL,
|
2006-04-04 08:54:51 -07:00
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-28 15:26:51 -07:00
|
|
|
gimp_plug_in_manager_add_procedure (gimp->plug_in_manager, proc);
|
2006-04-07 01:16:26 -07:00
|
|
|
g_object_unref (procedure);
|
2004-07-16 15:54:53 -07:00
|
|
|
|
2006-03-31 08:17:07 -08:00
|
|
|
/* gimp-xcf-load */
|
2014-07-08 12:09:35 -07:00
|
|
|
file = g_file_new_for_path ("gimp-xcf-load");
|
|
|
|
|
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
|
|
|
|
g_object_unref (file);
|
|
|
|
|
|
2006-04-06 03:01:30 -07:00
|
|
|
procedure->proc_type = GIMP_INTERNAL;
|
|
|
|
|
procedure->marshal_func = xcf_load_invoker;
|
|
|
|
|
|
|
|
|
|
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
2006-04-05 01:38:33 -07:00
|
|
|
proc->menu_label = g_strdup (N_("GIMP XCF image"));
|
2014-05-11 14:56:30 -07:00
|
|
|
gimp_plug_in_procedure_set_icon (proc, GIMP_ICON_TYPE_ICON_NAME,
|
2006-04-05 01:38:33 -07:00
|
|
|
(const guint8 *) "gimp-wilber",
|
|
|
|
|
strlen ("gimp-wilber") + 1);
|
|
|
|
|
gimp_plug_in_procedure_set_image_types (proc, NULL);
|
2006-04-06 03:01:30 -07:00
|
|
|
gimp_plug_in_procedure_set_file_proc (proc, "xcf", "",
|
|
|
|
|
"0,string,gimp\\040xcf\\040");
|
2017-05-04 14:22:37 -07:00
|
|
|
gimp_plug_in_procedure_set_mime_types (proc, "image/x-xcf");
|
2013-10-08 12:22:14 -07:00
|
|
|
gimp_plug_in_procedure_set_handles_uri (proc);
|
2006-04-06 03:01:30 -07:00
|
|
|
|
2006-04-07 03:04:27 -07:00
|
|
|
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-xcf-load");
|
2006-03-31 08:17:07 -08:00
|
|
|
gimp_procedure_set_static_strings (procedure,
|
|
|
|
|
"gimp-xcf-load",
|
2006-07-11 12:03:55 -07:00
|
|
|
"Loads file saved in the .xcf file format",
|
|
|
|
|
"The XCF file format has been designed "
|
2006-03-31 08:17:07 -08:00
|
|
|
"specifically for loading and saving "
|
2007-06-06 01:44:52 -07:00
|
|
|
"tiled and layered images in GIMP. "
|
2006-03-31 08:17:07 -08:00
|
|
|
"This procedure will load the specified "
|
|
|
|
|
"file.",
|
|
|
|
|
"Spencer Kimball & Peter Mattis",
|
|
|
|
|
"Spencer Kimball & Peter Mattis",
|
|
|
|
|
"1995-1996",
|
|
|
|
|
NULL);
|
|
|
|
|
|
2006-04-04 08:54:51 -07:00
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
|
gimp_param_spec_int32 ("dummy-param",
|
|
|
|
|
"Dummy Param",
|
|
|
|
|
"Dummy parameter",
|
|
|
|
|
G_MININT32, G_MAXINT32, 0,
|
|
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
|
gimp_param_spec_string ("filename",
|
|
|
|
|
"Filename",
|
|
|
|
|
"The name of the file "
|
|
|
|
|
"to load, in the "
|
|
|
|
|
"on-disk character "
|
|
|
|
|
"set and encoding",
|
2007-04-25 07:23:05 -07:00
|
|
|
TRUE, FALSE, TRUE,
|
|
|
|
|
NULL,
|
2006-04-04 08:54:51 -07:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
|
gimp_procedure_add_argument (procedure,
|
|
|
|
|
gimp_param_spec_string ("raw-filename",
|
|
|
|
|
"Raw filename",
|
|
|
|
|
"The basename of the "
|
|
|
|
|
"file, in UTF-8",
|
2007-04-25 07:23:05 -07:00
|
|
|
FALSE, FALSE, TRUE,
|
|
|
|
|
NULL,
|
2006-04-04 08:54:51 -07:00
|
|
|
GIMP_PARAM_READWRITE));
|
|
|
|
|
|
|
|
|
|
gimp_procedure_add_return_value (procedure,
|
|
|
|
|
gimp_param_spec_image_id ("image",
|
|
|
|
|
"Image",
|
|
|
|
|
"Output image",
|
2006-05-06 12:03:03 -07:00
|
|
|
gimp, FALSE,
|
2006-04-04 08:54:51 -07:00
|
|
|
GIMP_PARAM_READWRITE));
|
2006-04-28 15:26:51 -07:00
|
|
|
gimp_plug_in_manager_add_procedure (gimp->plug_in_manager, proc);
|
2006-04-07 01:16:26 -07:00
|
|
|
g_object_unref (procedure);
|
1997-11-24 14:05:25 -08:00
|
|
|
}
|
|
|
|
|
|
2001-07-03 11:38:56 -07:00
|
|
|
void
|
2001-10-18 10:27:36 -07:00
|
|
|
xcf_exit (Gimp *gimp)
|
2001-07-03 11:38:56 -07:00
|
|
|
{
|
2001-10-18 10:27:36 -07:00
|
|
|
g_return_if_fail (GIMP_IS_GIMP (gimp));
|
2001-07-03 11:38:56 -07:00
|
|
|
}
|
|
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
GimpImage *
|
|
|
|
|
xcf_load_stream (Gimp *gimp,
|
|
|
|
|
GInputStream *input,
|
|
|
|
|
GFile *input_file,
|
|
|
|
|
GimpProgress *progress,
|
|
|
|
|
GError **error)
|
|
|
|
|
{
|
|
|
|
|
XcfInfo info = { 0, };
|
|
|
|
|
const gchar *filename;
|
|
|
|
|
GimpImage *image = NULL;
|
|
|
|
|
gchar id[14];
|
|
|
|
|
gboolean success;
|
|
|
|
|
|
|
|
|
|
g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL);
|
|
|
|
|
g_return_val_if_fail (G_IS_INPUT_STREAM (input), NULL);
|
|
|
|
|
g_return_val_if_fail (input_file == NULL || G_IS_FILE (input_file), NULL);
|
|
|
|
|
g_return_val_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress), NULL);
|
|
|
|
|
g_return_val_if_fail (error == NULL || *error == NULL, NULL);
|
|
|
|
|
|
|
|
|
|
if (input_file)
|
|
|
|
|
filename = gimp_file_get_utf8_name (input_file);
|
|
|
|
|
else
|
|
|
|
|
filename = _("Memory Stream");
|
|
|
|
|
|
2017-03-23 06:17:56 -07:00
|
|
|
info.gimp = gimp;
|
|
|
|
|
info.input = input;
|
|
|
|
|
info.seekable = G_SEEKABLE (input);
|
|
|
|
|
info.bytes_per_offset = 4;
|
|
|
|
|
info.progress = progress;
|
|
|
|
|
info.file = input_file;
|
|
|
|
|
info.compression = COMPRESS_NONE;
|
2016-09-18 11:19:42 -07:00
|
|
|
|
|
|
|
|
if (progress)
|
|
|
|
|
gimp_progress_start (progress, FALSE, _("Opening '%s'"), filename);
|
|
|
|
|
|
|
|
|
|
success = TRUE;
|
|
|
|
|
|
2017-03-23 04:24:38 -07:00
|
|
|
xcf_read_int8 (&info, (guint8 *) id, 14);
|
2016-09-18 11:19:42 -07:00
|
|
|
|
|
|
|
|
if (! g_str_has_prefix (id, "gimp xcf "))
|
|
|
|
|
{
|
|
|
|
|
success = FALSE;
|
|
|
|
|
}
|
|
|
|
|
else if (strcmp (id + 9, "file") == 0)
|
|
|
|
|
{
|
|
|
|
|
info.file_version = 0;
|
|
|
|
|
}
|
2017-11-26 15:37:29 -08:00
|
|
|
else if (id[9] == 'v' &&
|
|
|
|
|
id[13] == '\0')
|
2016-09-18 11:19:42 -07:00
|
|
|
{
|
|
|
|
|
info.file_version = atoi (id + 10);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
success = FALSE;
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-23 06:17:56 -07:00
|
|
|
if (info.file_version >= 11)
|
|
|
|
|
info.bytes_per_offset = 8;
|
|
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
if (success)
|
|
|
|
|
{
|
|
|
|
|
if (info.file_version >= 0 &&
|
|
|
|
|
info.file_version < G_N_ELEMENTS (xcf_loaders))
|
|
|
|
|
{
|
|
|
|
|
image = (*(xcf_loaders[info.file_version])) (gimp, &info, error);
|
|
|
|
|
|
|
|
|
|
if (! image)
|
|
|
|
|
success = FALSE;
|
|
|
|
|
|
|
|
|
|
g_input_stream_close (info.input, NULL, NULL);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
|
|
|
|
|
_("XCF error: unsupported XCF file version %d "
|
|
|
|
|
"encountered"), info.file_version);
|
|
|
|
|
success = FALSE;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (progress)
|
|
|
|
|
gimp_progress_end (progress);
|
|
|
|
|
|
|
|
|
|
return image;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
|
xcf_save_stream (Gimp *gimp,
|
|
|
|
|
GimpImage *image,
|
|
|
|
|
GOutputStream *output,
|
|
|
|
|
GFile *output_file,
|
|
|
|
|
GimpProgress *progress,
|
|
|
|
|
GError **error)
|
|
|
|
|
{
|
2018-11-26 05:10:37 -08:00
|
|
|
XcfInfo info = { 0, };
|
|
|
|
|
const gchar *filename;
|
|
|
|
|
gboolean success = FALSE;
|
|
|
|
|
GError *my_error = NULL;
|
|
|
|
|
GCancellable *cancellable;
|
2016-09-18 11:19:42 -07:00
|
|
|
|
|
|
|
|
g_return_val_if_fail (GIMP_IS_GIMP (gimp), FALSE);
|
|
|
|
|
g_return_val_if_fail (GIMP_IS_IMAGE (image), FALSE);
|
|
|
|
|
g_return_val_if_fail (G_IS_OUTPUT_STREAM (output), FALSE);
|
|
|
|
|
g_return_val_if_fail (output_file == NULL || G_IS_FILE (output_file), FALSE);
|
|
|
|
|
g_return_val_if_fail (progress == NULL || GIMP_IS_PROGRESS (progress), FALSE);
|
|
|
|
|
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
|
|
|
|
|
|
|
|
|
|
if (output_file)
|
|
|
|
|
filename = gimp_file_get_utf8_name (output_file);
|
|
|
|
|
else
|
|
|
|
|
filename = _("Memory Stream");
|
|
|
|
|
|
2017-03-23 06:17:56 -07:00
|
|
|
info.gimp = gimp;
|
|
|
|
|
info.output = output;
|
|
|
|
|
info.seekable = G_SEEKABLE (output);
|
|
|
|
|
info.bytes_per_offset = 4;
|
|
|
|
|
info.progress = progress;
|
|
|
|
|
info.file = output_file;
|
2016-09-18 11:19:42 -07:00
|
|
|
|
2017-03-23 10:03:27 -07:00
|
|
|
if (gimp_image_get_xcf_compression (image))
|
2016-09-18 11:19:42 -07:00
|
|
|
info.compression = COMPRESS_ZLIB;
|
2017-03-23 10:03:27 -07:00
|
|
|
else
|
|
|
|
|
info.compression = COMPRESS_RLE;
|
2016-09-18 11:19:42 -07:00
|
|
|
|
|
|
|
|
info.file_version = gimp_image_get_xcf_version (image,
|
|
|
|
|
info.compression ==
|
|
|
|
|
COMPRESS_ZLIB,
|
2018-06-06 14:08:33 -07:00
|
|
|
NULL, NULL, NULL);
|
2016-09-18 11:19:42 -07:00
|
|
|
|
2017-03-23 06:17:56 -07:00
|
|
|
if (info.file_version >= 11)
|
|
|
|
|
info.bytes_per_offset = 8;
|
2017-03-23 03:44:41 -07:00
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
if (progress)
|
|
|
|
|
gimp_progress_start (progress, FALSE, _("Saving '%s'"), filename);
|
|
|
|
|
|
|
|
|
|
success = xcf_save_image (&info, image, &my_error);
|
|
|
|
|
|
2018-11-26 05:10:37 -08:00
|
|
|
cancellable = g_cancellable_new ();
|
2016-09-18 11:19:42 -07:00
|
|
|
if (success)
|
|
|
|
|
{
|
|
|
|
|
if (progress)
|
|
|
|
|
gimp_progress_set_text (progress, _("Closing '%s'"), filename);
|
|
|
|
|
}
|
2018-11-26 05:10:37 -08:00
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
/* When closing the stream, the image will be actually saved,
|
|
|
|
|
* unless we properly cancel it with a GCancellable.
|
|
|
|
|
* Not closing the stream is not an option either, as this will
|
|
|
|
|
* happen anyway when finalizing the output.
|
|
|
|
|
* So let's make sure now that we don't overwrite the XCF file
|
|
|
|
|
* when an error occurred.
|
|
|
|
|
*/
|
|
|
|
|
g_cancellable_cancel (cancellable);
|
|
|
|
|
}
|
|
|
|
|
success = g_output_stream_close (info.output, cancellable, &my_error);
|
|
|
|
|
g_object_unref (cancellable);
|
2016-09-18 11:19:42 -07:00
|
|
|
|
2017-07-10 07:34:41 -07:00
|
|
|
if (! success && my_error)
|
2016-09-18 11:19:42 -07:00
|
|
|
g_propagate_prefixed_error (error, my_error,
|
|
|
|
|
_("Error writing '%s': "), filename);
|
|
|
|
|
|
|
|
|
|
if (progress)
|
|
|
|
|
gimp_progress_end (progress);
|
|
|
|
|
|
|
|
|
|
return success;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* private functions */
|
|
|
|
|
|
2012-05-03 15:50:23 -07:00
|
|
|
static GimpValueArray *
|
|
|
|
|
xcf_load_invoker (GimpProcedure *procedure,
|
|
|
|
|
Gimp *gimp,
|
|
|
|
|
GimpContext *context,
|
|
|
|
|
GimpProgress *progress,
|
|
|
|
|
const GimpValueArray *args,
|
|
|
|
|
GError **error)
|
1997-11-24 14:05:25 -08:00
|
|
|
{
|
2012-05-03 15:50:23 -07:00
|
|
|
GimpValueArray *return_vals;
|
2016-09-18 11:19:42 -07:00
|
|
|
GimpImage *image = NULL;
|
2013-10-08 12:22:14 -07:00
|
|
|
const gchar *uri;
|
|
|
|
|
GFile *file;
|
2016-09-18 11:19:42 -07:00
|
|
|
GInputStream *input;
|
2013-10-08 12:22:14 -07:00
|
|
|
GError *my_error = NULL;
|
1997-11-24 14:05:25 -08:00
|
|
|
|
removed the gimp_busy boolean, check whether user_installation is needed
2001-07-10 Michael Natterer <mitch@gimp.org>
* app/app_procs.[ch]: removed the gimp_busy boolean, check whether
user_installation is needed here, not in user_install.c, parse
gtkrc an friends only if(!no_interface), create the Gimp object
before parsing gimp's rc files an pas it to the parse functions,
many other cleanups.
* app/appenums.h: added MessageHandlerType and StackTraceMode.
* app/appenv.h: removed MessageHandlerType, declare all global
variables from main.c (no more hidden global stuff please).
* app/errors.[ch]: added the fatal message func here (from main.c),
removed the StackTraceMode enum.
* app/gimprc.[ch]: renamed functions to gimprc_*(), pass a Gimp
pointer to some functions.
* app/gimpunit.c
* app/unitrc.h: ok, this is ugly: renamed all functions to
_gimp_unit_*() and made them public. The unit list is part
of the Gimp object now, so pass a Gimp* to all functions.
* app/libgimp_glue.[ch]: added EEKy wrappers for all gimp_unit_*()
functions which are used by widgets.
* app/main.c: cleaned up the global variables, removed the fatal
message handler, call app_init() directly, not via the
user_install stuff, misc. cleanups.
* app/user_install.[ch]: removed the check if user_installation is
needed (done by app_procs.c now).
* app/core/gimp.[ch]: added the user_unit list and the "busy"
boolean. Moved gimp_[set|unset]_busy() here. Added
gimp_initialize() which is called after unitrc and gimprc are
parsed.
* app/batch.c
* app/colormaps.c
* app/devices.c
* app/disp_callbacks.c
* app/gdisplay_ops.c
* app/gimphelp.c
* app/module_db.c
* app/nav_window.c
* app/plug_in.c
* app/core/gimpcontext.c
* app/core/gimpdatafiles.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage.c
* app/core/gimpparasite.c
* app/core/gimpparasitelist.h
* app/gui/file-open-dialog.c
* app/gui/gui.[ch]
* app/gui/info-dialog.c
* app/gui/info-window.c
* app/gui/preferences-dialog.c
* app/gui/session.c
* app/gui/tips-dialog.c
* app/gui/toolbox.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimptransformtool.c
* app/tools/tool_manager.c
* app/widgets/gimpcolorpanel.c
* app/widgets/gimpcursor.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* app/xcf/xcf.c
* tools/pdbgen/Makefile.am
* tools/pdbgen/app.pl
* tools/pdbgen/enums.pl
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/message.pdb
* tools/pdbgen/pdb/unit.pdb
* app/pdb/image_cmds.c
* app/pdb/message_cmds.c
* app/pdb/unit_cmds.c: changed accordingly, minor cleanups.
2001-07-10 12:16:16 -07:00
|
|
|
gimp_set_busy (gimp);
|
1999-01-10 15:36:29 -08:00
|
|
|
|
2015-07-13 13:43:22 -07:00
|
|
|
uri = g_value_get_string (gimp_value_array_index (args, 1));
|
|
|
|
|
file = g_file_new_for_uri (uri);
|
1997-11-24 14:05:25 -08:00
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
input = G_INPUT_STREAM (g_file_read (file, NULL, &my_error));
|
2001-07-03 11:38:56 -07:00
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
if (input)
|
1997-11-24 14:05:25 -08:00
|
|
|
{
|
2016-09-18 11:19:42 -07:00
|
|
|
image = xcf_load_stream (gimp, input, file, progress, error);
|
2001-07-03 11:38:56 -07:00
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
g_object_unref (input);
|
1997-11-24 14:05:25 -08:00
|
|
|
}
|
2003-11-14 07:33:40 -08:00
|
|
|
else
|
2006-07-11 12:03:55 -07:00
|
|
|
{
|
2013-10-08 12:22:14 -07:00
|
|
|
g_propagate_prefixed_error (error, my_error,
|
|
|
|
|
_("Could not open '%s' for reading: "),
|
2015-07-13 13:43:22 -07:00
|
|
|
gimp_file_get_utf8_name (file));
|
2006-07-11 12:03:55 -07:00
|
|
|
}
|
2003-09-10 03:40:57 -07:00
|
|
|
|
2013-10-08 12:22:14 -07:00
|
|
|
g_object_unref (file);
|
|
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
return_vals = gimp_procedure_get_return_values (procedure, image != NULL,
|
2008-08-16 06:57:57 -07:00
|
|
|
error ? *error : NULL);
|
1997-11-24 14:05:25 -08:00
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
if (image)
|
2012-05-03 15:50:23 -07:00
|
|
|
gimp_value_set_image (gimp_value_array_index (return_vals, 1), image);
|
1997-11-24 14:05:25 -08:00
|
|
|
|
removed the gimp_busy boolean, check whether user_installation is needed
2001-07-10 Michael Natterer <mitch@gimp.org>
* app/app_procs.[ch]: removed the gimp_busy boolean, check whether
user_installation is needed here, not in user_install.c, parse
gtkrc an friends only if(!no_interface), create the Gimp object
before parsing gimp's rc files an pas it to the parse functions,
many other cleanups.
* app/appenums.h: added MessageHandlerType and StackTraceMode.
* app/appenv.h: removed MessageHandlerType, declare all global
variables from main.c (no more hidden global stuff please).
* app/errors.[ch]: added the fatal message func here (from main.c),
removed the StackTraceMode enum.
* app/gimprc.[ch]: renamed functions to gimprc_*(), pass a Gimp
pointer to some functions.
* app/gimpunit.c
* app/unitrc.h: ok, this is ugly: renamed all functions to
_gimp_unit_*() and made them public. The unit list is part
of the Gimp object now, so pass a Gimp* to all functions.
* app/libgimp_glue.[ch]: added EEKy wrappers for all gimp_unit_*()
functions which are used by widgets.
* app/main.c: cleaned up the global variables, removed the fatal
message handler, call app_init() directly, not via the
user_install stuff, misc. cleanups.
* app/user_install.[ch]: removed the check if user_installation is
needed (done by app_procs.c now).
* app/core/gimp.[ch]: added the user_unit list and the "busy"
boolean. Moved gimp_[set|unset]_busy() here. Added
gimp_initialize() which is called after unitrc and gimprc are
parsed.
* app/batch.c
* app/colormaps.c
* app/devices.c
* app/disp_callbacks.c
* app/gdisplay_ops.c
* app/gimphelp.c
* app/module_db.c
* app/nav_window.c
* app/plug_in.c
* app/core/gimpcontext.c
* app/core/gimpdatafiles.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage.c
* app/core/gimpparasite.c
* app/core/gimpparasitelist.h
* app/gui/file-open-dialog.c
* app/gui/gui.[ch]
* app/gui/info-dialog.c
* app/gui/info-window.c
* app/gui/preferences-dialog.c
* app/gui/session.c
* app/gui/tips-dialog.c
* app/gui/toolbox.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimptransformtool.c
* app/tools/tool_manager.c
* app/widgets/gimpcolorpanel.c
* app/widgets/gimpcursor.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* app/xcf/xcf.c
* tools/pdbgen/Makefile.am
* tools/pdbgen/app.pl
* tools/pdbgen/enums.pl
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/message.pdb
* tools/pdbgen/pdb/unit.pdb
* app/pdb/image_cmds.c
* app/pdb/message_cmds.c
* app/pdb/unit_cmds.c: changed accordingly, minor cleanups.
2001-07-10 12:16:16 -07:00
|
|
|
gimp_unset_busy (gimp);
|
1999-01-10 15:36:29 -08:00
|
|
|
|
2006-03-27 13:09:32 -08:00
|
|
|
return return_vals;
|
1997-11-24 14:05:25 -08:00
|
|
|
}
|
|
|
|
|
|
2012-05-03 15:50:23 -07:00
|
|
|
static GimpValueArray *
|
|
|
|
|
xcf_save_invoker (GimpProcedure *procedure,
|
|
|
|
|
Gimp *gimp,
|
|
|
|
|
GimpContext *context,
|
|
|
|
|
GimpProgress *progress,
|
|
|
|
|
const GimpValueArray *args,
|
|
|
|
|
GError **error)
|
1997-11-24 14:05:25 -08:00
|
|
|
{
|
2012-05-03 15:50:23 -07:00
|
|
|
GimpValueArray *return_vals;
|
|
|
|
|
GimpImage *image;
|
2013-10-08 12:22:14 -07:00
|
|
|
const gchar *uri;
|
|
|
|
|
GFile *file;
|
2016-09-18 11:19:42 -07:00
|
|
|
GOutputStream *output;
|
2013-10-08 12:22:14 -07:00
|
|
|
gboolean success = FALSE;
|
|
|
|
|
GError *my_error = NULL;
|
1997-11-24 14:05:25 -08:00
|
|
|
|
removed the gimp_busy boolean, check whether user_installation is needed
2001-07-10 Michael Natterer <mitch@gimp.org>
* app/app_procs.[ch]: removed the gimp_busy boolean, check whether
user_installation is needed here, not in user_install.c, parse
gtkrc an friends only if(!no_interface), create the Gimp object
before parsing gimp's rc files an pas it to the parse functions,
many other cleanups.
* app/appenums.h: added MessageHandlerType and StackTraceMode.
* app/appenv.h: removed MessageHandlerType, declare all global
variables from main.c (no more hidden global stuff please).
* app/errors.[ch]: added the fatal message func here (from main.c),
removed the StackTraceMode enum.
* app/gimprc.[ch]: renamed functions to gimprc_*(), pass a Gimp
pointer to some functions.
* app/gimpunit.c
* app/unitrc.h: ok, this is ugly: renamed all functions to
_gimp_unit_*() and made them public. The unit list is part
of the Gimp object now, so pass a Gimp* to all functions.
* app/libgimp_glue.[ch]: added EEKy wrappers for all gimp_unit_*()
functions which are used by widgets.
* app/main.c: cleaned up the global variables, removed the fatal
message handler, call app_init() directly, not via the
user_install stuff, misc. cleanups.
* app/user_install.[ch]: removed the check if user_installation is
needed (done by app_procs.c now).
* app/core/gimp.[ch]: added the user_unit list and the "busy"
boolean. Moved gimp_[set|unset]_busy() here. Added
gimp_initialize() which is called after unitrc and gimprc are
parsed.
* app/batch.c
* app/colormaps.c
* app/devices.c
* app/disp_callbacks.c
* app/gdisplay_ops.c
* app/gimphelp.c
* app/module_db.c
* app/nav_window.c
* app/plug_in.c
* app/core/gimpcontext.c
* app/core/gimpdatafiles.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage.c
* app/core/gimpparasite.c
* app/core/gimpparasitelist.h
* app/gui/file-open-dialog.c
* app/gui/gui.[ch]
* app/gui/info-dialog.c
* app/gui/info-window.c
* app/gui/preferences-dialog.c
* app/gui/session.c
* app/gui/tips-dialog.c
* app/gui/toolbox.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimptransformtool.c
* app/tools/tool_manager.c
* app/widgets/gimpcolorpanel.c
* app/widgets/gimpcursor.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* app/xcf/xcf.c
* tools/pdbgen/Makefile.am
* tools/pdbgen/app.pl
* tools/pdbgen/enums.pl
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/message.pdb
* tools/pdbgen/pdb/unit.pdb
* app/pdb/image_cmds.c
* app/pdb/message_cmds.c
* app/pdb/unit_cmds.c: changed accordingly, minor cleanups.
2001-07-10 12:16:16 -07:00
|
|
|
gimp_set_busy (gimp);
|
1999-01-10 15:36:29 -08:00
|
|
|
|
2015-07-13 13:43:22 -07:00
|
|
|
image = gimp_value_get_image (gimp_value_array_index (args, 1), gimp);
|
|
|
|
|
uri = g_value_get_string (gimp_value_array_index (args, 3));
|
|
|
|
|
file = g_file_new_for_uri (uri);
|
2013-10-08 12:22:14 -07:00
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
output = G_OUTPUT_STREAM (g_file_replace (file,
|
|
|
|
|
NULL, FALSE, G_FILE_CREATE_NONE,
|
|
|
|
|
NULL, &my_error));
|
2013-10-08 12:22:14 -07:00
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
if (output)
|
1997-11-24 14:05:25 -08:00
|
|
|
{
|
2016-09-18 11:19:42 -07:00
|
|
|
success = xcf_save_stream (gimp, image, output, file, progress, error);
|
2014-10-03 17:26:36 -07:00
|
|
|
|
2016-09-18 11:19:42 -07:00
|
|
|
g_object_unref (output);
|
1997-11-24 14:05:25 -08:00
|
|
|
}
|
2015-07-11 07:28:19 -07:00
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
g_propagate_prefixed_error (error, my_error,
|
|
|
|
|
_("Error creating '%s': "),
|
2015-07-13 13:43:22 -07:00
|
|
|
gimp_file_get_utf8_name (file));
|
2015-07-11 07:28:19 -07:00
|
|
|
}
|
1997-11-24 14:05:25 -08:00
|
|
|
|
2013-10-08 12:22:14 -07:00
|
|
|
g_object_unref (file);
|
|
|
|
|
|
2008-08-16 06:57:57 -07:00
|
|
|
return_vals = gimp_procedure_get_return_values (procedure, success,
|
|
|
|
|
error ? *error : NULL);
|
1997-11-24 14:05:25 -08:00
|
|
|
|
removed the gimp_busy boolean, check whether user_installation is needed
2001-07-10 Michael Natterer <mitch@gimp.org>
* app/app_procs.[ch]: removed the gimp_busy boolean, check whether
user_installation is needed here, not in user_install.c, parse
gtkrc an friends only if(!no_interface), create the Gimp object
before parsing gimp's rc files an pas it to the parse functions,
many other cleanups.
* app/appenums.h: added MessageHandlerType and StackTraceMode.
* app/appenv.h: removed MessageHandlerType, declare all global
variables from main.c (no more hidden global stuff please).
* app/errors.[ch]: added the fatal message func here (from main.c),
removed the StackTraceMode enum.
* app/gimprc.[ch]: renamed functions to gimprc_*(), pass a Gimp
pointer to some functions.
* app/gimpunit.c
* app/unitrc.h: ok, this is ugly: renamed all functions to
_gimp_unit_*() and made them public. The unit list is part
of the Gimp object now, so pass a Gimp* to all functions.
* app/libgimp_glue.[ch]: added EEKy wrappers for all gimp_unit_*()
functions which are used by widgets.
* app/main.c: cleaned up the global variables, removed the fatal
message handler, call app_init() directly, not via the
user_install stuff, misc. cleanups.
* app/user_install.[ch]: removed the check if user_installation is
needed (done by app_procs.c now).
* app/core/gimp.[ch]: added the user_unit list and the "busy"
boolean. Moved gimp_[set|unset]_busy() here. Added
gimp_initialize() which is called after unitrc and gimprc are
parsed.
* app/batch.c
* app/colormaps.c
* app/devices.c
* app/disp_callbacks.c
* app/gdisplay_ops.c
* app/gimphelp.c
* app/module_db.c
* app/nav_window.c
* app/plug_in.c
* app/core/gimpcontext.c
* app/core/gimpdatafiles.c
* app/core/gimpimage-convert.c
* app/core/gimpimage-duplicate.c
* app/core/gimpimage.c
* app/core/gimpparasite.c
* app/core/gimpparasitelist.h
* app/gui/file-open-dialog.c
* app/gui/gui.[ch]
* app/gui/info-dialog.c
* app/gui/info-window.c
* app/gui/preferences-dialog.c
* app/gui/session.c
* app/gui/tips-dialog.c
* app/gui/toolbox.c
* app/tools/gimpblendtool.c
* app/tools/gimpbucketfilltool.c
* app/tools/gimpcolorpickertool.c
* app/tools/gimpfuzzyselecttool.c
* app/tools/gimptransformtool.c
* app/tools/tool_manager.c
* app/widgets/gimpcolorpanel.c
* app/widgets/gimpcursor.c
* app/xcf/xcf-load.c
* app/xcf/xcf-save.c
* app/xcf/xcf.c
* tools/pdbgen/Makefile.am
* tools/pdbgen/app.pl
* tools/pdbgen/enums.pl
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/message.pdb
* tools/pdbgen/pdb/unit.pdb
* app/pdb/image_cmds.c
* app/pdb/message_cmds.c
* app/pdb/unit_cmds.c: changed accordingly, minor cleanups.
2001-07-10 12:16:16 -07:00
|
|
|
gimp_unset_busy (gimp);
|
1999-01-10 15:36:29 -08:00
|
|
|
|
2006-03-27 13:09:32 -08:00
|
|
|
return return_vals;
|
1997-11-24 14:05:25 -08:00
|
|
|
}
|