mirror of https://github.com/GNOME/gimp.git
libgimp, plug-ins: rename to gimp_save_procedure_new().
Also the mimetype is already set by gimp_file_procedure_set_mime_types() so transform the mimetype argument into an export_metadata argument.
This commit is contained in:
parent
06bd1f1289
commit
fcc810d7d3
|
@ -824,7 +824,6 @@ EXPORTS
|
|||
gimp_save_procedure_get_support_xmp
|
||||
gimp_save_procedure_get_type
|
||||
gimp_save_procedure_new
|
||||
gimp_save_procedure_new2
|
||||
gimp_save_procedure_set_support_comment
|
||||
gimp_save_procedure_set_support_exif
|
||||
gimp_save_procedure_set_support_iptc
|
||||
|
|
|
@ -42,7 +42,6 @@ enum
|
|||
struct _GimpSaveProcedurePrivate
|
||||
{
|
||||
GimpRunSaveFunc run_func;
|
||||
GimpRunSaveFunc2 run_func2;
|
||||
gpointer run_data;
|
||||
GDestroyNotify run_data_destroy;
|
||||
|
||||
|
@ -53,7 +52,7 @@ struct _GimpSaveProcedurePrivate
|
|||
gboolean supports_thumbnail;
|
||||
gboolean supports_comment;
|
||||
|
||||
gchar *mimetype;
|
||||
gboolean export_metadata;
|
||||
};
|
||||
|
||||
|
||||
|
@ -189,7 +188,7 @@ gimp_save_procedure_init (GimpSaveProcedure *procedure)
|
|||
{
|
||||
procedure->priv = gimp_save_procedure_get_instance_private (procedure);
|
||||
|
||||
procedure->priv->mimetype = NULL;
|
||||
procedure->priv->export_metadata = FALSE;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -231,8 +230,6 @@ gimp_save_procedure_finalize (GObject *object)
|
|||
if (procedure->priv->run_data_destroy)
|
||||
procedure->priv->run_data_destroy (procedure->priv->run_data);
|
||||
|
||||
g_free (procedure->priv->mimetype);
|
||||
|
||||
G_OBJECT_CLASS (parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
|
@ -340,15 +337,18 @@ static GimpValueArray *
|
|||
gimp_save_procedure_run (GimpProcedure *procedure,
|
||||
const GimpValueArray *args)
|
||||
{
|
||||
GimpSaveProcedure *save_proc = GIMP_SAVE_PROCEDURE (procedure);
|
||||
GimpValueArray *remaining;
|
||||
GimpValueArray *return_values;
|
||||
GimpRunMode run_mode;
|
||||
GimpImage *image;
|
||||
GimpDrawable **drawables;
|
||||
GFile *file;
|
||||
gint n_drawables;
|
||||
gint i;
|
||||
GimpSaveProcedure *save_proc = GIMP_SAVE_PROCEDURE (procedure);
|
||||
GimpValueArray *remaining;
|
||||
GimpValueArray *return_values;
|
||||
GimpProcedureConfig *config;
|
||||
GimpRunMode run_mode;
|
||||
GimpImage *image;
|
||||
GimpDrawable **drawables;
|
||||
GFile *file;
|
||||
gint n_drawables;
|
||||
GimpMetadata *metadata;
|
||||
gchar *mimetype = NULL;
|
||||
GimpPDBStatusType status = GIMP_PDB_EXECUTION_ERROR;
|
||||
|
||||
run_mode = GIMP_VALUES_GET_ENUM (args, 0);
|
||||
image = GIMP_VALUES_GET_IMAGE (args, 1);
|
||||
|
@ -358,55 +358,66 @@ gimp_save_procedure_run (GimpProcedure *procedure,
|
|||
|
||||
remaining = gimp_value_array_new (gimp_value_array_length (args) - ARG_OFFSET);
|
||||
|
||||
for (i = ARG_OFFSET; i < gimp_value_array_length (args); i++)
|
||||
for (gint i = ARG_OFFSET; i < gimp_value_array_length (args); i++)
|
||||
{
|
||||
GValue *value = gimp_value_array_index (args, i);
|
||||
|
||||
gimp_value_array_append (remaining, value);
|
||||
}
|
||||
|
||||
if (save_proc->priv->run_func2)
|
||||
config = gimp_procedure_create_config (procedure);
|
||||
if (save_proc->priv->export_metadata)
|
||||
{
|
||||
GimpProcedureConfig *config;
|
||||
GimpMetadata *metadata;
|
||||
GimpPDBStatusType status = GIMP_PDB_EXECUTION_ERROR;
|
||||
mimetype = (gchar *) gimp_file_procedure_get_mime_types (GIMP_FILE_PROCEDURE (procedure));
|
||||
if (mimetype == NULL)
|
||||
{
|
||||
g_printerr ("%s: ERROR: the GimpSaveProcedureConfig object was created "
|
||||
"with export_metadata but you didn't set any MimeType with gimp_file_procedure_set_mime_types()!\n",
|
||||
G_STRFUNC);
|
||||
}
|
||||
else
|
||||
{
|
||||
char *delim;
|
||||
|
||||
config = gimp_procedure_create_config (procedure);
|
||||
metadata = gimp_procedure_config_begin_export (config, image, run_mode, remaining,
|
||||
save_proc->priv->mimetype);
|
||||
|
||||
return_values = save_proc->priv->run_func2 (procedure, run_mode,
|
||||
image, n_drawables, drawables,
|
||||
file, metadata, config,
|
||||
save_proc->priv->run_data);
|
||||
|
||||
if (return_values != NULL &&
|
||||
gimp_value_array_length (return_values) > 0 &&
|
||||
G_VALUE_HOLDS_ENUM (gimp_value_array_index (return_values, 0)))
|
||||
status = GIMP_VALUES_GET_ENUM (return_values, 0);
|
||||
|
||||
gimp_procedure_config_end_export (config, image, file, status);
|
||||
|
||||
/* This is debug printing to help plug-in developers figure out best
|
||||
* practices.
|
||||
*/
|
||||
if (G_OBJECT (config)->ref_count > 1)
|
||||
g_printerr ("%s: ERROR: the GimpSaveProcedureConfig object was refed "
|
||||
"by plug-in, it MUST NOT do that!\n", G_STRFUNC);
|
||||
|
||||
g_object_unref (config);
|
||||
}
|
||||
else
|
||||
{
|
||||
return_values = save_proc->priv->run_func (procedure,
|
||||
run_mode,
|
||||
image,
|
||||
n_drawables,
|
||||
drawables,
|
||||
file,
|
||||
remaining,
|
||||
save_proc->priv->run_data);
|
||||
mimetype = g_strdup (mimetype);
|
||||
mimetype = g_strstrip (mimetype);
|
||||
delim = strstr (mimetype, ",");
|
||||
if (delim)
|
||||
*delim = '\0';
|
||||
/* Though docs only writes about the list being comma-separated, our
|
||||
* code apparently also split by spaces.
|
||||
*/
|
||||
delim = strstr (mimetype, " ");
|
||||
if (delim)
|
||||
*delim = '\0';
|
||||
delim = strstr (mimetype, "\t");
|
||||
if (delim)
|
||||
*delim = '\0';
|
||||
}
|
||||
}
|
||||
metadata = gimp_procedure_config_begin_export (config, image, run_mode, remaining, mimetype);
|
||||
g_free (mimetype);
|
||||
|
||||
return_values = save_proc->priv->run_func (procedure, run_mode,
|
||||
image, n_drawables, drawables,
|
||||
file, metadata, config,
|
||||
save_proc->priv->run_data);
|
||||
|
||||
if (return_values != NULL &&
|
||||
gimp_value_array_length (return_values) > 0 &&
|
||||
G_VALUE_HOLDS_ENUM (gimp_value_array_index (return_values, 0)))
|
||||
status = GIMP_VALUES_GET_ENUM (return_values, 0);
|
||||
|
||||
gimp_procedure_config_end_export (config, image, file, status);
|
||||
|
||||
/* This is debug printing to help plug-in developers figure out best
|
||||
* practices.
|
||||
*/
|
||||
if (G_OBJECT (config)->ref_count > 1)
|
||||
g_printerr ("%s: ERROR: the GimpSaveProcedureConfig object was refed "
|
||||
"by plug-in, it MUST NOT do that!\n", G_STRFUNC);
|
||||
|
||||
g_object_unref (config);
|
||||
gimp_value_array_unref (remaining);
|
||||
|
||||
return return_values;
|
||||
|
@ -502,6 +513,7 @@ gimp_save_procedure_add_metadata (GimpSaveProcedure *save_procedure)
|
|||
* @plug_in: a #GimpPlugIn.
|
||||
* @name: the new procedure's name.
|
||||
* @proc_type: the new procedure's #GimpPDBProcType.
|
||||
* @export_metadata: whether GIMP should handle metadata exporting.
|
||||
* @run_func: the run function for the new procedure.
|
||||
* @run_data: user data passed to @run_func.
|
||||
* @run_data_destroy: (nullable): free function for @run_data, or %NULL.
|
||||
|
@ -523,17 +535,22 @@ gimp_save_procedure_add_metadata (GimpSaveProcedure *save_procedure)
|
|||
*
|
||||
* When invoked via gimp_procedure_run(), it unpacks these standard
|
||||
* arguments and calls @run_func which is a #GimpRunSaveFunc. The
|
||||
* "args" #GimpValueArray of #GimpRunSaveFunc only contains
|
||||
* additionally added arguments.
|
||||
* #GimpProcedureConfig of #GimpRunSaveFunc only contains additionally added
|
||||
* arguments.
|
||||
*
|
||||
* If @export_metadata is TRUE, then the class will also handle the metadata
|
||||
* export if the format is supported by our backend. This requires you to also
|
||||
* set appropriate MimeType with gimp_file_procedure_set_mime_types().
|
||||
*
|
||||
* Returns: a new #GimpProcedure.
|
||||
*
|
||||
* Since: 3.0
|
||||
**/
|
||||
GimpProcedure *
|
||||
GimpProcedure *
|
||||
gimp_save_procedure_new (GimpPlugIn *plug_in,
|
||||
const gchar *name,
|
||||
GimpPDBProcType proc_type,
|
||||
gboolean export_metadata,
|
||||
GimpRunSaveFunc run_func,
|
||||
gpointer run_data,
|
||||
GDestroyNotify run_data_destroy)
|
||||
|
@ -553,74 +570,7 @@ gimp_save_procedure_new (GimpPlugIn *plug_in,
|
|||
NULL);
|
||||
|
||||
procedure->priv->run_func = run_func;
|
||||
procedure->priv->run_data = run_data;
|
||||
procedure->priv->run_data_destroy = run_data_destroy;
|
||||
|
||||
return GIMP_PROCEDURE (procedure);
|
||||
}
|
||||
|
||||
/**
|
||||
* gimp_save_procedure_new:
|
||||
* @plug_in: a #GimpPlugIn.
|
||||
* @name: the new procedure's name.
|
||||
* @proc_type: the new procedure's #GimpPDBProcType.
|
||||
* @mimetype: the exported format's MimeType.
|
||||
* @run_func: the run function for the new procedure.
|
||||
* @run_data: user data passed to @run_func.
|
||||
* @run_data_destroy: (nullable): free function for @run_data, or %NULL.
|
||||
*
|
||||
* Creates a new save procedure named @name which will call @run_func
|
||||
* when invoked.
|
||||
*
|
||||
* See gimp_procedure_new() for information about @proc_type.
|
||||
*
|
||||
* #GimpSaveProcedure is a #GimpProcedure subclass that makes it easier
|
||||
* to write file save procedures.
|
||||
*
|
||||
* It automatically adds the standard
|
||||
*
|
||||
* (#GimpRunMode, #GimpImage, #GimpDrawable, #GFile)
|
||||
*
|
||||
* arguments of a save procedure. It is possible to add additional
|
||||
* arguments.
|
||||
*
|
||||
* When invoked via gimp_procedure_run(), it unpacks these standard
|
||||
* arguments and calls @run_func which is a #GimpRunSaveFunc. The
|
||||
* "args" #GimpValueArray of #GimpRunSaveFunc only contains
|
||||
* additionally added arguments.
|
||||
*
|
||||
* If @mimetype is non-%NULL, then the class will also handle the metadata
|
||||
* export if the format is supported by our backend.
|
||||
*
|
||||
* Returns: a new #GimpProcedure.
|
||||
*
|
||||
* Since: 3.0
|
||||
**/
|
||||
GimpProcedure *
|
||||
gimp_save_procedure_new2 (GimpPlugIn *plug_in,
|
||||
const gchar *name,
|
||||
GimpPDBProcType proc_type,
|
||||
const gchar *mimetype,
|
||||
GimpRunSaveFunc2 run_func,
|
||||
gpointer run_data,
|
||||
GDestroyNotify run_data_destroy)
|
||||
{
|
||||
GimpSaveProcedure *procedure;
|
||||
|
||||
g_return_val_if_fail (GIMP_IS_PLUG_IN (plug_in), NULL);
|
||||
g_return_val_if_fail (gimp_is_canonical_identifier (name), NULL);
|
||||
g_return_val_if_fail (proc_type != GIMP_PDB_PROC_TYPE_INTERNAL, NULL);
|
||||
g_return_val_if_fail (proc_type != GIMP_PDB_PROC_TYPE_EXTENSION, NULL);
|
||||
g_return_val_if_fail (run_func != NULL, NULL);
|
||||
|
||||
procedure = g_object_new (GIMP_TYPE_SAVE_PROCEDURE,
|
||||
"plug-in", plug_in,
|
||||
"name", name,
|
||||
"procedure-type", proc_type,
|
||||
NULL);
|
||||
|
||||
procedure->priv->run_func2 = run_func;
|
||||
procedure->priv->mimetype = g_strdup (mimetype);
|
||||
procedure->priv->export_metadata = export_metadata;
|
||||
procedure->priv->run_data = run_data;
|
||||
procedure->priv->run_data_destroy = run_data_destroy;
|
||||
|
||||
|
|
|
@ -37,34 +37,9 @@ G_BEGIN_DECLS
|
|||
* @n_drawables: the number of drawables to save.
|
||||
* @drawables: (array length=n_drawables): the drawables to save.
|
||||
* @file: the #GFile to save to.
|
||||
* @args: the @procedure's remaining arguments.
|
||||
* @run_data: (closure): the run_data given in gimp_save_procedure_new().
|
||||
*
|
||||
* The save function is run during the lifetime of the GIMP session,
|
||||
* each time a plug-in save procedure is called.
|
||||
*
|
||||
* Returns: (transfer full): the @procedure's return values.
|
||||
*
|
||||
* Since: 3.0
|
||||
**/
|
||||
typedef GimpValueArray * (* GimpRunSaveFunc) (GimpProcedure *procedure,
|
||||
GimpRunMode run_mode,
|
||||
GimpImage *image,
|
||||
gint n_drawables,
|
||||
GimpDrawable **drawables,
|
||||
GFile *file,
|
||||
const GimpValueArray *args,
|
||||
gpointer run_data);
|
||||
/**
|
||||
* GimpRunSaveFunc2:
|
||||
* @procedure: the #GimpProcedure that runs.
|
||||
* @run_mode: the #GimpRunMode.
|
||||
* @image: the image to save.
|
||||
* @n_drawables: the number of drawables to save.
|
||||
* @drawables: (array length=n_drawables): the drawables to save.
|
||||
* @metadata: metadata object prepared for the mimetype passed in
|
||||
* gimp_save_procedure_new().
|
||||
* @file: the #GFile to save to.
|
||||
* gimp_file_procedure_set_mime_types() if export_metadata
|
||||
* argument was set in gimp_save_procedure_new().
|
||||
* @config: the @procedure's remaining arguments.
|
||||
* @run_data: (closure): the run_data given in gimp_save_procedure_new().
|
||||
*
|
||||
|
@ -80,15 +55,15 @@ typedef GimpValueArray * (* GimpRunSaveFunc) (GimpProcedure *procedure,
|
|||
*
|
||||
* Since: 3.0
|
||||
**/
|
||||
typedef GimpValueArray * (* GimpRunSaveFunc2) (GimpProcedure *procedure,
|
||||
GimpRunMode run_mode,
|
||||
GimpImage *image,
|
||||
gint n_drawables,
|
||||
GimpDrawable **drawables,
|
||||
GFile *file,
|
||||
GimpMetadata *metadata,
|
||||
GimpProcedureConfig *config,
|
||||
gpointer run_data);
|
||||
typedef GimpValueArray * (* GimpRunSaveFunc) (GimpProcedure *procedure,
|
||||
GimpRunMode run_mode,
|
||||
GimpImage *image,
|
||||
gint n_drawables,
|
||||
GimpDrawable **drawables,
|
||||
GFile *file,
|
||||
GimpMetadata *metadata,
|
||||
GimpProcedureConfig *config,
|
||||
gpointer run_data);
|
||||
|
||||
|
||||
#define GIMP_TYPE_SAVE_PROCEDURE (gimp_save_procedure_get_type ())
|
||||
|
@ -116,21 +91,15 @@ struct _GimpSaveProcedureClass
|
|||
};
|
||||
|
||||
|
||||
GType gimp_save_procedure_get_type (void) G_GNUC_CONST;
|
||||
GType gimp_save_procedure_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GimpProcedure * gimp_save_procedure_new (GimpPlugIn *plug_in,
|
||||
const gchar *name,
|
||||
GimpPDBProcType proc_type,
|
||||
GimpRunSaveFunc run_func,
|
||||
gpointer run_data,
|
||||
GDestroyNotify run_data_destroy);
|
||||
GimpProcedure * gimp_save_procedure_new2 (GimpPlugIn *plug_in,
|
||||
const gchar *name,
|
||||
GimpPDBProcType proc_type,
|
||||
const gchar *mimetype,
|
||||
GimpRunSaveFunc2 run_func,
|
||||
gpointer run_data,
|
||||
GDestroyNotify run_data_destroy);
|
||||
GimpProcedure * gimp_save_procedure_new (GimpPlugIn *plug_in,
|
||||
const gchar *name,
|
||||
GimpPDBProcType proc_type,
|
||||
gboolean export_metadata,
|
||||
GimpRunSaveFunc run_func,
|
||||
gpointer run_data,
|
||||
GDestroyNotify run_data_destroy);
|
||||
|
||||
void gimp_save_procedure_set_support_exif (GimpSaveProcedure *procedure,
|
||||
gboolean supports);
|
||||
|
|
|
@ -123,9 +123,9 @@ ascii_create_procedure (GimpPlugIn *plug_in,
|
|||
{
|
||||
gint i;
|
||||
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, ascii_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, ascii_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -164,9 +164,9 @@ cel_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, cel_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, cel_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*, INDEXED*");
|
||||
|
||||
|
|
|
@ -329,10 +329,10 @@ compressor_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, compressor->save_proc))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, compressor_save,
|
||||
(gpointer) compressor, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, compressor_save,
|
||||
(gpointer) compressor, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*, GRAY*, INDEXED*");
|
||||
|
||||
|
|
|
@ -114,9 +114,9 @@ csource_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, csource_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, csource_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -196,9 +196,9 @@ dicom_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, dicom_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, dicom_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY");
|
||||
|
||||
|
|
|
@ -117,9 +117,9 @@ gbr_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, gbr_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, gbr_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -213,9 +213,9 @@ goat_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! g_strcmp0 (name, format->save_proc))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, goat_save,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, goat_save,
|
||||
(gpointer) format, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -141,9 +141,9 @@ gif_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, gif_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, gif_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED*, GRAY*");
|
||||
|
||||
|
|
|
@ -148,9 +148,9 @@ gih_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, gih_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, gih_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*, GRAY*");
|
||||
|
||||
|
|
|
@ -109,9 +109,9 @@ header_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, header_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, header_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, RGB");
|
||||
|
||||
|
|
|
@ -223,9 +223,9 @@ heif_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, heif_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, heif_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*");
|
||||
|
||||
|
@ -332,9 +332,9 @@ heif_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC_AV1))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, heif_av1_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, heif_av1_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*");
|
||||
|
||||
|
|
|
@ -145,9 +145,9 @@ html_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, html_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, html_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -158,9 +158,9 @@ jpegxl_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, jpegxl_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, jpegxl_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*, GRAY*");
|
||||
|
||||
|
|
|
@ -246,9 +246,9 @@ mng_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, mng_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, mng_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -104,9 +104,9 @@ pat_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, pat_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, pat_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -263,9 +263,9 @@ pcx_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, pcx_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, pcx_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, RGB, GRAY");
|
||||
|
||||
|
|
|
@ -306,9 +306,9 @@ pdf_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
"application/pdf", pdf_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
TRUE, pdf_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -191,9 +191,9 @@ pix_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, pix_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, pix_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -202,9 +202,9 @@ png_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
"image/png", png_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
TRUE, png_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -338,11 +338,11 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PNM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, pnm_save,
|
||||
GINT_TO_POINTER (FILE_TYPE_PNM),
|
||||
NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, pnm_save,
|
||||
GINT_TO_POINTER (FILE_TYPE_PNM),
|
||||
NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
||||
|
@ -375,11 +375,11 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PBM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, pnm_save,
|
||||
GINT_TO_POINTER (FILE_TYPE_PBM),
|
||||
NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, pnm_save,
|
||||
GINT_TO_POINTER (FILE_TYPE_PBM),
|
||||
NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
gimp_file_procedure_set_format_name (GIMP_FILE_PROCEDURE (procedure),
|
||||
|
@ -411,11 +411,11 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PGM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, pnm_save,
|
||||
GINT_TO_POINTER (FILE_TYPE_PGM),
|
||||
NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, pnm_save,
|
||||
GINT_TO_POINTER (FILE_TYPE_PGM),
|
||||
NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
||||
|
@ -447,11 +447,11 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PPM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, pnm_save,
|
||||
GINT_TO_POINTER (FILE_TYPE_PPM),
|
||||
NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, pnm_save,
|
||||
GINT_TO_POINTER (FILE_TYPE_PPM),
|
||||
NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
||||
|
@ -483,9 +483,9 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PAM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, pnm_save,
|
||||
FALSE, pnm_save,
|
||||
GINT_TO_POINTER (FILE_TYPE_PAM),
|
||||
NULL);
|
||||
|
||||
|
@ -512,9 +512,9 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PFM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, pnm_save,
|
||||
FALSE, pnm_save,
|
||||
GINT_TO_POINTER (FILE_TYPE_PFM),
|
||||
NULL);
|
||||
|
||||
|
|
|
@ -441,9 +441,9 @@ ps_create_procedure (GimpPlugIn *plug_in,
|
|||
else if (! strcmp (name, SAVE_PS_PROC) ||
|
||||
! strcmp (name, SAVE_EPS_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, ps_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, ps_save, NULL, NULL);
|
||||
|
||||
if (! strcmp (name, SAVE_PS_PROC))
|
||||
{
|
||||
|
|
|
@ -686,9 +686,9 @@ psp_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, psp_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, psp_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -156,9 +156,9 @@ qoi_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, qoi_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, qoi_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -444,9 +444,9 @@ raw_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, raw_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, raw_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, GRAY, RGB, RGBA");
|
||||
|
||||
|
|
|
@ -292,9 +292,9 @@ sunras_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, sunras_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, sunras_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
||||
|
|
|
@ -278,9 +278,9 @@ tga_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, tga_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, tga_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -179,9 +179,9 @@ xbm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, xbm_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, xbm_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED");
|
||||
|
||||
|
|
|
@ -340,9 +340,9 @@ xmc_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, xmc_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, xmc_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGBA");
|
||||
|
||||
|
|
|
@ -223,9 +223,9 @@ xpm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, xpm_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, xpm_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -346,9 +346,9 @@ xwd_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, xwd_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, xwd_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
||||
|
|
|
@ -170,9 +170,9 @@ bmp_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, bmp_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, bmp_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, GRAY, RGB*");
|
||||
|
||||
|
|
|
@ -176,9 +176,9 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, dds_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, dds_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, GRAY, RGB");
|
||||
|
||||
|
|
|
@ -209,9 +209,9 @@ fits_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, fits_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, fits_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
||||
|
|
|
@ -210,9 +210,9 @@ fli_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, fli_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, fli_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, GRAY");
|
||||
|
||||
|
|
|
@ -167,9 +167,9 @@ icns_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, icns_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, icns_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -285,9 +285,9 @@ ico_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, ico_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, ico_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
@ -310,9 +310,9 @@ ico_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_CUR_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, cur_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, cur_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
@ -357,9 +357,9 @@ ico_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_ANI_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, ani_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, ani_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -172,9 +172,9 @@ jpeg_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
"image/jpeg", jpeg_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
TRUE, jpeg_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*, GRAY*");
|
||||
|
||||
|
|
|
@ -203,9 +203,9 @@ psd_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
"image/x-psd", psd_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
TRUE, psd_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -162,9 +162,9 @@ sgi_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
NULL, sgi_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
FALSE, sgi_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -180,9 +180,9 @@ tiff_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
"image/tiff", tiff_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
TRUE, tiff_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
|
@ -140,9 +140,9 @@ webp_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new2 (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
"image/webp", webp_save, NULL, NULL);
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
TRUE, webp_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
||||
|
|
Loading…
Reference in New Issue