Commit 11ce199c authored by Michael Natterer's avatar Michael Natterer 😴

app: stop canonicalizing procedure names

on behalf of plug-in authors who have no style or can't type.

Instead, simply reject non-canonical procedure names and remove all
code that keeps aroud the original non-canonical shit just to pass it
back to the plug-in.
parent b6104751
Pipeline #105552 failed with stages
in 11 minutes and 55 seconds
......@@ -124,6 +124,7 @@ gimp_gegl_procedure_finalize (GObject *object)
g_clear_object (&proc->default_settings);
g_clear_pointer (&proc->operation, g_free);
g_clear_pointer (&proc->menu_label, g_free);
g_clear_pointer (&proc->label, g_free);
g_clear_pointer (&proc->help_id, g_free);
......@@ -138,6 +139,7 @@ gimp_gegl_procedure_get_memsize (GimpObject *object,
GimpGeglProcedure *proc = GIMP_GEGL_PROCEDURE (object);
gint64 memsize = 0;
memsize += gimp_string_get_memsize (proc->operation);
memsize += gimp_string_get_memsize (proc->menu_label);
memsize += gimp_string_get_memsize (proc->label);
......@@ -245,7 +247,8 @@ gimp_gegl_procedure_execute (GimpProcedure *procedure,
config = g_value_get_object (gimp_value_array_index (args, 3));
node = gegl_node_new_child (NULL,
"operation", procedure->original_name,
"operation",
GIMP_GEGL_PROCEDURE (procedure)->operation,
NULL);
if (config)
gimp_operation_config_sync_node (config, node);
......@@ -268,10 +271,11 @@ gimp_gegl_procedure_execute_async (GimpProcedure *procedure,
GimpValueArray *args,
GimpObject *display)
{
GimpRunMode run_mode;
GimpObject *settings;
GimpTool *active_tool;
const gchar *tool_name;
GimpGeglProcedure *gegl_procedure = GIMP_GEGL_PROCEDURE (procedure);
GimpRunMode run_mode;
GimpObject *settings;
GimpTool *active_tool;
const gchar *tool_name;
run_mode = g_value_get_enum (gimp_value_array_index (args, 0));
settings = g_value_get_object (gimp_value_array_index (args, 3));
......@@ -323,23 +327,23 @@ gimp_gegl_procedure_execute_async (GimpProcedure *procedure,
gimp_procedure_get_label (procedure));
}
if (! strcmp (procedure->original_name, "gimp:brightness-contrast"))
if (! strcmp (gegl_procedure->operation, "gimp:brightness-contrast"))
{
tool_name = "gimp-brightness-contrast-tool";
}
else if (! strcmp (procedure->original_name, "gimp:curves"))
else if (! strcmp (gegl_procedure->operation, "gimp:curves"))
{
tool_name = "gimp-curves-tool";
}
else if (! strcmp (procedure->original_name, "gimp:levels"))
else if (! strcmp (gegl_procedure->operation, "gimp:levels"))
{
tool_name = "gimp-levels-tool";
}
else if (! strcmp (procedure->original_name, "gimp:threshold"))
else if (! strcmp (gegl_procedure->operation, "gimp:threshold"))
{
tool_name = "gimp-threshold-tool";
}
else if (! strcmp (procedure->original_name, "gimp:offset"))
else if (! strcmp (gegl_procedure->operation, "gimp:offset"))
{
tool_name = "gimp-offset-tool";
}
......@@ -384,7 +388,7 @@ gimp_gegl_procedure_execute_async (GimpProcedure *procedure,
if (! strcmp (tool_name, "gimp-operation-tool"))
{
gimp_operation_tool_set_operation (GIMP_OPERATION_TOOL (active_tool),
procedure->original_name,
gegl_procedure->operation,
gimp_procedure_get_label (procedure),
gimp_procedure_get_label (procedure),
gimp_procedure_get_label (procedure),
......@@ -430,6 +434,7 @@ gimp_gegl_procedure_new (Gimp *gimp,
gegl_procedure = GIMP_GEGL_PROCEDURE (procedure);
gegl_procedure->operation = g_strdup (operation);
gegl_procedure->default_run_mode = default_run_mode;
gegl_procedure->menu_label = g_strdup (menu_label);
gegl_procedure->help_id = g_strdup (help_id);
......@@ -440,7 +445,6 @@ gimp_gegl_procedure_new (Gimp *gimp,
gimp_object_set_name (GIMP_OBJECT (procedure), name);
gimp_viewable_set_icon_name (GIMP_VIEWABLE (procedure), icon_name);
gimp_procedure_set_strings (procedure,
operation,
tooltip,
tooltip,
"author", "copyright", "date",
......
......@@ -40,6 +40,8 @@ struct _GimpGeglProcedure
{
GimpProcedure parent_instance;
gchar *operation;
GimpRunMode default_run_mode;
GimpObject *default_settings;
......
......@@ -69,7 +69,6 @@ file_data_init (Gimp *gimp)
gimp_object_set_static_name (GIMP_OBJECT (procedure), "file-gbr-load");
gimp_procedure_set_static_strings (procedure,
"file-gbr-load",
"Loads GIMP brushes",
"Loads GIMP brushes (1 or 4 bpp "
"and old .gpb format)",
......@@ -139,7 +138,6 @@ file_data_init (Gimp *gimp)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"file-gbr-save-internal");
gimp_procedure_set_static_strings (procedure,
"file-gbr-save-internal",
"Exports Gimp brush file (.GBR)",
"Exports Gimp brush file (.GBR)",
"Tim Newsome, Michael Natterer",
......@@ -221,7 +219,6 @@ file_data_init (Gimp *gimp)
gimp_object_set_static_name (GIMP_OBJECT (procedure), "file-gih-load");
gimp_procedure_set_static_strings (procedure,
"file-gih-load",
"Loads GIMP animated brushes",
"This procedure loads a GIMP brush "
"pipe as an image.",
......@@ -289,7 +286,6 @@ file_data_init (Gimp *gimp)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"file-gih-save-internal");
gimp_procedure_set_static_strings (procedure,
"file-gih-save-internal",
"Exports Gimp animated brush file (.gih)",
"Exports Gimp animated brush file (.gih)",
"Tor Lillqvist, Michael Natterer",
......@@ -379,7 +375,6 @@ file_data_init (Gimp *gimp)
gimp_object_set_static_name (GIMP_OBJECT (procedure), "file-pat-load");
gimp_procedure_set_static_strings (procedure,
"file-pat-load",
"Loads GIMP patterns",
"Loads GIMP patterns",
"Tim Newsome, Michael Natterer",
......@@ -445,7 +440,6 @@ file_data_init (Gimp *gimp)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"file-pat-save-internal");
gimp_procedure_set_static_strings (procedure,
"file-pat-save-internal",
"Exports Gimp pattern file (.PAT)",
"Exports Gimp pattern file (.PAT)",
"Tim Newsome, Michael Natterer",
......@@ -523,7 +517,6 @@ file_data_init (Gimp *gimp)
gimp_object_set_static_name (GIMP_OBJECT (procedure), "file-gex-load");
gimp_procedure_set_static_strings (procedure,
"file-gex-load",
"Loads GIMP extension",
"Loads GIMP extension",
"Jehan", "Jehan", "2019",
......
......@@ -743,7 +743,7 @@ gimp_option_dump_pdb_procedures_deprecated (const gchar *option_name,
{
GimpProcedure *procedure = GIMP_PROCEDURE (iter->data);
g_print ("%s\n", procedure->original_name);
g_print ("%s\n", gimp_object_get_name (procedure));
}
g_list_free (deprecated_procs);
......
......@@ -921,7 +921,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-new");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-new",
"Creates a new brush.",
"This procedure creates a new, uninitialized brush.",
"Michael Natterer <mitch@gimp.org>",
......@@ -952,7 +951,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-duplicate");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-duplicate",
"Duplicates a brush.",
"This procedure creates an identical brush by a different name.",
"Michael Natterer <mitch@gimp.org>",
......@@ -983,7 +981,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-is-generated");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-is-generated",
"Tests if brush is generated.",
"Returns TRUE if this brush is parametric, FALSE for other types.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1013,7 +1010,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-rename");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-rename",
"Renames a brush.",
"This procedure renames a brush.",
"Michael Natterer <mitch@gimp.org>",
......@@ -1051,7 +1047,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-delete");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-delete",
"Deletes a brush.",
"This procedure deletes a brush.",
"Michael Natterer <mitch@gimp.org>",
......@@ -1075,7 +1070,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-is-editable");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-is-editable",
"Tests if brush can be edited.",
"Returns TRUE if you have permission to change the brush.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1105,7 +1099,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-get-info");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-info",
"Retrieves information about the specified brush.",
"This procedure retrieves information about the specified brush: brush extents (width and height), color depth and mask depth.",
"Michael Natterer <mitch@gimp.org>",
......@@ -1153,7 +1146,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-get-pixels");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-pixels",
"Retrieves information about the specified brush.",
"This procedure retrieves information about the specified brush. This includes the brush extents (width and height) and its pixels data.",
"Michael Natterer <mitch@gimp.org>",
......@@ -1223,7 +1215,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-get-spacing");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-spacing",
"Gets the brush spacing.",
"This procedure returns the spacing setting for the specified brush. The return value is an integer between 0 and 1000 which represents percentage of the maximum of the width and height of the mask.",
"Michael Natterer <mitch@gimp.org>",
......@@ -1253,7 +1244,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-set-spacing");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-spacing",
"Sets the brush spacing.",
"This procedure modifies the spacing setting for the specified brush. The value should be a integer between 0 and 1000.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1283,7 +1273,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-get-shape");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-shape",
"Gets the shape of a generated brush.",
"This procedure gets the shape value for a generated brush. If called for any other type of brush, it does not succeed. The current possibilities are Circle (GIMP_BRUSH_GENERATED_CIRCLE), Square (GIMP_BRUSH_GENERATED_SQUARE), and Diamond (GIMP_BRUSH_GENERATED_DIAMOND). Other shapes are likely to be added in the future.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1314,7 +1303,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-set-shape");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-shape",
"Sets the shape of a generated brush.",
"This procedure sets the shape value for a generated brush. If called for any other type of brush, it does not succeed. The current possibilities are Circle (GIMP_BRUSH_GENERATED_CIRCLE), Square (GIMP_BRUSH_GENERATED_SQUARE), and Diamond (GIMP_BRUSH_GENERATED_DIAMOND). Other shapes are likely to be added in the future.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1352,7 +1340,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-get-radius");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-radius",
"Gets the radius of a generated brush.",
"This procedure gets the radius value for a generated brush. If called for any other type of brush, it does not succeed.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1382,7 +1369,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-set-radius");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-radius",
"Sets the radius of a generated brush.",
"This procedure sets the radius for a generated brush. If called for any other type of brush, it does not succeed.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1418,7 +1404,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-get-spikes");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-spikes",
"Gets the number of spikes for a generated brush.",
"This procedure gets the number of spikes for a generated brush. If called for any other type of brush, it does not succeed.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1448,7 +1433,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-set-spikes");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-spikes",
"Sets the number of spikes for a generated brush.",
"This procedure sets the number of spikes for a generated brush. If called for any other type of brush, it does not succeed.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1484,7 +1468,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-get-hardness");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-hardness",
"Gets the hardness of a generated brush.",
"This procedure gets the hardness of a generated brush. The hardness of a brush is the amount its intensity fades at the outside edge, as a float between 0.0 and 1.0. If called for any other type of brush, the function does not succeed.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1514,7 +1497,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-set-hardness");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-hardness",
"Sets the hardness of a generated brush.",
"This procedure sets the hardness for a generated brush. If called for any other type of brush, it does not succeed. The value should be a float between 0.0 and 1.0.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1550,7 +1532,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-get-aspect-ratio");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-aspect-ratio",
"Gets the aspect ratio of a generated brush.",
"This procedure gets the aspect ratio of a generated brush. If called for any other type of brush, it does not succeed. The return value is a float between 0.0 and 1000.0.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1580,7 +1561,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-set-aspect-ratio");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-aspect-ratio",
"Sets the aspect ratio of a generated brush.",
"This procedure sets the aspect ratio for a generated brush. If called for any other type of brush, it does not succeed. The value should be a float between 0.0 and 1000.0.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1616,7 +1596,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-get-angle");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-angle",
"Gets the rotation angle of a generated brush.",
"This procedure gets the angle of rotation for a generated brush. If called for any other type of brush, it does not succeed.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......@@ -1646,7 +1625,6 @@ register_brush_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brush-set-angle");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-angle",
"Sets the rotation angle of a generated brush.",
"This procedure sets the rotation angle for a generated brush. If called for any other type of brush, it does not succeed.",
"Bill Skaggs <weskaggs@primate.ucdavis.edu>",
......
......@@ -159,7 +159,6 @@ register_brush_select_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brushes-popup");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-popup",
"Invokes the Gimp brush selection.",
"This procedure opens the brush selection dialog.",
"Andy Thomas",
......@@ -216,7 +215,6 @@ register_brush_select_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brushes-close-popup");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-close-popup",
"Close the brush selection dialog.",
"This procedure closes an opened brush selection dialog.",
"Andy Thomas",
......@@ -240,7 +238,6 @@ register_brush_select_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brushes-set-popup");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-set-popup",
"Sets the current brush in a brush selection dialog.",
"Sets the current brush in a brush selection dialog.",
"Andy Thomas",
......
......@@ -102,7 +102,6 @@ register_brushes_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brushes-refresh");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-refresh",
"Refresh current brushes. This function always succeeds.",
"This procedure retrieves all brushes currently in the user's brush path and updates the brush dialogs accordingly.",
"Seth Burgess",
......@@ -119,7 +118,6 @@ register_brushes_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-brushes-get-list");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-get-list",
"Retrieve a complete listing of the available brushes.",
"This procedure returns a complete listing of available GIMP brushes. Each name returned can be used as input to the 'gimp-context-set-brush' procedure.",
"Spencer Kimball & Peter Mattis",
......
......@@ -294,7 +294,6 @@ register_buffer_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-buffers-get-list");
gimp_procedure_set_static_strings (procedure,
"gimp-buffers-get-list",
"Retrieve a complete listing of the available buffers.",
"This procedure returns a complete listing of available named buffers.",
"Michael Natterer <mitch@gimp.org>",
......@@ -329,7 +328,6 @@ register_buffer_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-buffer-rename");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-rename",
"Renames a named buffer.",
"This procedure renames a named buffer.",
"Michael Natterer <mitch@gimp.org>",
......@@ -367,7 +365,6 @@ register_buffer_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-buffer-delete");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-delete",
"Deletes a named buffer.",
"This procedure deletes a named buffer.",
"David Gowers <neota@softhome.net>",
......@@ -391,7 +388,6 @@ register_buffer_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-buffer-get-width");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-width",
"Retrieves the specified buffer's width.",
"This procedure retrieves the specified named buffer's width.",
"Michael Natterer <mitch@gimp.org>",
......@@ -421,7 +417,6 @@ register_buffer_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-buffer-get-height");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-height",
"Retrieves the specified buffer's height.",
"This procedure retrieves the specified named buffer's height.",
"Michael Natterer <mitch@gimp.org>",
......@@ -451,7 +446,6 @@ register_buffer_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-buffer-get-bytes");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-bytes",
"Retrieves the specified buffer's bytes.",
"This procedure retrieves the specified named buffer's bytes.",
"Michael Natterer <mitch@gimp.org>",
......@@ -481,7 +475,6 @@ register_buffer_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-buffer-get-image-type");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-image-type",
"Retrieves the specified buffer's image type.",
"This procedure retrieves the specified named buffer's image type.",
"Michael Natterer <mitch@gimp.org>",
......
......@@ -380,7 +380,6 @@ register_channel_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-new");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-new",
"Create a new channel.",
"This procedure creates a new channel with the specified width, height, name, opacity and color.\n"
"The new channel still needs to be added to the image, as this is not automatic. Add the new channel with 'gimp-image-insert-channel'. Other attributes, such as channel visibility, should be set with explicit procedure calls.\n"
......@@ -443,7 +442,6 @@ register_channel_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-new-from-component");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-new-from-component",
"Create a new channel from a color component",
"This procedure creates a new channel from a color component.\n"
"The new channel still needs to be added to the image, as this is not automatic. Add the new channel with 'gimp-image-insert-channel'. Other attributes, such as channel visibility, should be set with explicit procedure calls.",
......@@ -487,7 +485,6 @@ register_channel_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-copy");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-copy",
"Copy a channel.",
"This procedure copies the specified channel and returns the copy.\n"
"The new channel still needs to be added to the image, as this is not automatic. Add the new channel with 'gimp-image-insert-channel'.",
......@@ -517,7 +514,6 @@ register_channel_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-combine-masks");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-combine-masks",
"Combine two channel masks.",
"This procedure combines two channel masks. The result is stored in the first channel.",
"Spencer Kimball & Peter Mattis",
......@@ -565,7 +561,6 @@ register_channel_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-get-show-masked");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-get-show-masked",
"Get the composite method of the specified channel.",
"This procedure returns the specified channel's composite method. If it is TRUE, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
"Spencer Kimball & Peter Mattis",
......@@ -594,7 +589,6 @@ register_channel_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-set-show-masked");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-set-show-masked",
"Set the composite method of the specified channel.",
"This procedure sets the specified channel's composite method. If it is TRUE, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
"Spencer Kimball & Peter Mattis",
......@@ -623,7 +617,6 @@ register_channel_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-get-opacity");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-get-opacity",
"Get the opacity of the specified channel.",
"This procedure returns the specified channel's opacity.",
"Spencer Kimball & Peter Mattis",
......@@ -652,7 +645,6 @@ register_channel_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-set-opacity");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-set-opacity",
"Set the opacity of the specified channel.",
"This procedure sets the specified channel's opacity.",
"Spencer Kimball & Peter Mattis",
......@@ -681,7 +673,6 @@ register_channel_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-get-color");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-get-color",
"Get the compositing color of the specified channel.",
"This procedure returns the specified channel's compositing color.",
"Spencer Kimball & Peter Mattis",
......@@ -711,7 +702,6 @@ register_channel_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-channel-set-color");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-set-color",
"Set the compositing color of the specified channel.",
"This procedure sets the specified channel's compositing color.",
"Spencer Kimball & Peter Mattis",
......
This diff is collapsed.
......@@ -99,7 +99,6 @@ register_debug_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-debug-timer-start");
gimp_procedure_set_static_strings (procedure,
"gimp-debug-timer-start",
"Starts measuring elapsed time.",
"This procedure starts a timer, measuring the elapsed time since the call. Each call to this procedure should be matched by a call to 'gimp-debug-timer-end', which returns the elapsed time.\n"
"If there is already an active timer, it is not affected by the call, however, a matching 'gimp-debug-timer-end' call is still required.\n"
......@@ -119,7 +118,6 @@ register_debug_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-debug-timer-end");
gimp_procedure_set_static_strings (procedure,
"gimp-debug-timer-end",
"Finishes measuring elapsed time.",
"This procedure stops the timer started by a previous 'gimp-debug-timer-start' call, and prints and returns the elapsed time.\n"
"If there was already an active timer at the time of corresponding call to 'gimp-debug-timer-start', a dummy value is returned.\n"
......
......@@ -212,7 +212,6 @@ register_display_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-display-is-valid");
gimp_procedure_set_static_strings (procedure,
"gimp-display-is-valid",
"Returns TRUE if the display is valid.",
"This procedure checks if the given display ID is valid and refers to an existing display.",
"Sven Neumann <sven@gimp.org>",
......@@ -241,7 +240,6 @@ register_display_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-display-new");
gimp_procedure_set_static_strings (procedure,
"gimp-display-new",
"Create a new display for the specified image.",
"Creates a new display for the specified image. If the image already has a display, another is added. Multiple displays are handled transparently by GIMP. The newly created display is returned and can be subsequently destroyed with a call to 'gimp-display-delete'. This procedure only makes sense for use with the GIMP UI, and will result in an execution error if called when GIMP has no UI.",
"Spencer Kimball & Peter Mattis",
......@@ -270,7 +268,6 @@ register_display_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-display-delete");
gimp_procedure_set_static_strings (procedure,
"gimp-display-delete",
"Delete the specified display.",
"This procedure removes the specified display. If this is the last remaining display for the underlying image, then the image is deleted also. Note that the display is closed no matter if the image is dirty or not. Better save the image before calling this procedure.",
"Spencer Kimball & Peter Mattis",
......@@ -293,7 +290,6 @@ register_display_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-display-get-window-handle");
gimp_procedure_set_static_strings (procedure,
"gimp-display-get-window-handle",
"Get a handle to the native window for an image display.",
"This procedure returns a handle to the native window for a given image display. For example in the X backend of GDK, a native window handle is an Xlib XID. A value of 0 is returned for an invalid display or if this function is unimplemented for the windowing system that is being used.",
"Sven Neumann <sven@gimp.org>",
......@@ -322,7 +318,6 @@ register_display_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-displays-flush");
gimp_procedure_set_static_strings (procedure,
"gimp-displays-flush",
"Flush all internal changes to the user interface",
"This procedure takes no arguments and returns nothing except a success status. Its purpose is to flush all pending updates of image manipulations to the user interface. It should be called whenever appropriate.",
"Spencer Kimball & Peter Mattis",
......@@ -339,7 +334,6 @@ register_display_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-displays-reconnect");
gimp_procedure_set_static_strings (procedure,
"gimp-displays-reconnect",
"Reconnect displays from one image to another image.",
"This procedure connects all displays of the old_image to the new_image. If the old_image has no display or new_image already has a display the reconnect is not performed and the procedure returns without success. You should rarely need to use this function.",
"Spencer Kimball & Peter Mattis",
......
......@@ -979,7 +979,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-get-format");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-get-format",
"Returns the drawable's Babl format",
"This procedure returns the drawable's Babl format.\n"
"Note that the actual PDB procedure only transfers the format's encoding. In order to get to the real format, the libbgimp C wrapper must be used.",
......@@ -1010,7 +1009,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-get-thumbnail-format");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-get-thumbnail-format",
"Returns the drawable's thumbnail Babl format",
"This procedure returns the drawable's thumbnail Babl format.\n"
"Thumbnails are always 8-bit images, see 'gimp-drawable-thumbnail' and 'gimp-drawable-sub-thmbnail'.",
......@@ -1041,7 +1039,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-type");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-type",
"Returns the drawable's type.",
"This procedure returns the drawable's type.",
"Spencer Kimball & Peter Mattis",
......@@ -1071,7 +1068,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-type-with-alpha");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-type-with-alpha",
"Returns the drawable's type with alpha.",
"This procedure returns the drawable's type as if had an alpha channel. If the type is currently Gray, for instance, the returned type would be GrayA. If the drawable already has an alpha channel, the drawable's type is simply returned.",
"Spencer Kimball & Peter Mattis",
......@@ -1107,7 +1103,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-has-alpha");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-has-alpha",
"Returns TRUE if the drawable has an alpha channel.",
"This procedure returns whether the specified drawable has an alpha channel. This can only be true for layers, and the associated type will be one of: { RGBA , GRAYA, INDEXEDA }.",
"Spencer Kimball & Peter Mattis",
......@@ -1136,7 +1131,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-is-rgb");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-is-rgb",
"Returns whether the drawable is an RGB type.",
"This procedure returns TRUE if the specified drawable is of type { RGB, RGBA }.",
"Spencer Kimball & Peter Mattis",
......@@ -1165,7 +1159,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-is-gray");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-is-gray",
"Returns whether the drawable is a grayscale type.",
"This procedure returns TRUE if the specified drawable is of type { Gray, GrayA }.",
"Spencer Kimball & Peter Mattis",
......@@ -1194,7 +1187,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-is-indexed");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-is-indexed",
"Returns whether the drawable is an indexed type.",
"This procedure returns TRUE if the specified drawable is of type { Indexed, IndexedA }.",
"Spencer Kimball & Peter Mattis",
......@@ -1223,7 +1215,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-bpp");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-bpp",
"Returns the bytes per pixel.",
"This procedure returns the number of bytes per pixel.",
"Spencer Kimball & Peter Mattis",
......@@ -1252,7 +1243,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-width");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-width",
"Returns the width of the drawable.",
"This procedure returns the specified drawable's width in pixels.",
"Spencer Kimball & Peter Mattis",
......@@ -1281,7 +1271,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-height");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-height",
"Returns the height of the drawable.",
"This procedure returns the specified drawable's height in pixels.",
"Spencer Kimball & Peter Mattis",
......@@ -1310,7 +1299,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-offsets");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-offsets",
"Returns the offsets for the drawable.",
"This procedure returns the specified drawable's offsets. This only makes sense if the drawable is a layer since channels are anchored. The offsets of a channel will be returned as 0.",
"Spencer Kimball & Peter Mattis",
......@@ -1345,7 +1333,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-mask-bounds");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-mask-bounds",
"Find the bounding box of the current selection in relation to the specified drawable.",
"This procedure returns whether there is a selection. If there is one, the upper left and lower right-hand corners of its bounding box are returned. These coordinates are specified relative to the drawable's origin, and bounded by the drawable's extents. Please note that the pixel specified by the lower right-hand coordinate of the bounding box is not part of the selection. The selection ends at the upper left corner of this pixel. This means the width of the selection can be calculated as (x2 - x1), its height as (y2 - y1).\n"
"Note that the returned boolean does NOT correspond with the returned region being empty or not, it always returns whether the selection is non_empty. See 'gimp-drawable-mask-intersect' for a boolean return value which is more useful in most cases.",
......@@ -1399,7 +1386,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-mask-intersect");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-mask-intersect",
"Find the bounding box of the current selection in relation to the specified drawable.",
"This procedure returns whether there is an intersection between the drawable and the selection. Unlike 'gimp-drawable-mask-bounds', the intersection's bounds are returned as x, y, width, height.\n"
"If there is no selection this function returns TRUE and the returned bounds are the extents of the whole drawable.",
......@@ -1453,7 +1439,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-merge-shadow");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-merge-shadow",
"Merge the shadow buffer with the specified drawable.",
"This procedure combines the contents of the drawable's shadow buffer (for temporary processing) with the specified drawable. The 'undo' parameter specifies whether to add an undo step for the operation. Requesting no undo is useful for such applications as 'auto-apply'.",
"Spencer Kimball & Peter Mattis",
......@@ -1482,7 +1467,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-free-shadow");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-free-shadow",
"Free the specified drawable's shadow data (if it exists).",
"This procedure is intended as a memory saving device. If any shadow memory has been allocated, it will be freed automatically when the drawable is removed from the image, or when the plug-in procedure which allocated it returns.",
"Michael Natterer <mitch@gimp.org>",
......@@ -1505,7 +1489,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-update");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-update",
"Update the specified region of the drawable.",
"This procedure updates the specified region of the drawable. The (x, y) coordinate pair is relative to the drawable's origin, not to the image origin. Therefore, the entire drawable can be updated using (0, 0, width, height).",
"Spencer Kimball & Peter Mattis",
......@@ -1552,7 +1535,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-get-pixel");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-get-pixel",
"Gets the value of the pixel at the specified coordinates.",
"This procedure gets the pixel value at the specified coordinates. The 'num_channels' argument must always be equal to the bytes-per-pixel value for the specified drawable.",
"Spencer Kimball & Peter Mattis",
......@@ -1598,7 +1580,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-set-pixel");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-set-pixel",
"Sets the value of the pixel at the specified coordinates.",
"This procedure sets the pixel value at the specified coordinates. The 'num_channels' argument must always be equal to the bytes-per-pixel value for the specified drawable. Note that this function is not undoable, you should use it only on drawables you just created yourself.",
"Spencer Kimball & Peter Mattis",
......@@ -1644,7 +1625,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-fill");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-fill",
"Fill the drawable with the specified fill mode.",
"This procedure fills the drawable. If the fill mode is foreground the current foreground color is used. If the fill mode is background, the current background color is used. If the fill type is white, then white is used. Transparent fill only affects layers with an alpha channel, in which case the alpha channel is set to transparent. If the drawable has no alpha channel, it is filled to white. No fill leaves the drawable's contents undefined.\n"
"This procedure is unlike 'gimp-edit-fill' or the bucket fill tool because it fills regardless of a selection. Its main purpose is to fill a newly created drawable before adding it to the image. This operation cannot be undone.",
......@@ -1675,7 +1655,6 @@ register_drawable_procs (GimpPDB *pdb)
gimp_object_set_static_name (GIMP_OBJECT (procedure),
"gimp-drawable-offset");
gimp_procedure_set_static_strings (procedure,
"gimp-drawable-offset",
"Offset the drawable by the specified amounts in the X and Y directions",
"This procedure offsets the specified drawable by the amounts specified by 'offset_x' and 'offset_y'. If 'wrap_around' is set to TRUE, then portions of the drawable which are offset out of bounds are wrapped around. Alternatively, the undefined regions of the drawable can be filled with transparency or the background color, as specified by the 'fill-type' parameter.",