mirror of https://github.com/GNOME/gimp.git
Properly prefix the values of enum GimpPDBProcType
to be GIMP_PDB_PROC_TYPE_PLUGIN, _EXTENSION etc.
This commit is contained in:
parent
967cbb4fad
commit
8a78203aed
|
@ -84,12 +84,12 @@ plug_in_run_cmd_callback (GimpAction *action,
|
|||
|
||||
switch (procedure->proc_type)
|
||||
{
|
||||
case GIMP_EXTENSION:
|
||||
case GIMP_PDB_PROC_TYPE_EXTENSION:
|
||||
args = procedure_commands_get_run_mode_arg (procedure);
|
||||
break;
|
||||
|
||||
case GIMP_PLUGIN:
|
||||
case GIMP_TEMPORARY:
|
||||
case GIMP_PDB_PROC_TYPE_PLUGIN:
|
||||
case GIMP_PDB_PROC_TYPE_TEMPORARY:
|
||||
if (GIMP_IS_DATA_FACTORY_VIEW (data) ||
|
||||
GIMP_IS_BUFFER_VIEW (data))
|
||||
{
|
||||
|
@ -138,7 +138,7 @@ plug_in_run_cmd_callback (GimpAction *action,
|
|||
}
|
||||
break;
|
||||
|
||||
case GIMP_INTERNAL:
|
||||
case GIMP_PDB_PROC_TYPE_INTERNAL:
|
||||
g_warning ("Unhandled procedure type.");
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -50,10 +50,10 @@ file_data_init (Gimp *gimp)
|
|||
|
||||
/* file-gbr-load */
|
||||
file = g_file_new_for_path ("file-gbr-load");
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PDB_PROC_TYPE_PLUGIN, file);
|
||||
g_object_unref (file);
|
||||
|
||||
procedure->proc_type = GIMP_INTERNAL;
|
||||
procedure->proc_type = GIMP_PDB_PROC_TYPE_INTERNAL;
|
||||
procedure->marshal_func = file_gbr_load_invoker;
|
||||
|
||||
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
||||
|
@ -115,10 +115,10 @@ file_data_init (Gimp *gimp)
|
|||
|
||||
/* file-gbr-save-internal */
|
||||
file = g_file_new_for_path ("file-gbr-save-internal");
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PDB_PROC_TYPE_PLUGIN, file);
|
||||
g_object_unref (file);
|
||||
|
||||
procedure->proc_type = GIMP_INTERNAL;
|
||||
procedure->proc_type = GIMP_PDB_PROC_TYPE_INTERNAL;
|
||||
procedure->marshal_func = file_gbr_save_invoker;
|
||||
|
||||
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
||||
|
@ -201,10 +201,10 @@ file_data_init (Gimp *gimp)
|
|||
|
||||
/* file-gih-load */
|
||||
file = g_file_new_for_path ("file-gih-load");
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PDB_PROC_TYPE_PLUGIN, file);
|
||||
g_object_unref (file);
|
||||
|
||||
procedure->proc_type = GIMP_INTERNAL;
|
||||
procedure->proc_type = GIMP_PDB_PROC_TYPE_INTERNAL;
|
||||
procedure->marshal_func = file_gih_load_invoker;
|
||||
|
||||
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
||||
|
@ -263,10 +263,10 @@ file_data_init (Gimp *gimp)
|
|||
|
||||
/* file-gih-save-internal */
|
||||
file = g_file_new_for_path ("file-gih-save-internal");
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PDB_PROC_TYPE_PLUGIN, file);
|
||||
g_object_unref (file);
|
||||
|
||||
procedure->proc_type = GIMP_INTERNAL;
|
||||
procedure->proc_type = GIMP_PDB_PROC_TYPE_INTERNAL;
|
||||
procedure->marshal_func = file_gih_save_invoker;
|
||||
|
||||
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
||||
|
@ -356,10 +356,10 @@ file_data_init (Gimp *gimp)
|
|||
|
||||
/* file-pat-load */
|
||||
file = g_file_new_for_path ("file-pat-load");
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PDB_PROC_TYPE_PLUGIN, file);
|
||||
g_object_unref (file);
|
||||
|
||||
procedure->proc_type = GIMP_INTERNAL;
|
||||
procedure->proc_type = GIMP_PDB_PROC_TYPE_INTERNAL;
|
||||
procedure->marshal_func = file_pat_load_invoker;
|
||||
|
||||
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
||||
|
@ -417,10 +417,10 @@ file_data_init (Gimp *gimp)
|
|||
|
||||
/* file-pat-save-internal */
|
||||
file = g_file_new_for_path ("file-pat-save-internal");
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PDB_PROC_TYPE_PLUGIN, file);
|
||||
g_object_unref (file);
|
||||
|
||||
procedure->proc_type = GIMP_INTERNAL;
|
||||
procedure->proc_type = GIMP_PDB_PROC_TYPE_INTERNAL;
|
||||
procedure->marshal_func = file_pat_save_invoker;
|
||||
|
||||
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
||||
|
@ -498,10 +498,10 @@ file_data_init (Gimp *gimp)
|
|||
|
||||
/* file-gex-load */
|
||||
file = g_file_new_for_path ("file-gex-load");
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PDB_PROC_TYPE_PLUGIN, file);
|
||||
g_object_unref (file);
|
||||
|
||||
procedure->proc_type = GIMP_INTERNAL;
|
||||
procedure->proc_type = GIMP_PDB_PROC_TYPE_INTERNAL;
|
||||
procedure->marshal_func = file_gex_load_invoker;
|
||||
|
||||
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
||||
|
|
|
@ -280,7 +280,7 @@ file_save (Gimp *gimp,
|
|||
g_slist_nth_data (file_proc->mime_types_list, 0));
|
||||
|
||||
/* only save a thumbnail if we are saving as XCF, see bug #25272 */
|
||||
if (GIMP_PROCEDURE (file_proc)->proc_type == GIMP_INTERNAL)
|
||||
if (GIMP_PROCEDURE (file_proc)->proc_type == GIMP_PDB_PROC_TYPE_INTERNAL)
|
||||
gimp_imagefile_save_thumbnail (imagefile,
|
||||
g_slist_nth_data (file_proc->mime_types_list, 0),
|
||||
image,
|
||||
|
|
|
@ -104,7 +104,7 @@ gimp_procedure_class_init (GimpProcedureClass *klass)
|
|||
static void
|
||||
gimp_procedure_init (GimpProcedure *procedure)
|
||||
{
|
||||
procedure->proc_type = GIMP_INTERNAL;
|
||||
procedure->proc_type = GIMP_PDB_PROC_TYPE_INTERNAL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -684,7 +684,7 @@ register_pdb_procs (GimpPDB *pdb)
|
|||
"proc type",
|
||||
"The procedure type",
|
||||
GIMP_TYPE_PDB_PROC_TYPE,
|
||||
GIMP_INTERNAL,
|
||||
GIMP_PDB_PROC_TYPE_INTERNAL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
g_param_spec_int ("num-args",
|
||||
|
|
|
@ -840,13 +840,13 @@ gimp_plug_in_handle_proc_install (GimpPlugIn *plug_in,
|
|||
|
||||
switch (proc_install->type)
|
||||
{
|
||||
case GIMP_PLUGIN:
|
||||
case GIMP_EXTENSION:
|
||||
case GIMP_PDB_PROC_TYPE_PLUGIN:
|
||||
case GIMP_PDB_PROC_TYPE_EXTENSION:
|
||||
procedure = gimp_plug_in_procedure_new (proc_install->type,
|
||||
plug_in->file);
|
||||
break;
|
||||
|
||||
case GIMP_TEMPORARY:
|
||||
case GIMP_PDB_PROC_TYPE_TEMPORARY:
|
||||
procedure = gimp_temporary_procedure_new (plug_in);
|
||||
break;
|
||||
}
|
||||
|
@ -918,12 +918,12 @@ gimp_plug_in_handle_proc_install (GimpPlugIn *plug_in,
|
|||
|
||||
switch (proc_install->type)
|
||||
{
|
||||
case GIMP_PLUGIN:
|
||||
case GIMP_EXTENSION:
|
||||
case GIMP_PDB_PROC_TYPE_PLUGIN:
|
||||
case GIMP_PDB_PROC_TYPE_EXTENSION:
|
||||
gimp_plug_in_def_add_procedure (plug_in->plug_in_def, proc);
|
||||
break;
|
||||
|
||||
case GIMP_TEMPORARY:
|
||||
case GIMP_PDB_PROC_TYPE_TEMPORARY:
|
||||
gimp_plug_in_add_temp_proc (plug_in, GIMP_TEMPORARY_PROCEDURE (proc));
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -911,16 +911,16 @@ gimp_plug_in_menu_register (GimpPlugIn *plug_in,
|
|||
|
||||
switch (GIMP_PROCEDURE (proc)->proc_type)
|
||||
{
|
||||
case GIMP_INTERNAL:
|
||||
case GIMP_PDB_PROC_TYPE_INTERNAL:
|
||||
return FALSE;
|
||||
|
||||
case GIMP_PLUGIN:
|
||||
case GIMP_EXTENSION:
|
||||
case GIMP_PDB_PROC_TYPE_PLUGIN:
|
||||
case GIMP_PDB_PROC_TYPE_EXTENSION:
|
||||
if (plug_in->call_mode != GIMP_PLUG_IN_CALL_QUERY &&
|
||||
plug_in->call_mode != GIMP_PLUG_IN_CALL_INIT)
|
||||
return FALSE;
|
||||
|
||||
case GIMP_TEMPORARY:
|
||||
case GIMP_PDB_PROC_TYPE_TEMPORARY:
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
@ -261,7 +261,7 @@ gimp_plug_in_manager_call_run (GimpPlugInManager *manager,
|
|||
/* If this is an extension,
|
||||
* wait for an installation-confirmation message
|
||||
*/
|
||||
if (GIMP_PROCEDURE (procedure)->proc_type == GIMP_EXTENSION)
|
||||
if (GIMP_PROCEDURE (procedure)->proc_type == GIMP_PDB_PROC_TYPE_EXTENSION)
|
||||
{
|
||||
plug_in->ext_main_loop = g_main_loop_new (NULL, FALSE);
|
||||
|
||||
|
|
|
@ -569,8 +569,8 @@ gimp_plug_in_manager_run_extensions (GimpPlugInManager *manager,
|
|||
{
|
||||
GimpPlugInProcedure *proc = list->data;
|
||||
|
||||
if (proc->file &&
|
||||
GIMP_PROCEDURE (proc)->proc_type == GIMP_EXTENSION &&
|
||||
if (proc->file &&
|
||||
GIMP_PROCEDURE (proc)->proc_type == GIMP_PDB_PROC_TYPE_EXTENSION &&
|
||||
GIMP_PROCEDURE (proc)->num_args == 0)
|
||||
{
|
||||
extensions = g_list_prepend (extensions, proc);
|
||||
|
|
|
@ -140,7 +140,7 @@ gimp_plug_in_procedure_class_init (GimpPlugInProcedureClass *klass)
|
|||
static void
|
||||
gimp_plug_in_procedure_init (GimpPlugInProcedure *proc)
|
||||
{
|
||||
GIMP_PROCEDURE (proc)->proc_type = GIMP_PLUGIN;
|
||||
GIMP_PROCEDURE (proc)->proc_type = GIMP_PDB_PROC_TYPE_PLUGIN;
|
||||
|
||||
proc->icon_data_length = -1;
|
||||
}
|
||||
|
@ -395,7 +395,7 @@ gimp_plug_in_procedure_execute (GimpProcedure *procedure,
|
|||
return return_vals;
|
||||
}
|
||||
|
||||
if (procedure->proc_type == GIMP_INTERNAL)
|
||||
if (procedure->proc_type == GIMP_PDB_PROC_TYPE_INTERNAL)
|
||||
return GIMP_PROCEDURE_CLASS (parent_class)->execute (procedure, gimp,
|
||||
context, progress,
|
||||
args, error);
|
||||
|
@ -518,8 +518,8 @@ gimp_plug_in_procedure_new (GimpPDBProcType proc_type,
|
|||
{
|
||||
GimpPlugInProcedure *proc;
|
||||
|
||||
g_return_val_if_fail (proc_type == GIMP_PLUGIN ||
|
||||
proc_type == GIMP_EXTENSION, NULL);
|
||||
g_return_val_if_fail (proc_type == GIMP_PDB_PROC_TYPE_PLUGIN ||
|
||||
proc_type == GIMP_PDB_PROC_TYPE_EXTENSION, NULL);
|
||||
g_return_val_if_fail (G_IS_FILE (file), NULL);
|
||||
|
||||
proc = g_object_new (GIMP_TYPE_PLUG_IN_PROCEDURE, NULL);
|
||||
|
|
|
@ -78,7 +78,7 @@ gimp_temporary_procedure_class_init (GimpTemporaryProcedureClass *klass)
|
|||
static void
|
||||
gimp_temporary_procedure_init (GimpTemporaryProcedure *proc)
|
||||
{
|
||||
GIMP_PROCEDURE (proc)->proc_type = GIMP_TEMPORARY;
|
||||
GIMP_PROCEDURE (proc)->proc_type = GIMP_PDB_PROC_TYPE_TEMPORARY;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -406,8 +406,8 @@ plug_in_procedure_deserialize (GScanner *scanner,
|
|||
return G_TOKEN_INT;
|
||||
}
|
||||
|
||||
if (proc_type != GIMP_PLUGIN &&
|
||||
proc_type != GIMP_EXTENSION)
|
||||
if (proc_type != GIMP_PDB_PROC_TYPE_PLUGIN &&
|
||||
proc_type != GIMP_PDB_PROC_TYPE_EXTENSION)
|
||||
{
|
||||
g_free (str);
|
||||
g_scanner_error (scanner, "procedure type %d is out of range",
|
||||
|
|
|
@ -104,10 +104,10 @@ xcf_init (Gimp *gimp)
|
|||
|
||||
/* gimp-xcf-save */
|
||||
file = g_file_new_for_path ("gimp-xcf-save");
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PDB_PROC_TYPE_PLUGIN, file);
|
||||
g_object_unref (file);
|
||||
|
||||
procedure->proc_type = GIMP_INTERNAL;
|
||||
procedure->proc_type = GIMP_PDB_PROC_TYPE_INTERNAL;
|
||||
procedure->marshal_func = xcf_save_invoker;
|
||||
|
||||
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
||||
|
@ -175,10 +175,10 @@ xcf_init (Gimp *gimp)
|
|||
|
||||
/* gimp-xcf-load */
|
||||
file = g_file_new_for_path ("gimp-xcf-load");
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PLUGIN, file);
|
||||
procedure = gimp_plug_in_procedure_new (GIMP_PDB_PROC_TYPE_PLUGIN, file);
|
||||
g_object_unref (file);
|
||||
|
||||
procedure->proc_type = GIMP_INTERNAL;
|
||||
procedure->proc_type = GIMP_PDB_PROC_TYPE_INTERNAL;
|
||||
procedure->marshal_func = xcf_load_invoker;
|
||||
|
||||
proc = GIMP_PLUG_IN_PROCEDURE (procedure);
|
||||
|
|
|
@ -79,7 +79,7 @@ gimp_brush_select_new (const gchar *title,
|
|||
|
||||
procedure = gimp_procedure_new (plug_in,
|
||||
brush_callback,
|
||||
GIMP_TEMPORARY,
|
||||
GIMP_PDB_PROC_TYPE_TEMPORARY,
|
||||
gimp_temp_brush_run,
|
||||
brush_data,
|
||||
(GDestroyNotify)
|
||||
|
|
|
@ -70,7 +70,7 @@ gimp_font_select_new (const gchar *title,
|
|||
|
||||
procedure = gimp_procedure_new (plug_in,
|
||||
font_callback,
|
||||
GIMP_TEMPORARY,
|
||||
GIMP_PDB_PROC_TYPE_TEMPORARY,
|
||||
gimp_temp_font_run,
|
||||
font_data,
|
||||
(GDestroyNotify)
|
||||
|
|
|
@ -73,7 +73,7 @@ gimp_gradient_select_new (const gchar *title,
|
|||
|
||||
procedure = gimp_procedure_new (plug_in,
|
||||
gradient_callback,
|
||||
GIMP_TEMPORARY,
|
||||
GIMP_PDB_PROC_TYPE_TEMPORARY,
|
||||
gimp_temp_gradient_run,
|
||||
gradient_data,
|
||||
(GDestroyNotify)
|
||||
|
|
|
@ -189,7 +189,8 @@ gimp_image_procedure_new (GimpPlugIn *plug_in,
|
|||
|
||||
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_INTERNAL, 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_IMAGE_PROCEDURE,
|
||||
|
|
|
@ -142,24 +142,25 @@ gimp_main_legacy (const GimpPlugInInfo *info,
|
|||
* "*" for all image types. If the procedure doesn't need an image to
|
||||
* run, use the empty string.
|
||||
*
|
||||
* @type must be one of %GIMP_PLUGIN or %GIMP_EXTENSION. Note that
|
||||
* temporary procedures must be installed using
|
||||
* gimp_install_temp_proc().
|
||||
* @type must be one of %GIMP_PDB_PROC_TYPE_PLUGIN or
|
||||
* %GIMP_PDB_PROC_TYPE_EXTENSION. Note that temporary procedures must
|
||||
* be installed using gimp_install_temp_proc().
|
||||
*
|
||||
* NOTE: Unlike the GIMP 1.2 API, %GIMP_EXTENSION no longer means
|
||||
* that the procedure's menu prefix is <Toolbox>, but that
|
||||
* it will install temporary procedures. Therefore, the GIMP core
|
||||
* will wait until the %GIMP_EXTENSION procedure has called
|
||||
* gimp_extension_ack(), which means that the procedure has done
|
||||
* its initialization, installed its temporary procedures and is
|
||||
* NOTE: Unlike the GIMP 1.2 API, %GIMP_PDB_PROC_TYPE_EXTENSION no
|
||||
* longer means that the procedure's menu prefix is <Toolbox>,
|
||||
* but that it will install temporary procedures. Therefore, the GIMP
|
||||
* core will wait until the %GIMP_PDB_PROC_TYPE_EXTENSION procedure
|
||||
* has called gimp_extension_ack(), which means that the procedure has
|
||||
* done its initialization, installed its temporary procedures and is
|
||||
* ready to run.
|
||||
*
|
||||
* <emphasis>Not calling gimp_extension_ack() from a %GIMP_EXTENSION
|
||||
* procedure will cause the GIMP core to lock up.</emphasis>
|
||||
* <emphasis>Not calling gimp_extension_ack() from a
|
||||
* %GIMP_PDB_PROC_TYPE_EXTENSION procedure will cause the GIMP core to
|
||||
* lock up.</emphasis>
|
||||
*
|
||||
* Additionally, a %GIMP_EXTENSION procedure with no parameters
|
||||
* (@n_params == 0 and @params == %NULL) is an "automatic" extension
|
||||
* that will be automatically started on each GIMP startup.
|
||||
* Additionally, a %GIMP_PDB_PROC_TYPE_EXTENSION procedure with no
|
||||
* parameters (@n_params == 0 and @params == %NULL) is an "automatic"
|
||||
* extension that will be automatically started on each GIMP startup.
|
||||
**/
|
||||
void
|
||||
gimp_install_procedure (const gchar *name,
|
||||
|
@ -181,7 +182,7 @@ gimp_install_procedure (const gchar *name,
|
|||
gint i;
|
||||
|
||||
g_return_if_fail (name != NULL);
|
||||
g_return_if_fail (type != GIMP_INTERNAL);
|
||||
g_return_if_fail (type != GIMP_PDB_PROC_TYPE_INTERNAL);
|
||||
g_return_if_fail ((n_params == 0 && params == NULL) ||
|
||||
(n_params > 0 && params != NULL));
|
||||
g_return_if_fail ((n_return_vals == 0 && return_vals == NULL) ||
|
||||
|
|
|
@ -30,6 +30,11 @@ G_BEGIN_DECLS
|
|||
#ifndef GIMP_DISABLE_COMPAT_CRUFT
|
||||
|
||||
|
||||
#ifdef GIMP_DEPRECATED_REPLACE_NEW_API
|
||||
#define GIMP_PLUGIN GIMP_PDB_PROC_TYPE_PLUGIN
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
* GimpInitProc:
|
||||
*
|
||||
|
|
|
@ -247,7 +247,8 @@ gimp_load_procedure_new (GimpPlugIn *plug_in,
|
|||
|
||||
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_INTERNAL, 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_LOAD_PROCEDURE,
|
||||
|
|
|
@ -71,7 +71,7 @@ gimp_palette_select_new (const gchar *title,
|
|||
|
||||
procedure = gimp_procedure_new (plug_in,
|
||||
palette_callback,
|
||||
GIMP_TEMPORARY,
|
||||
GIMP_PDB_PROC_TYPE_TEMPORARY,
|
||||
gimp_temp_palette_run,
|
||||
palette_data,
|
||||
(GDestroyNotify)
|
||||
|
|
|
@ -74,7 +74,7 @@ gimp_pattern_select_new (const gchar *title,
|
|||
|
||||
procedure = gimp_procedure_new (plug_in,
|
||||
pattern_callback,
|
||||
GIMP_TEMPORARY,
|
||||
GIMP_PDB_PROC_TYPE_TEMPORARY,
|
||||
gimp_temp_pattern_run,
|
||||
pattern_data,
|
||||
(GDestroyNotify)
|
||||
|
|
|
@ -413,8 +413,8 @@ gimp_plug_in_add_menu_branch (GimpPlugIn *plug_in,
|
|||
* @procedure_name: A procedure name.
|
||||
*
|
||||
* This functiond creates a new procedure and is called when a plug-in
|
||||
* instance is started by GIMP when one of the %GIMP_PLUGIN or
|
||||
* %GIMP_EXTENSION procedures it implements is invoked.
|
||||
* instance is started by GIMP when one of the %GIMP_PDB_PROC_TYPE_PLUGIN or
|
||||
* %GIMP_PDB_PROC_TYPE_EXTENSION procedures it implements is invoked.
|
||||
*
|
||||
* This function will only ever be called with names returned by
|
||||
* implementations of GimpPlugInClass::init_procedures() or
|
||||
|
@ -439,16 +439,17 @@ gimp_plug_in_create_procedure (GimpPlugIn *plug_in,
|
|||
/**
|
||||
* gimp_plug_in_add_temp_procedure:
|
||||
* @plug_in: A #GimpPlugIn
|
||||
* @procedure: A #GimpProcedure of type %GIMP_TEMPORARY.
|
||||
* @procedure: A #GimpProcedure of type %GIMP_PDB_PROC_TYPE_TEMPORARY.
|
||||
*
|
||||
* This function adds a temporary procedure to @plug_in. It is usually
|
||||
* called from a %GIMP_EXTENSION procedure's GimpProcedure::run().
|
||||
* called from a %GIMP_PDB_PROC_TYPE_EXTENSION procedure's
|
||||
* GimpProcedure::run().
|
||||
*
|
||||
* A temporary procedure is a procedure which is only available while
|
||||
* one of your plug-in's "real" procedures is running.
|
||||
*
|
||||
* The procedure's type <emphasis>must</emphasis> be %GIMP_TEMPORARY
|
||||
* or the function will fail.
|
||||
* The procedure's type <emphasis>must</emphasis> be
|
||||
* %GIMP_PDB_PROC_TYPE_TEMPORARY or the function will fail.
|
||||
*
|
||||
* NOTE: Normally, plug-in communication is triggered by the plug-in
|
||||
* and the GIMP core only responds to the plug-in's requests. You must
|
||||
|
@ -466,7 +467,7 @@ gimp_plug_in_add_temp_procedure (GimpPlugIn *plug_in,
|
|||
g_return_if_fail (GIMP_IS_PLUG_IN (plug_in));
|
||||
g_return_if_fail (GIMP_IS_PROCEDURE (procedure));
|
||||
g_return_if_fail (gimp_procedure_get_proc_type (procedure) ==
|
||||
GIMP_TEMPORARY);
|
||||
GIMP_PDB_PROC_TYPE_TEMPORARY);
|
||||
|
||||
plug_in->priv->temp_procedures =
|
||||
g_list_prepend (plug_in->priv->temp_procedures,
|
||||
|
@ -580,8 +581,8 @@ gimp_plug_in_get_temp_procedure (GimpPlugIn *plug_in,
|
|||
* it has a GUI and is hanging around in a #GMainLoop, it must call
|
||||
* gimp_plug_in_extension_enable().
|
||||
*
|
||||
* Note that the plug-in does not need to be a #GIMP_EXTENSION to
|
||||
* register temporary procedures.
|
||||
* Note that the plug-in does not need to be a
|
||||
* #GIMP_PDB_PROC_TYPE_EXTENSION to register temporary procedures.
|
||||
*
|
||||
* See also: gimp_plug_in_add_temp_procedure().
|
||||
*
|
||||
|
|
|
@ -161,7 +161,7 @@ gimp_procedure_class_init (GimpProcedureClass *klass)
|
|||
"Procedure type",
|
||||
"The procedure's type",
|
||||
GIMP_TYPE_PDB_PROC_TYPE,
|
||||
GIMP_PLUGIN,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
GIMP_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY);
|
||||
|
||||
|
@ -453,31 +453,32 @@ gimp_procedure_real_run (GimpProcedure *procedure,
|
|||
* overwrite an already existing procedure (overwrite procedures only
|
||||
* if you know what you're doing).
|
||||
*
|
||||
* @proc_type should be %GIMP_PLUGIN for "normal" plug-ins.
|
||||
* @proc_type should be %GIMP_PDB_PROC_TYPE_PLUGIN for "normal" plug-ins.
|
||||
*
|
||||
* Using %GIMP_EXTENSION means that the plug-in will add temporary
|
||||
* procedures. Therefore, the GIMP core will wait until the
|
||||
* %GIMP_EXTENSION procedure has called
|
||||
* Using %GIMP_PDB_PROC_TYPE_EXTENSION means that the plug-in will add
|
||||
* temporary procedures. Therefore, the GIMP core will wait until the
|
||||
* %GIMP_PDB_PROC_TYPE_EXTENSION procedure has called
|
||||
* gimp_procedure_extension_ready(), which means that the procedure
|
||||
* has done its initialization, installed its temporary procedures and
|
||||
* is ready to run.
|
||||
*
|
||||
* <emphasis>Not calling gimp_procedure_extension_ready() from a
|
||||
* %GIMP_EXTENSION procedure will cause the GIMP core to lock
|
||||
* up.</emphasis>
|
||||
* %GIMP_PDB_PROC_TYPE_EXTENSION procedure will cause the GIMP core to
|
||||
* lock up.</emphasis>
|
||||
*
|
||||
* Additionally, a %GIMP_EXTENSION procedure with no arguments added
|
||||
* is an "automatic" extension that will be automatically started on
|
||||
* each GIMP startup.
|
||||
* Additionally, a %GIMP_PDB_PROC_TYPE_EXTENSION procedure with no
|
||||
* arguments added is an "automatic" extension that will be
|
||||
* automatically started on each GIMP startup.
|
||||
*
|
||||
* %GIMP_TEMPORARY must be used for temporary procedures that are
|
||||
* created during a plug-ins lifetime. They must be added to the
|
||||
* #GimpPlugIn using gimp_plug_in_add_temp_procedure().
|
||||
* %GIMP_PDB_PROC_TYPE_TEMPORARY must be used for temporary procedures
|
||||
* that are created during a plug-ins lifetime. They must be added to
|
||||
* the #GimpPlugIn using gimp_plug_in_add_temp_procedure().
|
||||
*
|
||||
* @run_func is called via gimp_procedure_run().
|
||||
*
|
||||
* For %GIMP_PLUGIN and %GIMP_EXTENSION procedures the call of
|
||||
* @run_func is basically the lifetime of the plug-in.
|
||||
* For %GIMP_PDB_PROC_TYPE_PLUGIN and %GIMP_PDB_PROC_TYPE_EXTENSION
|
||||
* procedures the call of @run_func is basically the lifetime of the
|
||||
* plug-in.
|
||||
*
|
||||
* Returns: a new #GimpProcedure.
|
||||
*
|
||||
|
@ -495,7 +496,7 @@ gimp_procedure_new (GimpPlugIn *plug_in,
|
|||
|
||||
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_INTERNAL, NULL);
|
||||
g_return_val_if_fail (proc_type != GIMP_PDB_PROC_TYPE_INTERNAL, NULL);
|
||||
g_return_val_if_fail (run_func != NULL, NULL);
|
||||
|
||||
procedure = g_object_new (GIMP_TYPE_PROCEDURE,
|
||||
|
@ -554,7 +555,8 @@ gimp_procedure_get_name (GimpProcedure *procedure)
|
|||
GimpPDBProcType
|
||||
gimp_procedure_get_proc_type (GimpProcedure *procedure)
|
||||
{
|
||||
g_return_val_if_fail (GIMP_IS_PROCEDURE (procedure), GIMP_PLUGIN);
|
||||
g_return_val_if_fail (GIMP_IS_PROCEDURE (procedure),
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN);
|
||||
|
||||
return procedure->priv->proc_type;
|
||||
}
|
||||
|
@ -1387,7 +1389,8 @@ gimp_procedure_run (GimpProcedure *procedure,
|
|||
* properly initialized and is ready to run.
|
||||
*
|
||||
* This function <emphasis>must</emphasis> be called from every
|
||||
* procedure's #GimpRunFunc that was created as #GIMP_EXTENSION.
|
||||
* procedure's #GimpRunFunc that was created as
|
||||
* #GIMP_PDB_PROC_TYPE_EXTENSION.
|
||||
*
|
||||
* Subsequently, extensions can process temporary procedure run
|
||||
* requests using either gimp_plug_in_extension_enable() or
|
||||
|
@ -1403,7 +1406,7 @@ gimp_procedure_extension_ready (GimpProcedure *procedure)
|
|||
GimpPlugIn *plug_in;
|
||||
|
||||
g_return_if_fail (GIMP_IS_PROCEDURE (procedure));
|
||||
g_return_if_fail (procedure->priv->proc_type == GIMP_EXTENSION);
|
||||
g_return_if_fail (procedure->priv->proc_type == GIMP_PDB_PROC_TYPE_EXTENSION);
|
||||
|
||||
plug_in = gimp_procedure_get_plug_in (procedure);
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ gimp_progress_install_vtable (const GimpProgressVtable *vtable,
|
|||
|
||||
procedure = gimp_procedure_new (plug_in,
|
||||
progress_callback,
|
||||
GIMP_TEMPORARY,
|
||||
GIMP_PDB_PROC_TYPE_TEMPORARY,
|
||||
gimp_temp_progress_run,
|
||||
progress_data,
|
||||
(GDestroyNotify)
|
||||
|
|
|
@ -231,7 +231,8 @@ gimp_save_procedure_new (GimpPlugIn *plug_in,
|
|||
|
||||
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_INTERNAL, 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,
|
||||
|
|
|
@ -222,7 +222,8 @@ gimp_thumbnail_procedure_new (GimpPlugIn *plug_in,
|
|||
|
||||
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_INTERNAL, 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_THUMBNAIL_PROCEDURE,
|
||||
|
|
|
@ -1345,19 +1345,19 @@ gimp_pdb_proc_type_get_type (void)
|
|||
{
|
||||
static const GEnumValue values[] =
|
||||
{
|
||||
{ GIMP_INTERNAL, "GIMP_INTERNAL", "internal" },
|
||||
{ GIMP_PLUGIN, "GIMP_PLUGIN", "plugin" },
|
||||
{ GIMP_EXTENSION, "GIMP_EXTENSION", "extension" },
|
||||
{ GIMP_TEMPORARY, "GIMP_TEMPORARY", "temporary" },
|
||||
{ GIMP_PDB_PROC_TYPE_INTERNAL, "GIMP_PDB_PROC_TYPE_INTERNAL", "internal" },
|
||||
{ GIMP_PDB_PROC_TYPE_PLUGIN, "GIMP_PDB_PROC_TYPE_PLUGIN", "plugin" },
|
||||
{ GIMP_PDB_PROC_TYPE_EXTENSION, "GIMP_PDB_PROC_TYPE_EXTENSION", "extension" },
|
||||
{ GIMP_PDB_PROC_TYPE_TEMPORARY, "GIMP_PDB_PROC_TYPE_TEMPORARY", "temporary" },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
|
||||
static const GimpEnumDesc descs[] =
|
||||
{
|
||||
{ GIMP_INTERNAL, NC_("pdb-proc-type", "Internal GIMP procedure"), NULL },
|
||||
{ GIMP_PLUGIN, NC_("pdb-proc-type", "GIMP Plug-In"), NULL },
|
||||
{ GIMP_EXTENSION, NC_("pdb-proc-type", "GIMP Extension"), NULL },
|
||||
{ GIMP_TEMPORARY, NC_("pdb-proc-type", "Temporary Procedure"), NULL },
|
||||
{ GIMP_PDB_PROC_TYPE_INTERNAL, NC_("pdb-proc-type", "Internal GIMP procedure"), NULL },
|
||||
{ GIMP_PDB_PROC_TYPE_PLUGIN, NC_("pdb-proc-type", "GIMP Plug-In"), NULL },
|
||||
{ GIMP_PDB_PROC_TYPE_EXTENSION, NC_("pdb-proc-type", "GIMP Extension"), NULL },
|
||||
{ GIMP_PDB_PROC_TYPE_TEMPORARY, NC_("pdb-proc-type", "Temporary Procedure"), NULL },
|
||||
{ 0, NULL, NULL }
|
||||
};
|
||||
|
||||
|
|
|
@ -908,10 +908,10 @@ typedef enum
|
|||
|
||||
/**
|
||||
* GimpPDBProcType:
|
||||
* @GIMP_INTERNAL: Internal GIMP procedure
|
||||
* @GIMP_PLUGIN: GIMP Plug-In
|
||||
* @GIMP_EXTENSION: GIMP Extension
|
||||
* @GIMP_TEMPORARY: Temporary Procedure
|
||||
* @GIMP_PDB_PROC_TYPE_INTERNAL: Internal GIMP procedure
|
||||
* @GIMP_PDB_PROC_TYPE_PLUGIN: GIMP Plug-In
|
||||
* @GIMP_PDB_PROC_TYPE_EXTENSION: GIMP Extension
|
||||
* @GIMP_PDB_PROC_TYPE_TEMPORARY: Temporary Procedure
|
||||
*
|
||||
* Types of PDB procedures.
|
||||
**/
|
||||
|
@ -921,10 +921,10 @@ GType gimp_pdb_proc_type_get_type (void) G_GNUC_CONST;
|
|||
|
||||
typedef enum
|
||||
{
|
||||
GIMP_INTERNAL, /*< desc="Internal GIMP procedure" >*/
|
||||
GIMP_PLUGIN, /*< desc="GIMP Plug-In" >*/
|
||||
GIMP_EXTENSION, /*< desc="GIMP Extension" >*/
|
||||
GIMP_TEMPORARY /*< desc="Temporary Procedure" >*/
|
||||
GIMP_PDB_PROC_TYPE_INTERNAL, /*< desc="Internal GIMP procedure" >*/
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN, /*< desc="GIMP Plug-In" >*/
|
||||
GIMP_PDB_PROC_TYPE_EXTENSION, /*< desc="GIMP Extension" >*/
|
||||
GIMP_PDB_PROC_TYPE_TEMPORARY /*< desc="Temporary Procedure" >*/
|
||||
} GimpPDBProcType;
|
||||
|
||||
|
||||
|
|
14
pdb/enums.pl
14
pdb/enums.pl
|
@ -438,12 +438,14 @@ package Gimp::CodeGen::enums;
|
|||
GimpPDBProcType =>
|
||||
{ contig => 1,
|
||||
header => 'libgimpbase/gimpbaseenums.h',
|
||||
symbols => [ qw(GIMP_INTERNAL GIMP_PLUGIN GIMP_EXTENSION
|
||||
GIMP_TEMPORARY) ],
|
||||
mapping => { GIMP_INTERNAL => '0',
|
||||
GIMP_PLUGIN => '1',
|
||||
GIMP_EXTENSION => '2',
|
||||
GIMP_TEMPORARY => '3' }
|
||||
symbols => [ qw(GIMP_PDB_PROC_TYPE_INTERNAL
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN
|
||||
GIMP_PDB_PROC_TYPE_EXTENSION
|
||||
GIMP_PDB_PROC_TYPE_TEMPORARY) ],
|
||||
mapping => { GIMP_PDB_PROC_TYPE_INTERNAL => '0',
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN => '1',
|
||||
GIMP_PDB_PROC_TYPE_EXTENSION => '2',
|
||||
GIMP_PDB_PROC_TYPE_TEMPORARY => '3' }
|
||||
},
|
||||
GimpPDBStatusType =>
|
||||
{ contig => 1,
|
||||
|
|
|
@ -181,7 +181,8 @@ align_layers_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
align_layers_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -241,7 +241,8 @@ play_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
play_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -121,7 +121,7 @@ query (void)
|
|||
"1997",
|
||||
N_("_Blinds..."),
|
||||
"RGB*, GRAY*",
|
||||
GIMP_PLUGIN,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
}
|
||||
|
|
|
@ -125,7 +125,8 @@ border_average_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
border_average_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*");
|
||||
|
|
|
@ -114,15 +114,19 @@ busy_dialog_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
busy_dialog_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
"Show a dialog while waiting for an operation to finish",
|
||||
"Used by GIMP to display a dialog, containing a "
|
||||
"spinner and a custom message, while waiting for an "
|
||||
"ongoing operation to finish. Optionally, the dialog "
|
||||
"may provide a \"Cancel\" button, which can be used "
|
||||
"Show a dialog while waiting for an "
|
||||
"operation to finish",
|
||||
"Used by GIMP to display a dialog, "
|
||||
"containing a spinner and a custom "
|
||||
"message, while waiting for an "
|
||||
"ongoing operation to finish. "
|
||||
"Optionally, the dialog may provide "
|
||||
"a \"Cancel\" button, which can be used "
|
||||
"to cancel the operation.",
|
||||
name);
|
||||
gimp_procedure_set_attribution (procedure,
|
||||
|
|
|
@ -95,7 +95,7 @@ query (void)
|
|||
"1997",
|
||||
N_("_Checkerboard (legacy)..."),
|
||||
"RGB*, GRAY*",
|
||||
GIMP_PLUGIN,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
|
||||
|
|
|
@ -119,7 +119,8 @@ remap_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC_REMAP))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
remap_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED*");
|
||||
|
@ -154,7 +155,8 @@ remap_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PLUG_IN_PROC_SWAP))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
remap_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED*");
|
||||
|
|
|
@ -398,7 +398,8 @@ compose_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, COMPOSE_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
compose_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "GRAY*");
|
||||
|
@ -449,7 +450,8 @@ compose_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, DRAWABLE_COMPOSE_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
compose_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "GRAY*");
|
||||
|
@ -497,7 +499,8 @@ compose_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, RECOMPOSE_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
compose_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "GRAY*");
|
||||
|
|
|
@ -167,7 +167,7 @@ query (void)
|
|||
"2003",
|
||||
N_("Retine_x..."),
|
||||
"RGB*",
|
||||
GIMP_PLUGIN,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
|
||||
|
|
|
@ -288,7 +288,8 @@ decompose_create_procedure (GimpPlugIn *plug_in,
|
|||
g_string_append_c (type_desc, '"');
|
||||
}
|
||||
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
decompose_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*");
|
||||
|
|
|
@ -158,7 +158,7 @@ query (void)
|
|||
PLUG_IN_VERSION,
|
||||
N_("Des_peckle..."),
|
||||
"RGB*, GRAY*",
|
||||
GIMP_PLUGIN,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ query (void)
|
|||
PLUG_IN_VERSION,
|
||||
N_("Des_tripe..."),
|
||||
"RGB*, GRAY*",
|
||||
GIMP_PLUGIN,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
|
||||
|
|
|
@ -115,7 +115,8 @@ ascii_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
ascii_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -130,7 +130,8 @@ cel_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
cel_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("KISS CEL"));
|
||||
|
@ -159,7 +160,8 @@ cel_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
cel_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*, INDEXED*");
|
||||
|
|
|
@ -309,7 +309,8 @@ compressor_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, compressor->load_proc))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
compressor_load,
|
||||
(gpointer) compressor, NULL);
|
||||
|
||||
|
@ -323,7 +324,8 @@ compressor_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, compressor->save_proc))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
compressor_save,
|
||||
(gpointer) compressor, NULL);
|
||||
|
||||
|
|
|
@ -136,7 +136,8 @@ csource_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
csource_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -103,7 +103,8 @@ desktop_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
desktop_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("Desktop Link"));
|
||||
|
|
|
@ -161,7 +161,8 @@ dicom_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
dicom_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("DICOM image"));
|
||||
|
@ -189,7 +190,8 @@ dicom_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
dicom_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY");
|
||||
|
|
|
@ -127,7 +127,8 @@ gbr_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
gbr_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -181,7 +181,8 @@ goat_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! g_strcmp0 (name, format->load_proc))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
goat_load,
|
||||
(gpointer) format, NULL);
|
||||
|
||||
|
@ -201,7 +202,8 @@ goat_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! g_strcmp0 (name, format->save_proc))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
goat_save,
|
||||
(gpointer) format, NULL);
|
||||
|
||||
|
|
|
@ -167,7 +167,8 @@ gif_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
gif_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("GIF image"));
|
||||
|
@ -196,7 +197,8 @@ gif_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_THUMB_PROC))
|
||||
{
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
gif_load_thumb, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
|
|
@ -169,7 +169,8 @@ gif_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
gif_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED*, GRAY*");
|
||||
|
|
|
@ -166,7 +166,8 @@ gih_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
gih_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*, GRAY*");
|
||||
|
|
|
@ -96,7 +96,8 @@ glob_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
glob_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
|
|
@ -105,7 +105,8 @@ header_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
header_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, RGB");
|
||||
|
|
|
@ -130,7 +130,8 @@ heif_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
heif_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("HEIF/HEIC"));
|
||||
|
@ -167,7 +168,8 @@ heif_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
heif_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*");
|
||||
|
|
|
@ -175,7 +175,8 @@ html_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
html_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -174,7 +174,8 @@ jp2_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_JP2_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
jp2_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("JPEG 2000 image"));
|
||||
|
@ -205,7 +206,8 @@ jp2_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_J2K_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
jp2_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("JPEG 2000 codestream"));
|
||||
|
|
|
@ -280,7 +280,8 @@ mng_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
mng_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -101,7 +101,8 @@ pat_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pat_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -171,7 +171,8 @@ pcx_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pcx_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("ZSoft PCX image"));
|
||||
|
@ -194,7 +195,8 @@ pcx_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pcx_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, RGB, GRAY");
|
||||
|
|
|
@ -319,7 +319,8 @@ pdf_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pdf_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("Portable Document Format"));
|
||||
|
@ -366,7 +367,8 @@ pdf_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_THUMB_PROC))
|
||||
{
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pdf_load_thumb, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
|
|
@ -340,7 +340,8 @@ pdf_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pdf_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
@ -398,7 +399,8 @@ pdf_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_MULTI_PROC))
|
||||
{
|
||||
procedure = gimp_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pdf_save_multi, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -156,7 +156,8 @@ pix_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pix_load, NULL, NULL);
|
||||
|
||||
gimp_file_procedure_set_handles_remote (GIMP_FILE_PROCEDURE (procedure),
|
||||
|
@ -180,7 +181,8 @@ pix_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pix_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -274,7 +274,8 @@ png_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
png_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("PNG image"));
|
||||
|
@ -301,7 +302,8 @@ png_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
png_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -283,7 +283,8 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pnm_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("PNM Image"));
|
||||
|
@ -311,7 +312,8 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PNM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pnm_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
@ -343,7 +345,8 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PBM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pnm_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
@ -375,7 +378,8 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PGM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pnm_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
@ -407,7 +411,8 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PPM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pnm_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
@ -439,7 +444,8 @@ pnm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PFM_SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
pnm_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
|
|
@ -367,7 +367,8 @@ ps_create_procedure (GimpPlugIn *plug_in,
|
|||
if (! strcmp (name, LOAD_PS_PROC) ||
|
||||
! strcmp (name, LOAD_EPS_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
ps_load, NULL, NULL);
|
||||
|
||||
if (! strcmp (name, LOAD_PS_PROC))
|
||||
|
@ -462,7 +463,8 @@ ps_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_PS_THUMB_PROC))
|
||||
{
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
ps_load_thumb, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
@ -478,7 +480,8 @@ ps_create_procedure (GimpPlugIn *plug_in,
|
|||
else if (! strcmp (name, SAVE_PS_PROC) ||
|
||||
! strcmp (name, SAVE_EPS_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
ps_save, NULL, NULL);
|
||||
|
||||
if (! strcmp (name, SAVE_PS_PROC))
|
||||
|
|
|
@ -620,7 +620,8 @@ psp_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
psp_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("Paint Shop Pro image"));
|
||||
|
@ -647,7 +648,8 @@ psp_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
psp_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -275,7 +275,8 @@ raw_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
raw_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("Raw image data"));
|
||||
|
@ -296,7 +297,8 @@ raw_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_HGT_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
raw_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure,
|
||||
|
@ -332,7 +334,8 @@ raw_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
raw_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, GRAY, RGB, RGBA");
|
||||
|
@ -483,7 +486,8 @@ raw_load (GimpProcedure *procedure,
|
|||
sample_spacing != 3)
|
||||
{
|
||||
g_set_error (&error,
|
||||
GIMP_PLUGIN_HGT_LOAD_ERROR, GIMP_PLUGIN_HGT_LOAD_ARGUMENT_ERROR,
|
||||
GIMP_PLUGIN_HGT_LOAD_ERROR,
|
||||
GIMP_PLUGIN_HGT_LOAD_ARGUMENT_ERROR,
|
||||
_("%d is not a valid sample spacing. "
|
||||
"Valid values are: 0 (auto-detect), 1 and 3."),
|
||||
sample_spacing);
|
||||
|
|
|
@ -272,7 +272,8 @@ sunras_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
sunras_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("SUN Rasterfile image"));
|
||||
|
@ -295,7 +296,8 @@ sunras_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
sunras_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
|
|
@ -149,7 +149,8 @@ svg_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
svg_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("SVG image"));
|
||||
|
@ -205,7 +206,8 @@ svg_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_THUMB_PROC))
|
||||
{
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
svg_load_thumb, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
|
|
@ -257,7 +257,8 @@ tga_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
tga_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("TarGA image"));
|
||||
|
@ -280,7 +281,8 @@ tga_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
tga_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -144,7 +144,8 @@ wmf_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
wmf_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("Microsoft WMF file"));
|
||||
|
@ -191,7 +192,8 @@ wmf_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_THUMB_PROC))
|
||||
{
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
wmf_load_thumb, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
|
|
@ -198,7 +198,8 @@ xbm_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
xbm_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("X BitMap image"));
|
||||
|
@ -223,7 +224,8 @@ xbm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
xbm_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED");
|
||||
|
|
|
@ -328,7 +328,8 @@ xmc_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
xmc_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("X11 Mouse Cursor"));
|
||||
|
@ -356,7 +357,8 @@ xmc_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_THUMB_PROC))
|
||||
{
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
xmc_load_thumb, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
@ -373,7 +375,8 @@ xmc_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
xmc_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGBA");
|
||||
|
|
|
@ -192,7 +192,8 @@ xpm_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
xpm_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("X PixMap image"));
|
||||
|
@ -224,7 +225,8 @@ xpm_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
xpm_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -309,7 +309,8 @@ xwd_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
xwd_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("X window dump"));
|
||||
|
@ -336,7 +337,8 @@ xwd_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
xwd_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
|
|
@ -218,7 +218,8 @@ film_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
film_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -116,7 +116,8 @@ map_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, GRADMAP_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
map_run,
|
||||
GINT_TO_POINTER (GRADIENT_MODE),
|
||||
NULL);
|
||||
|
@ -149,7 +150,8 @@ map_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, PALETTEMAP_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
map_run,
|
||||
GINT_TO_POINTER (PALETTE_MODE),
|
||||
NULL);
|
||||
|
|
|
@ -147,7 +147,7 @@ void query (void)
|
|||
"1997 - 2000",
|
||||
N_("_Grid (legacy)..."),
|
||||
"RGB*, GRAY*, INDEXED*",
|
||||
GIMP_PLUGIN,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
|
||||
|
|
|
@ -96,7 +96,8 @@ guillotine_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
guillotine_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
@ -105,10 +106,12 @@ guillotine_create_procedure (GimpPlugIn *plug_in,
|
|||
gimp_procedure_add_menu_path (procedure, "<Image>/Image/Crop");
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
N_("Slice the image into subimages using guides"),
|
||||
"This function takes an image and slices it along "
|
||||
"its guides, creating new images. The original "
|
||||
"image is not modified.",
|
||||
N_("Slice the image into subimages "
|
||||
"using guides"),
|
||||
"This function takes an image and "
|
||||
"slices it along its guides, creating "
|
||||
"new images. The original image is "
|
||||
"not modified.",
|
||||
name);
|
||||
gimp_procedure_set_attribution (procedure,
|
||||
"Adam D. Moss (adam@foxbox.org)",
|
||||
|
|
|
@ -362,7 +362,7 @@ query (void)
|
|||
"May 2000",
|
||||
N_("_Jigsaw..."),
|
||||
"RGB*",
|
||||
GIMP_PLUGIN,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
|
||||
|
|
|
@ -187,7 +187,8 @@ mail_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
mail_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -128,7 +128,7 @@ query (void)
|
|||
"1997",
|
||||
N_("_NL Filter..."),
|
||||
"RGB,GRAY",
|
||||
GIMP_PLUGIN,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
|
||||
|
|
|
@ -161,7 +161,8 @@ browser_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (procedure_name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_procedure_new (plug_in, procedure_name, GIMP_PLUGIN,
|
||||
procedure = gimp_procedure_new (plug_in, procedure_name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
browser_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("_Plug-In Browser"));
|
||||
|
|
|
@ -117,7 +117,8 @@ browser_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
browser_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("Procedure _Browser"));
|
||||
|
|
|
@ -183,7 +183,7 @@ query (void)
|
|||
"Version 1.27, September 2003",
|
||||
N_("_Sparkle..."),
|
||||
"RGB*, GRAY*",
|
||||
GIMP_PLUGIN,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
G_N_ELEMENTS (args), 0,
|
||||
args, NULL);
|
||||
|
||||
|
|
|
@ -175,7 +175,8 @@ editor_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
editor_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("U_nits"));
|
||||
|
|
|
@ -118,7 +118,8 @@ wavelet_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
wavelet_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*");
|
||||
|
|
|
@ -108,7 +108,8 @@ browser_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
browser_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
|
|
@ -121,7 +121,8 @@ webpage_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, PLUG_IN_PROC))
|
||||
{
|
||||
procedure = gimp_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
webpage_run, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("From _Webpage..."));
|
||||
|
|
|
@ -142,7 +142,8 @@ bmp_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
bmp_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("Windows BMP image"));
|
||||
|
@ -165,7 +166,8 @@ bmp_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
bmp_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, GRAY, RGB*");
|
||||
|
|
|
@ -148,7 +148,8 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
dds_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("DDS image"));
|
||||
|
@ -183,7 +184,8 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
dds_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, GRAY, RGB");
|
||||
|
@ -299,7 +301,8 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, DECODE_YCOCG_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
dds_decode, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGBA");
|
||||
|
@ -318,7 +321,8 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, DECODE_YCOCG_SCALED_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
dds_decode, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGBA");
|
||||
|
@ -339,7 +343,8 @@ dds_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, DECODE_ALPHA_EXP_PROC))
|
||||
{
|
||||
procedure = gimp_image_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_image_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
dds_decode, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGBA");
|
||||
|
|
|
@ -97,7 +97,8 @@ exr_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
exr_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("OpenEXR image"));
|
||||
|
|
|
@ -124,7 +124,8 @@ faxg3_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
faxg3_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("G3 fax image"));
|
||||
|
|
|
@ -186,7 +186,8 @@ fits_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
fits_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure,
|
||||
|
@ -211,7 +212,8 @@ fits_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
fits_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB, GRAY, INDEXED");
|
||||
|
|
|
@ -173,7 +173,8 @@ fli_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
fli_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("AutoDesk FLIC animation"));
|
||||
|
@ -207,7 +208,8 @@ fli_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
fli_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "INDEXED, GRAY");
|
||||
|
@ -243,7 +245,8 @@ fli_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, INFO_PROC))
|
||||
{
|
||||
procedure = gimp_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
fli_info, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
|
|
@ -119,7 +119,8 @@ ico_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
ico_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("Microsoft Windows icon"));
|
||||
|
@ -146,7 +147,8 @@ ico_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_THUMB_PROC))
|
||||
{
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
ico_load_thumb, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
@ -160,7 +162,8 @@ ico_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
ico_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
|
@ -128,7 +128,8 @@ jpeg_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
jpeg_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("JPEG image"));
|
||||
|
@ -154,7 +155,8 @@ jpeg_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_THUMB_PROC))
|
||||
{
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
jpeg_load_thumb, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
@ -171,7 +173,8 @@ jpeg_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
jpeg_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "RGB*, GRAY*");
|
||||
|
|
|
@ -115,7 +115,8 @@ psd_create_procedure (GimpPlugIn *plug_in,
|
|||
|
||||
if (! strcmp (name, LOAD_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
psd_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("Photoshop image"));
|
||||
|
@ -143,7 +144,8 @@ psd_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_MERGED_PROC))
|
||||
{
|
||||
procedure = gimp_load_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_load_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
psd_load, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_menu_label (procedure, N_("Photoshop image (merged)"));
|
||||
|
@ -173,7 +175,8 @@ psd_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, LOAD_THUMB_PROC))
|
||||
{
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_thumbnail_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
psd_load_thumb, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_documentation (procedure,
|
||||
|
@ -190,7 +193,8 @@ psd_create_procedure (GimpPlugIn *plug_in,
|
|||
}
|
||||
else if (! strcmp (name, SAVE_PROC))
|
||||
{
|
||||
procedure = gimp_save_procedure_new (plug_in, name, GIMP_PLUGIN,
|
||||
procedure = gimp_save_procedure_new (plug_in, name,
|
||||
GIMP_PDB_PROC_TYPE_PLUGIN,
|
||||
psd_save, NULL, NULL);
|
||||
|
||||
gimp_procedure_set_image_types (procedure, "*");
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue