From 8cffac44d583443d1b6bb4da6c779b272d4d00ab Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Fri, 31 Mar 2006 14:00:50 +0000 Subject: [PATCH] added new member "gboolean static_proc" which indicates whether a 2006-03-31 Michael Natterer * app/pdb/gimpprocedure.[ch] (struct ProcRecord): added new member "gboolean static_proc" which indicates whether a ProcRecord struct and its strings are static. (gimp_procedure_dispose): new function which frees the procedure's args and values, and its strings if it is not static. * app/xcf/xcf.c * tools/pdbgen/app.pl: set "static_proc" to TRUE for static procs. * app/pdb/procedural_db.c (procedural_db_free): call gimp_procedure_free() or gimp_procedure_dispose(), depending on procedure->static_proc. * app/pdb/procedural_db.h: removed #if 0'ed cruft. * app/plug-in/plug-in-proc-def.[ch]: removed plug_in_proc_def_get_proc(). * app/file/file-open.c * app/file/file-save.c * tools/pdbgen/pdb/fileops.pdb: access proc_def->procedure directly. * app/pdb/*_cmds.c: regenerated. --- ChangeLog | 27 +++++++++++ app/file/file-open.c | 13 ++---- app/file/file-save.c | 5 +- app/pdb/brush_cmds.c | 22 +++++++++ app/pdb/brush_select_cmds.c | 3 ++ app/pdb/brushes_cmds.c | 6 +++ app/pdb/buffer_cmds.c | 7 +++ app/pdb/channel_cmds.c | 10 ++++ app/pdb/color_cmds.c | 16 +++++++ app/pdb/context_cmds.c | 24 ++++++++++ app/pdb/convert_cmds.c | 3 ++ app/pdb/display_cmds.c | 5 ++ app/pdb/drawable_cmds.c | 35 ++++++++++++++ app/pdb/drawable_transform_cmds.c | 16 +++++++ app/pdb/edit_cmds.c | 15 ++++++ app/pdb/fileops_cmds.c | 43 ++++++++++------- app/pdb/floating_sel_cmds.c | 6 +++ app/pdb/font_select_cmds.c | 3 ++ app/pdb/fonts_cmds.c | 2 + app/pdb/gimp-pdb.c | 13 ++---- app/pdb/gimp-pdb.h | 77 ------------------------------- app/pdb/gimppdb.c | 13 ++---- app/pdb/gimppdb.h | 77 ------------------------------- app/pdb/gimppluginprocedure.c | 8 ---- app/pdb/gimppluginprocedure.h | 1 - app/pdb/gimpprocedure.c | 72 +++++++++++++++++++++-------- app/pdb/gimpprocedure.h | 39 ++++++++-------- app/pdb/gimprc_cmds.c | 7 +++ app/pdb/gradient_cmds.c | 30 ++++++++++++ app/pdb/gradient_select_cmds.c | 3 ++ app/pdb/gradients_cmds.c | 5 ++ app/pdb/grid_cmds.c | 10 ++++ app/pdb/guides_cmds.c | 6 +++ app/pdb/help_cmds.c | 1 + app/pdb/image_cmds.c | 72 +++++++++++++++++++++++++++++ app/pdb/layer_cmds.c | 27 +++++++++++ app/pdb/message_cmds.c | 3 ++ app/pdb/misc_cmds.c | 3 ++ app/pdb/paint_tools_cmds.c | 15 ++++++ app/pdb/palette_cmds.c | 14 ++++++ app/pdb/palette_select_cmds.c | 3 ++ app/pdb/palettes_cmds.c | 4 ++ app/pdb/parasite_cmds.c | 16 +++++++ app/pdb/paths_cmds.c | 16 +++++++ app/pdb/pattern_cmds.c | 2 + app/pdb/pattern_select_cmds.c | 3 ++ app/pdb/patterns_cmds.c | 4 ++ app/pdb/plug_in_cmds.c | 6 +++ app/pdb/procedural_db.c | 13 ++---- app/pdb/procedural_db.h | 77 ------------------------------- app/pdb/procedural_db_cmds.c | 9 ++++ app/pdb/progress_cmds.c | 8 ++++ app/pdb/selection_cmds.c | 17 +++++++ app/pdb/selection_tools_cmds.c | 5 ++ app/pdb/text_tool_cmds.c | 4 ++ app/pdb/transform_tools_cmds.c | 6 +++ app/pdb/undo_cmds.c | 7 +++ app/pdb/unit_cmds.c | 12 +++++ app/pdb/vectors_cmds.c | 23 +++++++++ app/plug-in/gimppluginprocedure.c | 8 ---- app/plug-in/gimppluginprocedure.h | 1 - app/plug-in/plug-in-proc-def.c | 8 ---- app/plug-in/plug-in-proc-def.h | 1 - app/xcf/xcf.c | 2 + tools/pdbgen/app.pl | 1 + tools/pdbgen/pdb/fileops.pdb | 32 ++++++------- 66 files changed, 678 insertions(+), 367 deletions(-) diff --git a/ChangeLog b/ChangeLog index 55688034b6..73ec1578ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,30 @@ +2006-03-31 Michael Natterer + + * app/pdb/gimpprocedure.[ch] (struct ProcRecord): added new member + "gboolean static_proc" which indicates whether a ProcRecord struct + and its strings are static. + + (gimp_procedure_dispose): new function which frees the procedure's + args and values, and its strings if it is not static. + + * app/xcf/xcf.c + * tools/pdbgen/app.pl: set "static_proc" to TRUE for static procs. + + * app/pdb/procedural_db.c (procedural_db_free): call + gimp_procedure_free() or gimp_procedure_dispose(), depending on + procedure->static_proc. + + * app/pdb/procedural_db.h: removed #if 0'ed cruft. + + * app/plug-in/plug-in-proc-def.[ch]: removed + plug_in_proc_def_get_proc(). + + * app/file/file-open.c + * app/file/file-save.c + * tools/pdbgen/pdb/fileops.pdb: access proc_def->procedure directly. + + * app/pdb/*_cmds.c: regenerated. + 2006-03-31 Sven Neumann * app/dialogs/Makefile.am diff --git a/app/file/file-open.c b/app/file/file-open.c index 9a95b76ae8..a546434346 100644 --- a/app/file/file-open.c +++ b/app/file/file-open.c @@ -86,11 +86,10 @@ file_open_image (Gimp *gimp, const gchar **mime_type, GError **error) { - const ProcRecord *proc; - Argument *return_vals; - gint n_return_vals; - gchar *filename; - GimpImage *image = NULL; + Argument *return_vals; + gint n_return_vals; + gchar *filename; + GimpImage *image = NULL; g_return_val_if_fail (GIMP_IS_GIMP (gimp), NULL); g_return_val_if_fail (GIMP_IS_CONTEXT (context), NULL); @@ -139,10 +138,8 @@ file_open_image (Gimp *gimp, filename = g_strdup (uri); } - proc = plug_in_proc_def_get_proc (file_proc); - return_vals = procedural_db_run_proc (gimp, context, progress, - proc->name, + file_proc->procedure->name, &n_return_vals, GIMP_PDB_INT32, run_mode, GIMP_PDB_STRING, filename, diff --git a/app/file/file-save.c b/app/file/file-save.c index 4489e71dd3..b56875703e 100644 --- a/app/file/file-save.c +++ b/app/file/file-save.c @@ -78,7 +78,6 @@ file_save (GimpImage *image, gboolean save_a_copy, GError **error) { - const ProcRecord *proc; Argument *return_vals; gint n_return_vals; GimpPDBStatusType status; @@ -128,11 +127,9 @@ file_save (GimpImage *image, /* ref the image, so it can't get deleted during save */ g_object_ref (image); - proc = plug_in_proc_def_get_proc (file_proc); - return_vals = procedural_db_run_proc (image->gimp, context, progress, - proc->name, + file_proc->procedure->name, &n_return_vals, GIMP_PDB_INT32, run_mode, GIMP_PDB_IMAGE, gimp_image_get_ID (image), diff --git a/app/pdb/brush_cmds.c b/app/pdb/brush_cmds.c index 122187f2c3..7cf3688f7f 100644 --- a/app/pdb/brush_cmds.c +++ b/app/pdb/brush_cmds.c @@ -685,6 +685,7 @@ brush_new_invoker (ProcRecord *proc_record, static ProcRecord brush_new_proc = { + TRUE, "gimp-brush-new", "gimp-brush-new", "Creates a new brush", @@ -742,6 +743,7 @@ brush_duplicate_invoker (ProcRecord *proc_record, static ProcRecord brush_duplicate_proc = { + TRUE, "gimp-brush-duplicate", "gimp-brush-duplicate", "Duplicates a brush", @@ -790,6 +792,7 @@ brush_is_generated_invoker (ProcRecord *proc_record, static ProcRecord brush_is_generated_proc = { + TRUE, "gimp-brush-is-generated", "gimp-brush-is-generated", "Tests if brush is generated", @@ -843,6 +846,7 @@ brush_rename_invoker (ProcRecord *proc_record, static ProcRecord brush_rename_proc = { + TRUE, "gimp-brush-rename", "gimp-brush-rename", "Rename a brush", @@ -896,6 +900,7 @@ brush_delete_invoker (ProcRecord *proc_record, static ProcRecord brush_delete_proc = { + TRUE, "gimp-brush-delete", "gimp-brush-delete", "Deletes a brush", @@ -944,6 +949,7 @@ brush_is_editable_invoker (ProcRecord *proc_record, static ProcRecord brush_is_editable_proc = { + TRUE, "gimp-brush-is-editable", "gimp-brush-is-editable", "Tests if brush can be edited", @@ -1005,6 +1011,7 @@ brush_get_info_invoker (ProcRecord *proc_record, static ProcRecord brush_get_info_proc = { + TRUE, "gimp-brush-get-info", "gimp-brush-get-info", "Retrieve information about the specified brush.", @@ -1083,6 +1090,7 @@ brush_get_pixels_invoker (ProcRecord *proc_record, static ProcRecord brush_get_pixels_proc = { + TRUE, "gimp-brush-get-pixels", "gimp-brush-get-pixels", "Retrieve information about the specified brush.", @@ -1131,6 +1139,7 @@ brush_get_spacing_invoker (ProcRecord *proc_record, static ProcRecord brush_get_spacing_proc = { + TRUE, "gimp-brush-get-spacing", "gimp-brush-get-spacing", "Get the brush spacing.", @@ -1174,6 +1183,7 @@ brush_set_spacing_invoker (ProcRecord *proc_record, static ProcRecord brush_set_spacing_proc = { + TRUE, "gimp-brush-set-spacing", "gimp-brush-set-spacing", "Set the brush spacing.", @@ -1222,6 +1232,7 @@ brush_get_shape_invoker (ProcRecord *proc_record, static ProcRecord brush_get_shape_proc = { + TRUE, "gimp-brush-get-shape", "gimp-brush-get-shape", "Get the shape of a generated brush.", @@ -1270,6 +1281,7 @@ brush_get_radius_invoker (ProcRecord *proc_record, static ProcRecord brush_get_radius_proc = { + TRUE, "gimp-brush-get-radius", "gimp-brush-get-radius", "Get the radius of a generated brush.", @@ -1318,6 +1330,7 @@ brush_get_spikes_invoker (ProcRecord *proc_record, static ProcRecord brush_get_spikes_proc = { + TRUE, "gimp-brush-get-spikes", "gimp-brush-get-spikes", "Get the number of spikes for a generated brush.", @@ -1366,6 +1379,7 @@ brush_get_hardness_invoker (ProcRecord *proc_record, static ProcRecord brush_get_hardness_proc = { + TRUE, "gimp-brush-get-hardness", "gimp-brush-get-hardness", "Get the hardness of a generated brush.", @@ -1414,6 +1428,7 @@ brush_get_aspect_ratio_invoker (ProcRecord *proc_record, static ProcRecord brush_get_aspect_ratio_proc = { + TRUE, "gimp-brush-get-aspect-ratio", "gimp-brush-get-aspect-ratio", "Get the aspect ratio of a generated brush.", @@ -1462,6 +1477,7 @@ brush_get_angle_invoker (ProcRecord *proc_record, static ProcRecord brush_get_angle_proc = { + TRUE, "gimp-brush-get-angle", "gimp-brush-get-angle", "Get the rotation angle of a generated brush.", @@ -1516,6 +1532,7 @@ brush_set_shape_invoker (ProcRecord *proc_record, static ProcRecord brush_set_shape_proc = { + TRUE, "gimp-brush-set-shape", "gimp-brush-set-shape", "Set the shape of a generated brush.", @@ -1570,6 +1587,7 @@ brush_set_radius_invoker (ProcRecord *proc_record, static ProcRecord brush_set_radius_proc = { + TRUE, "gimp-brush-set-radius", "gimp-brush-set-radius", "Set the radius of a generated brush.", @@ -1624,6 +1642,7 @@ brush_set_spikes_invoker (ProcRecord *proc_record, static ProcRecord brush_set_spikes_proc = { + TRUE, "gimp-brush-set-spikes", "gimp-brush-set-spikes", "Set the number of spikes for a generated brush.", @@ -1678,6 +1697,7 @@ brush_set_hardness_invoker (ProcRecord *proc_record, static ProcRecord brush_set_hardness_proc = { + TRUE, "gimp-brush-set-hardness", "gimp-brush-set-hardness", "Set the hardness of a generated brush.", @@ -1732,6 +1752,7 @@ brush_set_aspect_ratio_invoker (ProcRecord *proc_record, static ProcRecord brush_set_aspect_ratio_proc = { + TRUE, "gimp-brush-set-aspect-ratio", "gimp-brush-set-aspect-ratio", "Set the aspect ratio of a generated brush.", @@ -1786,6 +1807,7 @@ brush_set_angle_invoker (ProcRecord *proc_record, static ProcRecord brush_set_angle_proc = { + TRUE, "gimp-brush-set-angle", "gimp-brush-set-angle", "Set the rotation angle of a generated brush.", diff --git a/app/pdb/brush_select_cmds.c b/app/pdb/brush_select_cmds.c index c57449397f..5afb71f36b 100644 --- a/app/pdb/brush_select_cmds.c +++ b/app/pdb/brush_select_cmds.c @@ -192,6 +192,7 @@ brushes_popup_invoker (ProcRecord *proc_record, static ProcRecord brushes_popup_proc = { + TRUE, "gimp-brushes-popup", "gimp-brushes-popup", "Invokes the Gimp brush selection.", @@ -231,6 +232,7 @@ brushes_close_popup_invoker (ProcRecord *proc_record, static ProcRecord brushes_close_popup_proc = { + TRUE, "gimp-brushes-close-popup", "gimp-brushes-close-popup", "Popdown the Gimp brush selection.", @@ -282,6 +284,7 @@ brushes_set_popup_invoker (ProcRecord *proc_record, static ProcRecord brushes_set_popup_proc = { + TRUE, "gimp-brushes-set-popup", "gimp-brushes-set-popup", "Sets the current brush selection in a popup.", diff --git a/app/pdb/brushes_cmds.c b/app/pdb/brushes_cmds.c index ce6afa6dfc..6a57e325c9 100644 --- a/app/pdb/brushes_cmds.c +++ b/app/pdb/brushes_cmds.c @@ -229,6 +229,7 @@ brushes_refresh_invoker (ProcRecord *proc_record, static ProcRecord brushes_refresh_proc = { + TRUE, "gimp-brushes-refresh", "gimp-brushes-refresh", "Refresh current brushes. This function always succeeds.", @@ -276,6 +277,7 @@ brushes_get_list_invoker (ProcRecord *proc_record, static ProcRecord brushes_get_list_proc = { + TRUE, "gimp-brushes-get-list", "gimp-brushes-get-list", "Retrieve a complete listing of the available brushes.", @@ -330,6 +332,7 @@ brushes_get_brush_invoker (ProcRecord *proc_record, static ProcRecord brushes_get_brush_proc = { + TRUE, "gimp-brushes-get-brush", "gimp-brushes-get-brush", "This procedure is deprecated! Use 'gimp-context-get-brush' instead.", @@ -371,6 +374,7 @@ brushes_get_spacing_invoker (ProcRecord *proc_record, static ProcRecord brushes_get_spacing_proc = { + TRUE, "gimp-brushes-get-spacing", "gimp-brushes-get-spacing", "This procedure is deprecated! Use 'gimp-brush-get-spacing' instead.", @@ -406,6 +410,7 @@ brushes_set_spacing_invoker (ProcRecord *proc_record, static ProcRecord brushes_set_spacing_proc = { + TRUE, "gimp-brushes-set-spacing", "gimp-brushes-set-spacing", "This procedure is deprecated! Use 'gimp-brush-set-spacing' instead.", @@ -488,6 +493,7 @@ brushes_get_brush_data_invoker (ProcRecord *proc_record, static ProcRecord brushes_get_brush_data_proc = { + TRUE, "gimp-brushes-get-brush-data", "gimp-brushes-get-brush-data", "This procedure is deprecated! Use 'gimp-brush-get-pixels' instead.", diff --git a/app/pdb/buffer_cmds.c b/app/pdb/buffer_cmds.c index 22bda292e0..dc1d513d1e 100644 --- a/app/pdb/buffer_cmds.c +++ b/app/pdb/buffer_cmds.c @@ -240,6 +240,7 @@ buffers_get_list_invoker (ProcRecord *proc_record, static ProcRecord buffers_get_list_proc = { + TRUE, "gimp-buffers-get-list", "gimp-buffers-get-list", "Retrieve a complete listing of the available buffers.", @@ -293,6 +294,7 @@ buffer_rename_invoker (ProcRecord *proc_record, static ProcRecord buffer_rename_proc = { + TRUE, "gimp-buffer-rename", "gimp-buffer-rename", "Renames a named buffer.", @@ -334,6 +336,7 @@ buffer_delete_invoker (ProcRecord *proc_record, static ProcRecord buffer_delete_proc = { + TRUE, "gimp-buffer-delete", "gimp-buffer-delete", "Deletes a named buffer.", @@ -382,6 +385,7 @@ buffer_get_width_invoker (ProcRecord *proc_record, static ProcRecord buffer_get_width_proc = { + TRUE, "gimp-buffer-get-width", "gimp-buffer-get-width", "Retrieves the specified buffer's width.", @@ -430,6 +434,7 @@ buffer_get_height_invoker (ProcRecord *proc_record, static ProcRecord buffer_get_height_proc = { + TRUE, "gimp-buffer-get-height", "gimp-buffer-get-height", "Retrieves the specified buffer's height.", @@ -478,6 +483,7 @@ buffer_get_bytes_invoker (ProcRecord *proc_record, static ProcRecord buffer_get_bytes_proc = { + TRUE, "gimp-buffer-get-bytes", "gimp-buffer-get-bytes", "Retrieves the specified buffer's bytes.", @@ -526,6 +532,7 @@ buffer_get_image_type_invoker (ProcRecord *proc_record, static ProcRecord buffer_get_image_type_proc = { + TRUE, "gimp-buffer-get-image-type", "gimp-buffer-get-image-type", "Retrieves the specified buffer's image type.", diff --git a/app/pdb/channel_cmds.c b/app/pdb/channel_cmds.c index b8ef144f0d..aafd6e5d9f 100644 --- a/app/pdb/channel_cmds.c +++ b/app/pdb/channel_cmds.c @@ -383,6 +383,7 @@ channel_new_invoker (ProcRecord *proc_record, static ProcRecord channel_new_proc = { + TRUE, "gimp-channel-new", "gimp-channel-new", "Create a new channel.", @@ -436,6 +437,7 @@ channel_new_from_component_invoker (ProcRecord *proc_record, static ProcRecord channel_new_from_component_proc = { + TRUE, "gimp-channel-new-from-component", "gimp-channel-new-from-component", "Create a new channel from a color component", @@ -482,6 +484,7 @@ channel_copy_invoker (ProcRecord *proc_record, static ProcRecord channel_copy_proc = { + TRUE, "gimp-channel-copy", "gimp-channel-copy", "Copy a channel.", @@ -525,6 +528,7 @@ channel_combine_masks_invoker (ProcRecord *proc_record, static ProcRecord channel_combine_masks_proc = { + TRUE, "gimp-channel-combine-masks", "gimp-channel-combine-masks", "Combine two channel masks.", @@ -567,6 +571,7 @@ channel_get_show_masked_invoker (ProcRecord *proc_record, static ProcRecord channel_get_show_masked_proc = { + TRUE, "gimp-channel-get-show-masked", "gimp-channel-get-show-masked", "Get the composite method of the specified channel.", @@ -604,6 +609,7 @@ channel_set_show_masked_invoker (ProcRecord *proc_record, static ProcRecord channel_set_show_masked_proc = { + TRUE, "gimp-channel-set-show-masked", "gimp-channel-set-show-masked", "Set the composite method of the specified channel.", @@ -646,6 +652,7 @@ channel_get_opacity_invoker (ProcRecord *proc_record, static ProcRecord channel_get_opacity_proc = { + TRUE, "gimp-channel-get-opacity", "gimp-channel-get-opacity", "Get the opacity of the specified channel.", @@ -683,6 +690,7 @@ channel_set_opacity_invoker (ProcRecord *proc_record, static ProcRecord channel_set_opacity_proc = { + TRUE, "gimp-channel-set-opacity", "gimp-channel-set-opacity", "Set the opacity of the specified channel.", @@ -725,6 +733,7 @@ channel_get_color_invoker (ProcRecord *proc_record, static ProcRecord channel_get_color_proc = { + TRUE, "gimp-channel-get-color", "gimp-channel-get-color", "Get the compositing color of the specified channel.", @@ -765,6 +774,7 @@ channel_set_color_invoker (ProcRecord *proc_record, static ProcRecord channel_set_color_proc = { + TRUE, "gimp-channel-set-color", "gimp-channel-set-color", "Set the compositing color of the specified channel.", diff --git a/app/pdb/color_cmds.c b/app/pdb/color_cmds.c index 24443deb3e..626ddbab7a 100644 --- a/app/pdb/color_cmds.c +++ b/app/pdb/color_cmds.c @@ -640,6 +640,7 @@ brightness_contrast_invoker (ProcRecord *proc_record, static ProcRecord brightness_contrast_proc = { + TRUE, "gimp-brightness-contrast", "gimp-brightness-contrast", "Modify brightness/contrast in the specified drawable.", @@ -700,6 +701,7 @@ levels_invoker (ProcRecord *proc_record, static ProcRecord levels_proc = { + TRUE, "gimp-levels", "gimp-levels", "Modifies intensity levels in the specified drawable.", @@ -740,6 +742,7 @@ levels_auto_invoker (ProcRecord *proc_record, static ProcRecord levels_auto_proc = { + TRUE, "gimp-levels-auto", "gimp-levels-auto", "This procedure is deprecated! Use 'gimp_levels_stretch' instead.", @@ -780,6 +783,7 @@ levels_stretch_invoker (ProcRecord *proc_record, static ProcRecord levels_stretch_proc = { + TRUE, "gimp-levels-stretch", "gimp-levels-stretch", "Automatically modifies intensity levels in the specified drawable.", @@ -847,6 +851,7 @@ posterize_invoker (ProcRecord *proc_record, static ProcRecord posterize_proc = { + TRUE, "gimp-posterize", "gimp-posterize", "Posterize the specified drawable.", @@ -887,6 +892,7 @@ desaturate_invoker (ProcRecord *proc_record, static ProcRecord desaturate_proc = { + TRUE, "gimp-desaturate", "gimp-desaturate", "Desaturate the contents of the specified drawable.", @@ -929,6 +935,7 @@ desaturate_full_invoker (ProcRecord *proc_record, static ProcRecord desaturate_full_proc = { + TRUE, "gimp-desaturate-full", "gimp-desaturate-full", "Desaturate the contents of the specified drawable, with the specified formula.", @@ -971,6 +978,7 @@ equalize_invoker (ProcRecord *proc_record, static ProcRecord equalize_proc = { + TRUE, "gimp-equalize", "gimp-equalize", "Equalize the contents of the specified drawable.", @@ -1011,6 +1019,7 @@ invert_invoker (ProcRecord *proc_record, static ProcRecord invert_proc = { + TRUE, "gimp-invert", "gimp-invert", "Invert the contents of the specified drawable.", @@ -1112,6 +1121,7 @@ curves_spline_invoker (ProcRecord *proc_record, static ProcRecord curves_spline_proc = { + TRUE, "gimp-curves-spline", "gimp-curves-spline", "Modifies the intensity curve(s) for specified drawable.", @@ -1204,6 +1214,7 @@ curves_explicit_invoker (ProcRecord *proc_record, static ProcRecord curves_explicit_proc = { + TRUE, "gimp-curves-explicit", "gimp-curves-explicit", "Modifies the intensity curve(s) for specified drawable.", @@ -1284,6 +1295,7 @@ color_balance_invoker (ProcRecord *proc_record, static ProcRecord color_balance_proc = { + TRUE, "gimp-color-balance", "gimp-color-balance", "Modify the color balance of the specified drawable.", @@ -1358,6 +1370,7 @@ colorize_invoker (ProcRecord *proc_record, static ProcRecord colorize_proc = { + TRUE, "gimp-colorize", "gimp-colorize", "Render the drawable as a grayscale image seen through a colored glass.", @@ -1444,6 +1457,7 @@ histogram_invoker (ProcRecord *proc_record, static ProcRecord histogram_proc = { + TRUE, "gimp-histogram", "gimp-histogram", "Returns information on the intensity histogram for the specified drawable.", @@ -1521,6 +1535,7 @@ hue_saturation_invoker (ProcRecord *proc_record, static ProcRecord hue_saturation_proc = { + TRUE, "gimp-hue-saturation", "gimp-hue-saturation", "Modify hue, lightness, and saturation in the specified drawable.", @@ -1590,6 +1605,7 @@ threshold_invoker (ProcRecord *proc_record, static ProcRecord threshold_proc = { + TRUE, "gimp-threshold", "gimp-threshold", "Threshold the specified drawable.", diff --git a/app/pdb/context_cmds.c b/app/pdb/context_cmds.c index 886ebd6425..f7c37d8db3 100644 --- a/app/pdb/context_cmds.c +++ b/app/pdb/context_cmds.c @@ -384,6 +384,7 @@ context_push_invoker (ProcRecord *proc_record, static ProcRecord context_push_proc = { + TRUE, "gimp-context-push", "gimp-context-push", "Pushes a context to the top of the plug-in's context stack.", @@ -414,6 +415,7 @@ context_pop_invoker (ProcRecord *proc_record, static ProcRecord context_pop_proc = { + TRUE, "gimp-context-pop", "gimp-context-pop", "Pops the topmost context from the plug-in's context stack.", @@ -455,6 +457,7 @@ context_get_paint_method_invoker (ProcRecord *proc_record, static ProcRecord context_get_paint_method_proc = { + TRUE, "gimp-context-get-paint-method", "gimp-context-get-paint-method", "Retrieve the currently active paint method.", @@ -496,6 +499,7 @@ context_set_paint_method_invoker (ProcRecord *proc_record, static ProcRecord context_set_paint_method_proc = { + TRUE, "gimp-context-set-paint-method", "gimp-context-set-paint-method", "Set the specified paint method as the active paint method.", @@ -529,6 +533,7 @@ context_get_foreground_invoker (ProcRecord *proc_record, static ProcRecord context_get_foreground_proc = { + TRUE, "gimp-context-get-foreground", "gimp-context-get-foreground", "Get the current GIMP foreground color.", @@ -565,6 +570,7 @@ context_set_foreground_invoker (ProcRecord *proc_record, static ProcRecord context_set_foreground_proc = { + TRUE, "gimp-context-set-foreground", "gimp-context-set-foreground", "Set the current GIMP foreground color.", @@ -598,6 +604,7 @@ context_get_background_invoker (ProcRecord *proc_record, static ProcRecord context_get_background_proc = { + TRUE, "gimp-context-get-background", "gimp-context-get-background", "Get the current GIMP background color.", @@ -634,6 +641,7 @@ context_set_background_invoker (ProcRecord *proc_record, static ProcRecord context_set_background_proc = { + TRUE, "gimp-context-set-background", "gimp-context-set-background", "Set the current GIMP background color.", @@ -660,6 +668,7 @@ context_set_default_colors_invoker (ProcRecord *proc_record, static ProcRecord context_set_default_colors_proc = { + TRUE, "gimp-context-set-default-colors", "gimp-context-set-default-colors", "Set the current GIMP foreground and background colors to black and white.", @@ -686,6 +695,7 @@ context_swap_colors_invoker (ProcRecord *proc_record, static ProcRecord context_swap_colors_proc = { + TRUE, "gimp-context-swap-colors", "gimp-context-swap-colors", "Swap the current GIMP foreground and background colors.", @@ -719,6 +729,7 @@ context_get_opacity_invoker (ProcRecord *proc_record, static ProcRecord context_get_opacity_proc = { + TRUE, "gimp-context-get-opacity", "gimp-context-get-opacity", "Get the opacity.", @@ -754,6 +765,7 @@ context_set_opacity_invoker (ProcRecord *proc_record, static ProcRecord context_set_opacity_proc = { + TRUE, "gimp-context-set-opacity", "gimp-context-set-opacity", "Set the opacity.", @@ -787,6 +799,7 @@ context_get_paint_mode_invoker (ProcRecord *proc_record, static ProcRecord context_get_paint_mode_proc = { + TRUE, "gimp-context-get-paint-mode", "gimp-context-get-paint-mode", "Get the paint mode.", @@ -822,6 +835,7 @@ context_set_paint_mode_invoker (ProcRecord *proc_record, static ProcRecord context_set_paint_mode_proc = { + TRUE, "gimp-context-set-paint-mode", "gimp-context-set-paint-mode", "Set the paint mode.", @@ -863,6 +877,7 @@ context_get_brush_invoker (ProcRecord *proc_record, static ProcRecord context_get_brush_proc = { + TRUE, "gimp-context-get-brush", "gimp-context-get-brush", "Retrieve the currently active brush.", @@ -904,6 +919,7 @@ context_set_brush_invoker (ProcRecord *proc_record, static ProcRecord context_set_brush_proc = { + TRUE, "gimp-context-set-brush", "gimp-context-set-brush", "Set the specified brush as the active brush.", @@ -945,6 +961,7 @@ context_get_pattern_invoker (ProcRecord *proc_record, static ProcRecord context_get_pattern_proc = { + TRUE, "gimp-context-get-pattern", "gimp-context-get-pattern", "Retrieve the currently active pattern.", @@ -986,6 +1003,7 @@ context_set_pattern_invoker (ProcRecord *proc_record, static ProcRecord context_set_pattern_proc = { + TRUE, "gimp-context-set-pattern", "gimp-context-set-pattern", "Set the specified pattern as the active pattern.", @@ -1027,6 +1045,7 @@ context_get_gradient_invoker (ProcRecord *proc_record, static ProcRecord context_get_gradient_proc = { + TRUE, "gimp-context-get-gradient", "gimp-context-get-gradient", "Retrieve the currently active gradient.", @@ -1068,6 +1087,7 @@ context_set_gradient_invoker (ProcRecord *proc_record, static ProcRecord context_set_gradient_proc = { + TRUE, "gimp-context-set-gradient", "gimp-context-set-gradient", "Sets the specified gradient as the active gradient.", @@ -1109,6 +1129,7 @@ context_get_palette_invoker (ProcRecord *proc_record, static ProcRecord context_get_palette_proc = { + TRUE, "gimp-context-get-palette", "gimp-context-get-palette", "Retrieve the currently active palette.", @@ -1150,6 +1171,7 @@ context_set_palette_invoker (ProcRecord *proc_record, static ProcRecord context_set_palette_proc = { + TRUE, "gimp-context-set-palette", "gimp-context-set-palette", "Set the specified palette as the active palette.", @@ -1191,6 +1213,7 @@ context_get_font_invoker (ProcRecord *proc_record, static ProcRecord context_get_font_proc = { + TRUE, "gimp-context-get-font", "gimp-context-get-font", "Retrieve the currently active font.", @@ -1232,6 +1255,7 @@ context_set_font_invoker (ProcRecord *proc_record, static ProcRecord context_set_font_proc = { + TRUE, "gimp-context-set-font", "gimp-context-set-font", "Set the specified font as the active font.", diff --git a/app/pdb/convert_cmds.c b/app/pdb/convert_cmds.c index 26d218b867..7b9b75425f 100644 --- a/app/pdb/convert_cmds.c +++ b/app/pdb/convert_cmds.c @@ -155,6 +155,7 @@ image_convert_rgb_invoker (ProcRecord *proc_record, static ProcRecord image_convert_rgb_proc = { + TRUE, "gimp-image-convert-rgb", "gimp-image-convert-rgb", "Convert specified image to RGB color", @@ -193,6 +194,7 @@ image_convert_grayscale_invoker (ProcRecord *proc_record, static ProcRecord image_convert_grayscale_proc = { + TRUE, "gimp-image-convert-grayscale", "gimp-image-convert-grayscale", "Convert specified image to grayscale (256 intensity levels)", @@ -269,6 +271,7 @@ image_convert_indexed_invoker (ProcRecord *proc_record, static ProcRecord image_convert_indexed_proc = { + TRUE, "gimp-image-convert-indexed", "gimp-image-convert-indexed", "Convert specified image to and Indexed image", diff --git a/app/pdb/display_cmds.c b/app/pdb/display_cmds.c index 74f9b2c812..0482550dbc 100644 --- a/app/pdb/display_cmds.c +++ b/app/pdb/display_cmds.c @@ -162,6 +162,7 @@ display_new_invoker (ProcRecord *proc_record, static ProcRecord display_new_proc = { + TRUE, "gimp-display-new", "gimp-display-new", "Create a new display for the specified image.", @@ -197,6 +198,7 @@ display_delete_invoker (ProcRecord *proc_record, static ProcRecord display_delete_proc = { + TRUE, "gimp-display-delete", "gimp-display-delete", "Delete the specified display.", @@ -239,6 +241,7 @@ display_get_window_handle_invoker (ProcRecord *proc_record, static ProcRecord display_get_window_handle_proc = { + TRUE, "gimp-display-get-window-handle", "gimp-display-get-window-handle", "Get a handle to the native window for an image display.", @@ -265,6 +268,7 @@ displays_flush_invoker (ProcRecord *proc_record, static ProcRecord displays_flush_proc = { + TRUE, "gimp-displays-flush", "gimp-displays-flush", "Flush all internal changes to the user interface", @@ -313,6 +317,7 @@ displays_reconnect_invoker (ProcRecord *proc_record, static ProcRecord displays_reconnect_proc = { + TRUE, "gimp-displays-reconnect", "gimp-displays-reconnect", "Reconnect displays from one image to another image.", diff --git a/app/pdb/drawable_cmds.c b/app/pdb/drawable_cmds.c index 6ccfdee021..01385abe31 100644 --- a/app/pdb/drawable_cmds.c +++ b/app/pdb/drawable_cmds.c @@ -1115,6 +1115,7 @@ drawable_delete_invoker (ProcRecord *proc_record, static ProcRecord drawable_delete_proc = { + TRUE, "gimp-drawable-delete", "gimp-drawable-delete", "Delete a drawable.", @@ -1157,6 +1158,7 @@ drawable_is_layer_invoker (ProcRecord *proc_record, static ProcRecord drawable_is_layer_proc = { + TRUE, "gimp-drawable-is-layer", "gimp-drawable-is-layer", "Returns whether the drawable is a layer.", @@ -1199,6 +1201,7 @@ drawable_is_layer_mask_invoker (ProcRecord *proc_record, static ProcRecord drawable_is_layer_mask_proc = { + TRUE, "gimp-drawable-is-layer-mask", "gimp-drawable-is-layer-mask", "Returns whether the drawable is a layer mask.", @@ -1241,6 +1244,7 @@ drawable_is_channel_invoker (ProcRecord *proc_record, static ProcRecord drawable_is_channel_proc = { + TRUE, "gimp-drawable-is-channel", "gimp-drawable-is-channel", "Returns whether the drawable is a channel.", @@ -1283,6 +1287,7 @@ drawable_type_invoker (ProcRecord *proc_record, static ProcRecord drawable_type_proc = { + TRUE, "gimp-drawable-type", "gimp-drawable-type", "Returns the drawable's type.", @@ -1325,6 +1330,7 @@ drawable_type_with_alpha_invoker (ProcRecord *proc_record, static ProcRecord drawable_type_with_alpha_proc = { + TRUE, "gimp-drawable-type-with-alpha", "gimp-drawable-type-with-alpha", "Returns the drawable's type with alpha.", @@ -1367,6 +1373,7 @@ drawable_has_alpha_invoker (ProcRecord *proc_record, static ProcRecord drawable_has_alpha_proc = { + TRUE, "gimp-drawable-has-alpha", "gimp-drawable-has-alpha", "Returns TRUE if the drawable has an alpha channel.", @@ -1409,6 +1416,7 @@ drawable_is_rgb_invoker (ProcRecord *proc_record, static ProcRecord drawable_is_rgb_proc = { + TRUE, "gimp-drawable-is-rgb", "gimp-drawable-is-rgb", "Returns whether the drawable is an RGB type.", @@ -1451,6 +1459,7 @@ drawable_is_gray_invoker (ProcRecord *proc_record, static ProcRecord drawable_is_gray_proc = { + TRUE, "gimp-drawable-is-gray", "gimp-drawable-is-gray", "Returns whether the drawable is a grayscale type.", @@ -1493,6 +1502,7 @@ drawable_is_indexed_invoker (ProcRecord *proc_record, static ProcRecord drawable_is_indexed_proc = { + TRUE, "gimp-drawable-is-indexed", "gimp-drawable-is-indexed", "Returns whether the drawable is an indexed type.", @@ -1535,6 +1545,7 @@ drawable_bpp_invoker (ProcRecord *proc_record, static ProcRecord drawable_bpp_proc = { + TRUE, "gimp-drawable-bpp", "gimp-drawable-bpp", "Returns the bytes per pixel.", @@ -1577,6 +1588,7 @@ drawable_width_invoker (ProcRecord *proc_record, static ProcRecord drawable_width_proc = { + TRUE, "gimp-drawable-width", "gimp-drawable-width", "Returns the width of the drawable.", @@ -1619,6 +1631,7 @@ drawable_height_invoker (ProcRecord *proc_record, static ProcRecord drawable_height_proc = { + TRUE, "gimp-drawable-height", "gimp-drawable-height", "Returns the height of the drawable.", @@ -1665,6 +1678,7 @@ drawable_offsets_invoker (ProcRecord *proc_record, static ProcRecord drawable_offsets_proc = { + TRUE, "gimp-drawable-offsets", "gimp-drawable-offsets", "Returns the offsets for the drawable.", @@ -1707,6 +1721,7 @@ drawable_get_image_invoker (ProcRecord *proc_record, static ProcRecord drawable_get_image_proc = { + TRUE, "gimp-drawable-get-image", "gimp-drawable-get-image", "Returns the drawable's image.", @@ -1745,6 +1760,7 @@ drawable_set_image_invoker (ProcRecord *proc_record, static ProcRecord drawable_set_image_proc = { + TRUE, "gimp-drawable-set-image", "gimp-drawable-set-image", "This procedure is deprecated!", @@ -1787,6 +1803,7 @@ drawable_get_name_invoker (ProcRecord *proc_record, static ProcRecord drawable_get_name_proc = { + TRUE, "gimp-drawable-get-name", "gimp-drawable-get-name", "Get the name of the specified drawable.", @@ -1824,6 +1841,7 @@ drawable_set_name_invoker (ProcRecord *proc_record, static ProcRecord drawable_set_name_proc = { + TRUE, "gimp-drawable-set-name", "gimp-drawable-set-name", "Set the name of the specified drawable.", @@ -1866,6 +1884,7 @@ drawable_get_visible_invoker (ProcRecord *proc_record, static ProcRecord drawable_get_visible_proc = { + TRUE, "gimp-drawable-get-visible", "gimp-drawable-get-visible", "Get the visibility of the specified drawable.", @@ -1903,6 +1922,7 @@ drawable_set_visible_invoker (ProcRecord *proc_record, static ProcRecord drawable_set_visible_proc = { + TRUE, "gimp-drawable-set-visible", "gimp-drawable-set-visible", "Set the visibility of the specified drawable.", @@ -1945,6 +1965,7 @@ drawable_get_linked_invoker (ProcRecord *proc_record, static ProcRecord drawable_get_linked_proc = { + TRUE, "gimp-drawable-get-linked", "gimp-drawable-get-linked", "Get the linked state of the specified drawable.", @@ -1982,6 +2003,7 @@ drawable_set_linked_invoker (ProcRecord *proc_record, static ProcRecord drawable_set_linked_proc = { + TRUE, "gimp-drawable-set-linked", "gimp-drawable-set-linked", "Set the linked state of the specified drawable.", @@ -2024,6 +2046,7 @@ drawable_get_tattoo_invoker (ProcRecord *proc_record, static ProcRecord drawable_get_tattoo_proc = { + TRUE, "gimp-drawable-get-tattoo", "gimp-drawable-get-tattoo", "Get the tattoo of the specified drawable.", @@ -2061,6 +2084,7 @@ drawable_set_tattoo_invoker (ProcRecord *proc_record, static ProcRecord drawable_set_tattoo_proc = { + TRUE, "gimp-drawable-set-tattoo", "gimp-drawable-set-tattoo", "Set the tattoo of the specified drawable.", @@ -2113,6 +2137,7 @@ drawable_mask_bounds_invoker (ProcRecord *proc_record, static ProcRecord drawable_mask_bounds_proc = { + TRUE, "gimp-drawable-mask-bounds", "gimp-drawable-mask-bounds", "Find the bounding box of the current selection in relation to the specified drawable.", @@ -2165,6 +2190,7 @@ drawable_mask_intersect_invoker (ProcRecord *proc_record, static ProcRecord drawable_mask_intersect_proc = { + TRUE, "gimp-drawable-mask-intersect", "gimp-drawable-mask-intersect", "Find the bounding box of the current selection in relation to the specified drawable.", @@ -2217,6 +2243,7 @@ drawable_merge_shadow_invoker (ProcRecord *proc_record, static ProcRecord drawable_merge_shadow_proc = { + TRUE, "gimp-drawable-merge-shadow", "gimp-drawable-merge-shadow", "Merge the shadow buffer with the specified drawable.", @@ -2260,6 +2287,7 @@ drawable_update_invoker (ProcRecord *proc_record, static ProcRecord drawable_update_proc = { + TRUE, "gimp-drawable-update", "gimp-drawable-update", "Update the specified region of the drawable.", @@ -2334,6 +2362,7 @@ drawable_get_pixel_invoker (ProcRecord *proc_record, static ProcRecord drawable_get_pixel_proc = { + TRUE, "gimp-drawable-get-pixel", "gimp-drawable-get-pixel", "Gets the value of the pixel at the specified coordinates.", @@ -2399,6 +2428,7 @@ drawable_set_pixel_invoker (ProcRecord *proc_record, static ProcRecord drawable_set_pixel_proc = { + TRUE, "gimp-drawable-set-pixel", "gimp-drawable-set-pixel", "Sets the value of the pixel at the specified coordinates.", @@ -2436,6 +2466,7 @@ drawable_fill_invoker (ProcRecord *proc_record, static ProcRecord drawable_fill_proc = { + TRUE, "gimp-drawable-fill", "gimp-drawable-fill", "Fill the drawable with the specified fill mode.", @@ -2483,6 +2514,7 @@ drawable_offset_invoker (ProcRecord *proc_record, static ProcRecord drawable_offset_proc = { + TRUE, "gimp-drawable-offset", "gimp-drawable-offset", "Offset the drawable by the specified amounts in the X and Y directions", @@ -2573,6 +2605,7 @@ drawable_thumbnail_invoker (ProcRecord *proc_record, static ProcRecord drawable_thumbnail_proc = { + TRUE, "gimp-drawable-thumbnail", "gimp-drawable-thumbnail", "Get a thumbnail of a drawable.", @@ -2669,6 +2702,7 @@ drawable_sub_thumbnail_invoker (ProcRecord *proc_record, static ProcRecord drawable_sub_thumbnail_proc = { + TRUE, "gimp-drawable-sub-thumbnail", "gimp-drawable-sub-thumbnail", "Get a thumbnail of a sub-area of a drawable drawable.", @@ -2711,6 +2745,7 @@ drawable_foreground_extract_invoker (ProcRecord *proc_record, static ProcRecord drawable_foreground_extract_proc = { + TRUE, "gimp-drawable-foreground-extract", "gimp-drawable-foreground-extract", "Extract the foreground of a drawable using a given trimap.", diff --git a/app/pdb/drawable_transform_cmds.c b/app/pdb/drawable_transform_cmds.c index d4a1373819..dce63e37d4 100644 --- a/app/pdb/drawable_transform_cmds.c +++ b/app/pdb/drawable_transform_cmds.c @@ -1424,6 +1424,7 @@ drawable_transform_flip_simple_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_flip_simple_proc = { + TRUE, "gimp-drawable-transform-flip-simple", "gimp-drawable-transform-flip-simple", "Flip the specified drawable either vertically or horizontally.", @@ -1509,6 +1510,7 @@ drawable_transform_flip_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_flip_proc = { + TRUE, "gimp-drawable-transform-flip", "gimp-drawable-transform-flip", "Flip the specified drawable around a given line.", @@ -1592,6 +1594,7 @@ drawable_transform_flip_default_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_flip_default_proc = { + TRUE, "gimp-drawable-transform-flip-default", "gimp-drawable-transform-flip-default", "Flip the specified drawable around a given line.", @@ -1689,6 +1692,7 @@ drawable_transform_perspective_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_perspective_proc = { + TRUE, "gimp-drawable-transform-perspective", "gimp-drawable-transform-perspective", "Perform a possibly non-affine transformation on the specified drawable, with extra parameters.", @@ -1784,6 +1788,7 @@ drawable_transform_perspective_default_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_perspective_default_proc = { + TRUE, "gimp-drawable-transform-perspective-default", "gimp-drawable-transform-perspective-default", "Perform a possibly non-affine transformation on the specified drawable, with extra parameters.", @@ -1846,6 +1851,7 @@ drawable_transform_rotate_simple_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_rotate_simple_proc = { + TRUE, "gimp-drawable-transform-rotate-simple", "gimp-drawable-transform-rotate-simple", "Rotate the specified drawable about given coordinates through the specified angle.", @@ -1934,6 +1940,7 @@ drawable_transform_rotate_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_rotate_proc = { + TRUE, "gimp-drawable-transform-rotate", "gimp-drawable-transform-rotate", "Rotate the specified drawable about given coordinates through the specified angle.", @@ -2020,6 +2027,7 @@ drawable_transform_rotate_default_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_rotate_default_proc = { + TRUE, "gimp-drawable-transform-rotate-default", "gimp-drawable-transform-rotate-default", "Rotate the specified drawable about given coordinates through the specified angle.", @@ -2108,6 +2116,7 @@ drawable_transform_scale_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_scale_proc = { + TRUE, "gimp-drawable-transform-scale", "gimp-drawable-transform-scale", "Scale the specified drawable with extra parameters", @@ -2194,6 +2203,7 @@ drawable_transform_scale_default_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_scale_default_proc = { + TRUE, "gimp-drawable-transform-scale-default", "gimp-drawable-transform-scale-default", "Scale the specified drawable with extra parameters", @@ -2276,6 +2286,7 @@ drawable_transform_shear_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_shear_proc = { + TRUE, "gimp-drawable-transform-shear", "gimp-drawable-transform-shear", "Shear the specified drawable about its center by the specified magnitude, with extra parameters.", @@ -2356,6 +2367,7 @@ drawable_transform_shear_default_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_shear_default_proc = { + TRUE, "gimp-drawable-transform-shear-default", "gimp-drawable-transform-shear-default", "Shear the specified drawable about its center by the specified magnitude, with extra parameters.", @@ -2449,6 +2461,7 @@ drawable_transform_2d_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_2d_proc = { + TRUE, "gimp-drawable-transform-2d", "gimp-drawable-transform-2d", "Transform the specified drawable in 2d, with extra parameters.", @@ -2540,6 +2553,7 @@ drawable_transform_2d_default_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_2d_default_proc = { + TRUE, "gimp-drawable-transform-2d-default", "gimp-drawable-transform-2d-default", "Transform the specified drawable in 2d, with extra parameters.", @@ -2641,6 +2655,7 @@ drawable_transform_matrix_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_matrix_proc = { + TRUE, "gimp-drawable-transform-matrix", "gimp-drawable-transform-matrix", "Transform the specified drawable in 2d, with extra parameters.", @@ -2740,6 +2755,7 @@ drawable_transform_matrix_default_invoker (ProcRecord *proc_record, static ProcRecord drawable_transform_matrix_default_proc = { + TRUE, "gimp-drawable-transform-matrix-default", "gimp-drawable-transform-matrix-default", "Transform the specified drawable in 2d, with extra parameters.", diff --git a/app/pdb/edit_cmds.c b/app/pdb/edit_cmds.c index a4a6a9431b..4124e1db1f 100644 --- a/app/pdb/edit_cmds.c +++ b/app/pdb/edit_cmds.c @@ -590,6 +590,7 @@ edit_cut_invoker (ProcRecord *proc_record, static ProcRecord edit_cut_proc = { + TRUE, "gimp-edit-cut", "gimp-edit-cut", "Cut from the specified drawable.", @@ -639,6 +640,7 @@ edit_copy_invoker (ProcRecord *proc_record, static ProcRecord edit_copy_proc = { + TRUE, "gimp-edit-copy", "gimp-edit-copy", "Copy from the specified drawable.", @@ -681,6 +683,7 @@ edit_copy_visible_invoker (ProcRecord *proc_record, static ProcRecord edit_copy_visible_proc = { + TRUE, "gimp-edit-copy-visible", "gimp-edit-copy-visible", "Copy from the projection.", @@ -735,6 +738,7 @@ edit_paste_invoker (ProcRecord *proc_record, static ProcRecord edit_paste_proc = { + TRUE, "gimp-edit-paste", "gimp-edit-paste", "Paste buffer to the specified drawable.", @@ -779,6 +783,7 @@ edit_paste_as_new_invoker (ProcRecord *proc_record, static ProcRecord edit_paste_as_new_proc = { + TRUE, "gimp-edit-paste-as-new", "gimp-edit-paste-as-new", "Paste buffer to a new image.", @@ -836,6 +841,7 @@ edit_named_cut_invoker (ProcRecord *proc_record, static ProcRecord edit_named_cut_proc = { + TRUE, "gimp-edit-named-cut", "gimp-edit-named-cut", "Cut into a named buffer.", @@ -893,6 +899,7 @@ edit_named_copy_invoker (ProcRecord *proc_record, static ProcRecord edit_named_copy_proc = { + TRUE, "gimp-edit-named-copy", "gimp-edit-named-copy", "Copy into a named buffer.", @@ -948,6 +955,7 @@ edit_named_copy_visible_invoker (ProcRecord *proc_record, static ProcRecord edit_named_copy_visible_proc = { + TRUE, "gimp-edit-named-copy-visible", "gimp-edit-named-copy-visible", "Copy from the projection into a named buffer.", @@ -1006,6 +1014,7 @@ edit_named_paste_invoker (ProcRecord *proc_record, static ProcRecord edit_named_paste_proc = { + TRUE, "gimp-edit-named-paste", "gimp-edit-named-paste", "Paste named buffer to the specified drawable.", @@ -1059,6 +1068,7 @@ edit_named_paste_as_new_invoker (ProcRecord *proc_record, static ProcRecord edit_named_paste_as_new_proc = { + TRUE, "gimp-edit-named-paste-as-new", "gimp-edit-named-paste-as-new", "Paste named buffer to a new image.", @@ -1101,6 +1111,7 @@ edit_clear_invoker (ProcRecord *proc_record, static ProcRecord edit_clear_proc = { + TRUE, "gimp-edit-clear", "gimp-edit-clear", "Clear selected area of drawable.", @@ -1146,6 +1157,7 @@ edit_fill_invoker (ProcRecord *proc_record, static ProcRecord edit_fill_proc = { + TRUE, "gimp-edit-fill", "gimp-edit-fill", "Fill selected area of drawable.", @@ -1209,6 +1221,7 @@ edit_bucket_fill_invoker (ProcRecord *proc_record, static ProcRecord edit_bucket_fill_proc = { + TRUE, "gimp-edit-bucket-fill", "gimp-edit-bucket-fill", "Fill the area specified either by the current selection if there is one, or by a seed fill starting at the specified coordinates.", @@ -1304,6 +1317,7 @@ edit_blend_invoker (ProcRecord *proc_record, static ProcRecord edit_blend_proc = { + TRUE, "gimp-edit-blend", "gimp-edit-blend", "Blend between the starting and ending coordinates with the specified blend mode and gradient type.", @@ -1352,6 +1366,7 @@ edit_stroke_invoker (ProcRecord *proc_record, static ProcRecord edit_stroke_proc = { + TRUE, "gimp-edit-stroke", "gimp-edit-stroke", "Stroke the current selection", diff --git a/app/pdb/fileops_cmds.c b/app/pdb/fileops_cmds.c index ee163d2023..45fc61deb9 100644 --- a/app/pdb/fileops_cmds.c +++ b/app/pdb/fileops_cmds.c @@ -469,13 +469,13 @@ file_load_invoker (ProcRecord *proc_record, GimpProgress *progress, Argument *args) { - Argument *new_args; - Argument *return_vals; - PlugInProcDef *file_proc; - const ProcRecord *proc; - gchar *uri; - gint n_return_vals; - gint i; + Argument *new_args; + Argument *return_vals; + PlugInProcDef *file_proc; + ProcRecord *proc; + gchar *uri; + gint n_return_vals; + gint i; uri = file_utils_filename_to_uri (gimp->load_procs, g_value_get_string (&args[1].value), @@ -491,7 +491,7 @@ file_load_invoker (ProcRecord *proc_record, if (! file_proc) return gimp_procedure_get_return_values (proc_record, FALSE); - proc = plug_in_proc_def_get_proc (file_proc); + proc = file_proc->procedure; new_args = gimp_procedure_get_arguments (proc); @@ -514,6 +514,7 @@ file_load_invoker (ProcRecord *proc_record, static ProcRecord file_load_proc = { + TRUE, "gimp-file-load", "gimp-file-load", "Loads an image file by invoking the right load handler.", @@ -574,6 +575,7 @@ file_load_layer_invoker (ProcRecord *proc_record, static ProcRecord file_load_layer_proc = { + TRUE, "gimp-file-load-layer", "gimp-file-load-layer", "Loads an image file as a layer into an already opened image.", @@ -669,6 +671,7 @@ file_load_thumbnail_invoker (ProcRecord *proc_record, static ProcRecord file_load_thumbnail_proc = { + TRUE, "gimp-file-load-thumbnail", "gimp-file-load-thumbnail", "Loads the thumbnail for a file.", @@ -689,13 +692,13 @@ file_save_invoker (ProcRecord *proc_record, GimpProgress *progress, Argument *args) { - Argument *new_args; - Argument *return_vals; - PlugInProcDef *file_proc; - const ProcRecord *proc; - gchar *uri; - gint n_return_vals; - gint i; + Argument *new_args; + Argument *return_vals; + PlugInProcDef *file_proc; + ProcRecord *proc; + gchar *uri; + gint n_return_vals; + gint i; uri = file_utils_filename_to_uri (gimp->load_procs, g_value_get_string (&args[3].value), @@ -711,7 +714,7 @@ file_save_invoker (ProcRecord *proc_record, if (! file_proc) return gimp_procedure_get_return_values (proc_record, FALSE); - proc = plug_in_proc_def_get_proc (file_proc); + proc = file_proc->procedure; new_args = gimp_procedure_get_arguments (proc); @@ -734,6 +737,7 @@ file_save_invoker (ProcRecord *proc_record, static ProcRecord file_save_proc = { + TRUE, "gimp-file-save", "gimp-file-save", "Saves a file by extension.", @@ -796,6 +800,7 @@ file_save_thumbnail_invoker (ProcRecord *proc_record, static ProcRecord file_save_thumbnail_proc = { + TRUE, "gimp-file-save-thumbnail", "gimp-file-save-thumbnail", "Saves a thumbnail for the given image", @@ -838,6 +843,7 @@ temp_name_invoker (ProcRecord *proc_record, static ProcRecord temp_name_proc = { + TRUE, "gimp-temp-name", "gimp-temp-name", "Generates a unique filename.", @@ -881,6 +887,7 @@ register_magic_load_handler_invoker (ProcRecord *proc_record, static ProcRecord register_magic_load_handler_proc = { + TRUE, "gimp-register-magic-load-handler", "gimp-register-magic-load-handler", "Registers a file load handler procedure.", @@ -922,6 +929,7 @@ register_load_handler_invoker (ProcRecord *proc_record, static ProcRecord register_load_handler_proc = { + TRUE, "gimp-register-load-handler", "gimp-register-load-handler", "Registers a file load handler procedure.", @@ -999,6 +1007,7 @@ register_save_handler_invoker (ProcRecord *proc_record, static ProcRecord register_save_handler_proc = { + TRUE, "gimp-register-save-handler", "gimp-register-save-handler", "Registers a file save handler procedure.", @@ -1043,6 +1052,7 @@ register_file_handler_mime_invoker (ProcRecord *proc_record, static ProcRecord register_file_handler_mime_proc = { + TRUE, "gimp-register-file-handler-mime", "gimp-register-file-handler-mime", "Associates a MIME type with a file handler procedure.", @@ -1087,6 +1097,7 @@ register_thumbnail_loader_invoker (ProcRecord *proc_record, static ProcRecord register_thumbnail_loader_proc = { + TRUE, "gimp-register-thumbnail-loader", "gimp-register-thumbnail-loader", "Associates a thumbnail loader with a file load procedure.", diff --git a/app/pdb/floating_sel_cmds.c b/app/pdb/floating_sel_cmds.c index 81d1a1e69f..6caaf59243 100644 --- a/app/pdb/floating_sel_cmds.c +++ b/app/pdb/floating_sel_cmds.c @@ -177,6 +177,7 @@ floating_sel_remove_invoker (ProcRecord *proc_record, static ProcRecord floating_sel_remove_proc = { + TRUE, "gimp-floating-sel-remove", "gimp-floating-sel-remove", "Remove the specified floating selection from its associated drawable.", @@ -215,6 +216,7 @@ floating_sel_anchor_invoker (ProcRecord *proc_record, static ProcRecord floating_sel_anchor_proc = { + TRUE, "gimp-floating-sel-anchor", "gimp-floating-sel-anchor", "Anchor the specified floating selection to its associated drawable.", @@ -253,6 +255,7 @@ floating_sel_to_layer_invoker (ProcRecord *proc_record, static ProcRecord floating_sel_to_layer_proc = { + TRUE, "gimp-floating-sel-to-layer", "gimp-floating-sel-to-layer", "Transforms the specified floating selection into a layer.", @@ -293,6 +296,7 @@ floating_sel_attach_invoker (ProcRecord *proc_record, static ProcRecord floating_sel_attach_proc = { + TRUE, "gimp-floating-sel-attach", "gimp-floating-sel-attach", "Attach the specified layer as floating to the specified drawable.", @@ -333,6 +337,7 @@ floating_sel_rigor_invoker (ProcRecord *proc_record, static ProcRecord floating_sel_rigor_proc = { + TRUE, "gimp-floating-sel-rigor", "gimp-floating-sel-rigor", "Rigor the floating selection.", @@ -373,6 +378,7 @@ floating_sel_relax_invoker (ProcRecord *proc_record, static ProcRecord floating_sel_relax_proc = { + TRUE, "gimp-floating-sel-relax", "gimp-floating-sel-relax", "Relax the floating selection.", diff --git a/app/pdb/font_select_cmds.c b/app/pdb/font_select_cmds.c index ddb65ca41b..5568c4882c 100644 --- a/app/pdb/font_select_cmds.c +++ b/app/pdb/font_select_cmds.c @@ -138,6 +138,7 @@ fonts_popup_invoker (ProcRecord *proc_record, static ProcRecord fonts_popup_proc = { + TRUE, "gimp-fonts-popup", "gimp-fonts-popup", "Invokes the Gimp font selection.", @@ -176,6 +177,7 @@ fonts_close_popup_invoker (ProcRecord *proc_record, static ProcRecord fonts_close_popup_proc = { + TRUE, "gimp-fonts-close-popup", "gimp-fonts-close-popup", "Popdown the Gimp font selection.", @@ -217,6 +219,7 @@ fonts_set_popup_invoker (ProcRecord *proc_record, static ProcRecord fonts_set_popup_proc = { + TRUE, "gimp-fonts-set-popup", "gimp-fonts-set-popup", "Sets the current font selection in a popup.", diff --git a/app/pdb/fonts_cmds.c b/app/pdb/fonts_cmds.c index d74498d191..b19474e1e1 100644 --- a/app/pdb/fonts_cmds.c +++ b/app/pdb/fonts_cmds.c @@ -89,6 +89,7 @@ fonts_refresh_invoker (ProcRecord *proc_record, static ProcRecord fonts_refresh_proc = { + TRUE, "gimp-fonts-refresh", "gimp-fonts-refresh", "Refresh current fonts. This function always succeeds.", @@ -136,6 +137,7 @@ fonts_get_list_invoker (ProcRecord *proc_record, static ProcRecord fonts_get_list_proc = { + TRUE, "gimp-fonts-get-list", "gimp-fonts-get-list", "Retrieve the list of loaded fonts.", diff --git a/app/pdb/gimp-pdb.c b/app/pdb/gimp-pdb.c index 0cef18f765..3ce9184b85 100644 --- a/app/pdb/gimp-pdb.c +++ b/app/pdb/gimp-pdb.c @@ -70,16 +70,11 @@ procedural_db_free_entry (gpointer key, for (list = value; list; list = g_list_next (list)) { ProcRecord *procedure = list->data; - gint i; - for (i = 0; i < procedure->num_args; i++) - g_param_spec_unref (procedure->args[i].pspec); - - for (i = 0; i < procedure->num_values; i++) - g_param_spec_unref (procedure->values[i].pspec); - - g_free (procedure->args); - g_free (procedure->values); + if (procedure->static_proc) + gimp_procedure_dispose (procedure); + else + gimp_procedure_free (procedure); } g_list_free (value); diff --git a/app/pdb/gimp-pdb.h b/app/pdb/gimp-pdb.h index 9927ae4efe..d4a6273a97 100644 --- a/app/pdb/gimp-pdb.h +++ b/app/pdb/gimp-pdb.h @@ -33,83 +33,6 @@ struct _ProcArg }; -#if 0 -/* Argument marshalling procedures */ -typedef Argument * (* ArgMarshal) (ProcRecord *procedure, - Gimp *gimp, - GimpContext *context, - GimpProgress *progress, - Argument *args); - - -/* Execution types */ -typedef struct _IntExec IntExec; -typedef struct _PlugInExec PlugInExec; -typedef struct _ExtExec ExtExec; -typedef struct _TempExec TempExec; - - -struct _IntExec -{ - ArgMarshal marshal_func; /* Function called to marshal arguments */ -}; - -struct _PlugInExec -{ - gchar *filename; /* Where is the executable on disk? */ -}; - -struct _ExtExec -{ - gchar *filename; /* Where is the executable on disk? */ -}; - -struct _TempExec -{ - void *plug_in; /* Plug-in that registered this temp proc */ -}; - - -/* Structure for a procedure */ - -struct _ProcRecord -{ - /* Procedure information */ - gchar *name; /* Procedure name */ - gchar *original_name; /* Procedure name before canonicalization */ - gchar *blurb; /* Short procedure description */ - gchar *help; /* Detailed help instructions */ - gchar *author; /* Author field */ - gchar *copyright; /* Copyright field */ - gchar *date; /* Date field */ - - gchar *deprecated; /* Replacement if the procedure is deprecated */ - - /* Procedure type */ - GimpPDBProcType proc_type; /* Type of procedure--Internal, Plug-In, Extension */ - - /* Input arguments */ - gint32 num_args; /* Number of procedure arguments */ - ProcArg *args; /* Array of procedure arguments */ - - /* Output values */ - gint32 num_values; /* Number of return values */ - ProcArg *values; /* Array of return values */ - - /* Method of procedure execution */ - union _ExecMethod - { - IntExec internal; /* Execution information for internal procs */ - PlugInExec plug_in; /* ..................... for plug-ins */ - ExtExec extension; /* ..................... for extensions */ - TempExec temporary; /* ..................... for temp procs */ - } exec_method; -}; -#endif - - -/* Functions */ - void procedural_db_init (Gimp *gimp); void procedural_db_free (Gimp *gimp); diff --git a/app/pdb/gimppdb.c b/app/pdb/gimppdb.c index 0cef18f765..3ce9184b85 100644 --- a/app/pdb/gimppdb.c +++ b/app/pdb/gimppdb.c @@ -70,16 +70,11 @@ procedural_db_free_entry (gpointer key, for (list = value; list; list = g_list_next (list)) { ProcRecord *procedure = list->data; - gint i; - for (i = 0; i < procedure->num_args; i++) - g_param_spec_unref (procedure->args[i].pspec); - - for (i = 0; i < procedure->num_values; i++) - g_param_spec_unref (procedure->values[i].pspec); - - g_free (procedure->args); - g_free (procedure->values); + if (procedure->static_proc) + gimp_procedure_dispose (procedure); + else + gimp_procedure_free (procedure); } g_list_free (value); diff --git a/app/pdb/gimppdb.h b/app/pdb/gimppdb.h index 9927ae4efe..d4a6273a97 100644 --- a/app/pdb/gimppdb.h +++ b/app/pdb/gimppdb.h @@ -33,83 +33,6 @@ struct _ProcArg }; -#if 0 -/* Argument marshalling procedures */ -typedef Argument * (* ArgMarshal) (ProcRecord *procedure, - Gimp *gimp, - GimpContext *context, - GimpProgress *progress, - Argument *args); - - -/* Execution types */ -typedef struct _IntExec IntExec; -typedef struct _PlugInExec PlugInExec; -typedef struct _ExtExec ExtExec; -typedef struct _TempExec TempExec; - - -struct _IntExec -{ - ArgMarshal marshal_func; /* Function called to marshal arguments */ -}; - -struct _PlugInExec -{ - gchar *filename; /* Where is the executable on disk? */ -}; - -struct _ExtExec -{ - gchar *filename; /* Where is the executable on disk? */ -}; - -struct _TempExec -{ - void *plug_in; /* Plug-in that registered this temp proc */ -}; - - -/* Structure for a procedure */ - -struct _ProcRecord -{ - /* Procedure information */ - gchar *name; /* Procedure name */ - gchar *original_name; /* Procedure name before canonicalization */ - gchar *blurb; /* Short procedure description */ - gchar *help; /* Detailed help instructions */ - gchar *author; /* Author field */ - gchar *copyright; /* Copyright field */ - gchar *date; /* Date field */ - - gchar *deprecated; /* Replacement if the procedure is deprecated */ - - /* Procedure type */ - GimpPDBProcType proc_type; /* Type of procedure--Internal, Plug-In, Extension */ - - /* Input arguments */ - gint32 num_args; /* Number of procedure arguments */ - ProcArg *args; /* Array of procedure arguments */ - - /* Output values */ - gint32 num_values; /* Number of return values */ - ProcArg *values; /* Array of return values */ - - /* Method of procedure execution */ - union _ExecMethod - { - IntExec internal; /* Execution information for internal procs */ - PlugInExec plug_in; /* ..................... for plug-ins */ - ExtExec extension; /* ..................... for extensions */ - TempExec temporary; /* ..................... for temp procs */ - } exec_method; -}; -#endif - - -/* Functions */ - void procedural_db_init (Gimp *gimp); void procedural_db_free (Gimp *gimp); diff --git a/app/pdb/gimppluginprocedure.c b/app/pdb/gimppluginprocedure.c index 8a14e48a89..3c3e173e63 100644 --- a/app/pdb/gimppluginprocedure.c +++ b/app/pdb/gimppluginprocedure.c @@ -107,14 +107,6 @@ plug_in_proc_def_find (GSList *list, return NULL; } -const ProcRecord * -plug_in_proc_def_get_proc (const PlugInProcDef *proc_def) -{ - g_return_val_if_fail (proc_def != NULL, NULL); - - return proc_def->procedure; -} - const gchar * plug_in_proc_def_get_progname (const PlugInProcDef *proc_def) { diff --git a/app/pdb/gimppluginprocedure.h b/app/pdb/gimppluginprocedure.h index fcb1ceab9f..9c1d2970ad 100644 --- a/app/pdb/gimppluginprocedure.h +++ b/app/pdb/gimppluginprocedure.h @@ -61,7 +61,6 @@ void plug_in_proc_def_free (PlugInProcDef *proc_def) PlugInProcDef * plug_in_proc_def_find (GSList *list, const gchar *proc_name); -const ProcRecord * plug_in_proc_def_get_proc (const PlugInProcDef *proc_def); const gchar * plug_in_proc_def_get_progname (const PlugInProcDef *proc_def); gchar * plug_in_proc_def_get_label (const PlugInProcDef *proc_def, const gchar *locale_domain); diff --git a/app/pdb/gimpprocedure.c b/app/pdb/gimpprocedure.c index 2630dd1d63..21abaad890 100644 --- a/app/pdb/gimpprocedure.c +++ b/app/pdb/gimpprocedure.c @@ -59,26 +59,9 @@ gimp_procedure_new (void) void gimp_procedure_free (ProcRecord *procedure) { - gint i; - g_return_if_fail (procedure != NULL); - g_free (procedure->name); - g_free (procedure->original_name); - g_free (procedure->blurb); - g_free (procedure->help); - g_free (procedure->author); - g_free (procedure->copyright); - g_free (procedure->date); - - for (i = 0; i < procedure->num_args; i++) - g_param_spec_unref (procedure->args[i].pspec); - - for (i = 0; i < procedure->num_values; i++) - g_param_spec_unref (procedure->values[i].pspec); - - g_free (procedure->args); - g_free (procedure->values); + gimp_procedure_dispose (procedure); g_free (procedure); } @@ -103,6 +86,59 @@ gimp_procedure_init (ProcRecord *procedure, return procedure; } +void +gimp_procedure_dispose (ProcRecord *procedure) +{ + gint i; + + g_return_if_fail (procedure != NULL); + + if (! procedure->static_proc) + { + g_free (procedure->name); + procedure->name = NULL; + + g_free (procedure->original_name); + procedure->original_name = NULL; + + g_free (procedure->blurb); + procedure->blurb = NULL; + + g_free (procedure->help); + procedure->help = NULL; + + g_free (procedure->author); + procedure->author = NULL; + + g_free (procedure->copyright); + procedure->copyright = NULL; + + g_free (procedure->date); + procedure->date = NULL; + + g_free (procedure->deprecated); + procedure->deprecated = NULL; + } + + if (procedure->args) + { + for (i = 0; i < procedure->num_args; i++) + g_param_spec_unref (procedure->args[i].pspec); + + g_free (procedure->args); + procedure->args = NULL; + } + + if (procedure->values) + { + for (i = 0; i < procedure->num_values; i++) + g_param_spec_unref (procedure->values[i].pspec); + + g_free (procedure->values); + procedure->values = NULL; + } +} + Argument * gimp_procedure_execute (ProcRecord *procedure, Gimp *gimp, diff --git a/app/pdb/gimpprocedure.h b/app/pdb/gimpprocedure.h index 58b6b09ff7..b4a09ede1e 100644 --- a/app/pdb/gimpprocedure.h +++ b/app/pdb/gimpprocedure.h @@ -61,46 +61,45 @@ struct _TempExec struct _ProcRecord { /* Procedure information */ - gchar *name; /* Procedure name */ - gchar *original_name; /* Procedure name before canonicalization */ - gchar *blurb; /* Short procedure description */ - gchar *help; /* Detailed help instructions */ - gchar *author; /* Author field */ - gchar *copyright; /* Copyright field */ - gchar *date; /* Date field */ - - gchar *deprecated; /* Replacement if the procedure is deprecated */ + gboolean static_proc; /* Are the procedure's strings allocated */ + gchar *name; /* Procedure name */ + gchar *original_name; /* Procedure name before canonicalization */ + gchar *blurb; /* Short procedure description */ + gchar *help; /* Detailed help instructions */ + gchar *author; /* Author field */ + gchar *copyright; /* Copyright field */ + gchar *date; /* Date field */ + gchar *deprecated; /* Replacement if the procedure is deprecated */ /* Procedure type */ - GimpPDBProcType proc_type; /* Type of procedure--Internal, Plug-In, Extension */ + GimpPDBProcType proc_type; /* Type of procedure */ /* Input arguments */ - gint32 num_args; /* Number of procedure arguments */ - ProcArg *args; /* Array of procedure arguments */ + gint32 num_args; /* Number of procedure arguments */ + ProcArg *args; /* Array of procedure arguments */ /* Output values */ - gint32 num_values; /* Number of return values */ - ProcArg *values; /* Array of return values */ + gint32 num_values; /* Number of return values */ + ProcArg *values; /* Array of return values */ /* Method of procedure execution */ union _ExecMethod { - IntExec internal; /* Execution information for internal procs */ - PlugInExec plug_in; /* ..................... for plug-ins */ - ExtExec extension; /* ..................... for extensions */ - TempExec temporary; /* ..................... for temp procs */ + IntExec internal; /* Execution information for internal procs */ + PlugInExec plug_in; /* ..................... for plug-ins */ + ExtExec extension; /* ..................... for extensions */ + TempExec temporary; /* ..................... for temp procs */ } exec_method; }; -/* Functions */ - ProcRecord * gimp_procedure_new (void); void gimp_procedure_free (ProcRecord *procedure); ProcRecord * gimp_procedure_init (ProcRecord *procedure, gint n_arguments, gint n_return_vals); +void gimp_procedure_dispose (ProcRecord *procedure); void gimp_procedure_add_argument (ProcRecord *procedure, GimpPDBArgType arg_type, diff --git a/app/pdb/gimprc_cmds.c b/app/pdb/gimprc_cmds.c index df433e4b9d..88c1247ce1 100644 --- a/app/pdb/gimprc_cmds.c +++ b/app/pdb/gimprc_cmds.c @@ -209,6 +209,7 @@ gimprc_query_invoker (ProcRecord *proc_record, static ProcRecord gimprc_query_proc = { + TRUE, "gimp-gimprc-query", "gimp-gimprc-query", "Queries the gimprc file parser for information on a specified token.", @@ -252,6 +253,7 @@ gimprc_set_invoker (ProcRecord *proc_record, static ProcRecord gimprc_set_proc = { + TRUE, "gimp-gimprc-set", "gimp-gimprc-set", "Sets a gimprc token to a value and saves it in the gimprc.", @@ -285,6 +287,7 @@ get_default_comment_invoker (ProcRecord *proc_record, static ProcRecord get_default_comment_proc = { + TRUE, "gimp-get-default-comment", "gimp-get-default-comment", "Get the default image comment as specified in the Preferences.", @@ -322,6 +325,7 @@ get_monitor_resolution_invoker (ProcRecord *proc_record, static ProcRecord get_monitor_resolution_proc = { + TRUE, "gimp-get-monitor-resolution", "gimp-get-monitor-resolution", "Get the monitor resolution as specified in the Preferences.", @@ -355,6 +359,7 @@ get_theme_dir_invoker (ProcRecord *proc_record, static ProcRecord get_theme_dir_proc = { + TRUE, "gimp-get-theme-dir", "gimp-get-theme-dir", "Get the directory of the current GUI theme.", @@ -388,6 +393,7 @@ get_color_configuration_invoker (ProcRecord *proc_record, static ProcRecord get_color_configuration_proc = { + TRUE, "gimp-get-color-configuration", "gimp-get-color-configuration", "Get a serialized version of the color management configuration.", @@ -421,6 +427,7 @@ get_module_load_inhibit_invoker (ProcRecord *proc_record, static ProcRecord get_module_load_inhibit_proc = { + TRUE, "gimp-get-module-load-inhibit", "gimp-get-module-load-inhibit", "Get the list of modules which should not be loaded.", diff --git a/app/pdb/gradient_cmds.c b/app/pdb/gradient_cmds.c index eb5e9ae48a..885c7eaa4b 100644 --- a/app/pdb/gradient_cmds.c +++ b/app/pdb/gradient_cmds.c @@ -1106,6 +1106,7 @@ gradient_new_invoker (ProcRecord *proc_record, static ProcRecord gradient_new_proc = { + TRUE, "gimp-gradient-new", "gimp-gradient-new", "Creates a new gradient", @@ -1163,6 +1164,7 @@ gradient_duplicate_invoker (ProcRecord *proc_record, static ProcRecord gradient_duplicate_proc = { + TRUE, "gimp-gradient-duplicate", "gimp-gradient-duplicate", "Duplicates a gradient", @@ -1211,6 +1213,7 @@ gradient_is_editable_invoker (ProcRecord *proc_record, static ProcRecord gradient_is_editable_proc = { + TRUE, "gimp-gradient-is-editable", "gimp-gradient-is-editable", "Tests if gradient can be edited", @@ -1264,6 +1267,7 @@ gradient_rename_invoker (ProcRecord *proc_record, static ProcRecord gradient_rename_proc = { + TRUE, "gimp-gradient-rename", "gimp-gradient-rename", "Rename a gradient", @@ -1317,6 +1321,7 @@ gradient_delete_invoker (ProcRecord *proc_record, static ProcRecord gradient_delete_proc = { + TRUE, "gimp-gradient-delete", "gimp-gradient-delete", "Deletes a gradient", @@ -1396,6 +1401,7 @@ gradient_get_uniform_samples_invoker (ProcRecord *proc_record, static ProcRecord gradient_get_uniform_samples_proc = { + TRUE, "gimp-gradient-get-uniform-samples", "gimp-gradient-get-uniform-samples", "Sample the specified in uniform parts.", @@ -1476,6 +1482,7 @@ gradient_get_custom_samples_invoker (ProcRecord *proc_record, static ProcRecord gradient_get_custom_samples_proc = { + TRUE, "gimp-gradient-get-custom-samples", "gimp-gradient-get-custom-samples", "Sample the spacified gradient in custom positions.", @@ -1535,6 +1542,7 @@ gradient_segment_get_left_color_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_get_left_color_proc = { + TRUE, "gimp-gradient-segment-get-left-color", "gimp-gradient-segment-get-left-color", "Retrieves the left endpoint color of the specified segment", @@ -1587,6 +1595,7 @@ gradient_segment_set_left_color_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_set_left_color_proc = { + TRUE, "gimp-gradient-segment-set-left-color", "gimp-gradient-segment-set-left-color", "Retrieves the left endpoint color of the specified segment", @@ -1646,6 +1655,7 @@ gradient_segment_get_right_color_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_get_right_color_proc = { + TRUE, "gimp-gradient-segment-get-right-color", "gimp-gradient-segment-get-right-color", "Retrieves the right endpoint color of the specified segment", @@ -1698,6 +1708,7 @@ gradient_segment_set_right_color_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_set_right_color_proc = { + TRUE, "gimp-gradient-segment-set-right-color", "gimp-gradient-segment-set-right-color", "Retrieves the right endpoint color of the specified segment", @@ -1752,6 +1763,7 @@ gradient_segment_get_left_pos_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_get_left_pos_proc = { + TRUE, "gimp-gradient-segment-get-left-pos", "gimp-gradient-segment-get-left-pos", "Retrieves the left endpoint position of the specified segment", @@ -1808,6 +1820,7 @@ gradient_segment_set_left_pos_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_set_left_pos_proc = { + TRUE, "gimp-gradient-segment-set-left-pos", "gimp-gradient-segment-set-left-pos", "Sets the left endpoint position of the specified segment", @@ -1862,6 +1875,7 @@ gradient_segment_get_middle_pos_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_get_middle_pos_proc = { + TRUE, "gimp-gradient-segment-get-middle-pos", "gimp-gradient-segment-get-middle-pos", "Retrieves the middle point position of the specified segment", @@ -1919,6 +1933,7 @@ gradient_segment_set_middle_pos_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_set_middle_pos_proc = { + TRUE, "gimp-gradient-segment-set-middle-pos", "gimp-gradient-segment-set-middle-pos", "Sets the middle point position of the specified segment", @@ -1973,6 +1988,7 @@ gradient_segment_get_right_pos_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_get_right_pos_proc = { + TRUE, "gimp-gradient-segment-get-right-pos", "gimp-gradient-segment-get-right-pos", "Retrieves the right endpoint position of the specified segment", @@ -2030,6 +2046,7 @@ gradient_segment_set_right_pos_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_set_right_pos_proc = { + TRUE, "gimp-gradient-segment-set-right-pos", "gimp-gradient-segment-set-right-pos", "Sets the right endpoint position of the specified segment", @@ -2084,6 +2101,7 @@ gradient_segment_get_blending_function_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_get_blending_function_proc = { + TRUE, "gimp-gradient-segment-get-blending-function", "gimp-gradient-segment-get-blending-function", "Retrieves the gradient segment's blending function", @@ -2138,6 +2156,7 @@ gradient_segment_get_coloring_type_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_get_coloring_type_proc = { + TRUE, "gimp-gradient-segment-get-coloring-type", "gimp-gradient-segment-get-coloring-type", "Retrieves the gradient segment's coloring type", @@ -2193,6 +2212,7 @@ gradient_segment_range_set_blending_function_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_set_blending_function_proc = { + TRUE, "gimp-gradient-segment-range-set-blending-function", "gimp-gradient-segment-range-set-blending-function", "Change the blending function of a segments range", @@ -2248,6 +2268,7 @@ gradient_segment_range_set_coloring_type_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_set_coloring_type_proc = { + TRUE, "gimp-gradient-segment-range-set-coloring-type", "gimp-gradient-segment-range-set-coloring-type", "Change the coloring type of a segments range", @@ -2301,6 +2322,7 @@ gradient_segment_range_flip_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_flip_proc = { + TRUE, "gimp-gradient-segment-range-flip", "gimp-gradient-segment-range-flip", "Flip the segment range", @@ -2357,6 +2379,7 @@ gradient_segment_range_replicate_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_replicate_proc = { + TRUE, "gimp-gradient-segment-range-replicate", "gimp-gradient-segment-range-replicate", "Replicate the segment range", @@ -2410,6 +2433,7 @@ gradient_segment_range_split_midpoint_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_split_midpoint_proc = { + TRUE, "gimp-gradient-segment-range-split-midpoint", "gimp-gradient-segment-range-split-midpoint", "Splits each segment in the segment range at midpoint", @@ -2466,6 +2490,7 @@ gradient_segment_range_split_uniform_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_split_uniform_proc = { + TRUE, "gimp-gradient-segment-range-split-uniform", "gimp-gradient-segment-range-split-uniform", "Splits each segment in the segment range uniformly", @@ -2519,6 +2544,7 @@ gradient_segment_range_delete_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_delete_proc = { + TRUE, "gimp-gradient-segment-range-delete", "gimp-gradient-segment-range-delete", "Delete the segment range", @@ -2571,6 +2597,7 @@ gradient_segment_range_redistribute_handles_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_redistribute_handles_proc = { + TRUE, "gimp-gradient-segment-range-redistribute-handles", "gimp-gradient-segment-range-redistribute-handles", "Uniformly redistribute the segment range's handles", @@ -2626,6 +2653,7 @@ gradient_segment_range_blend_colors_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_blend_colors_proc = { + TRUE, "gimp-gradient-segment-range-blend-colors", "gimp-gradient-segment-range-blend-colors", "Blend the colors of the segment range.", @@ -2681,6 +2709,7 @@ gradient_segment_range_blend_opacity_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_blend_opacity_proc = { + TRUE, "gimp-gradient-segment-range-blend-opacity", "gimp-gradient-segment-range-blend-opacity", "Blend the opacity of the segment range.", @@ -2746,6 +2775,7 @@ gradient_segment_range_move_invoker (ProcRecord *proc_record, static ProcRecord gradient_segment_range_move_proc = { + TRUE, "gimp-gradient-segment-range-move", "gimp-gradient-segment-range-move", "Move the position of an entire segment range by a delta.", diff --git a/app/pdb/gradient_select_cmds.c b/app/pdb/gradient_select_cmds.c index c7f0655c6d..68b31d033c 100644 --- a/app/pdb/gradient_select_cmds.c +++ b/app/pdb/gradient_select_cmds.c @@ -153,6 +153,7 @@ gradients_popup_invoker (ProcRecord *proc_record, static ProcRecord gradients_popup_proc = { + TRUE, "gimp-gradients-popup", "gimp-gradients-popup", "Invokes the Gimp gradients selection.", @@ -192,6 +193,7 @@ gradients_close_popup_invoker (ProcRecord *proc_record, static ProcRecord gradients_close_popup_proc = { + TRUE, "gimp-gradients-close-popup", "gimp-gradients-close-popup", "Popdown the Gimp gradient selection.", @@ -234,6 +236,7 @@ gradients_set_popup_invoker (ProcRecord *proc_record, static ProcRecord gradients_set_popup_proc = { + TRUE, "gimp-gradients-set-popup", "gimp-gradients-set-popup", "Sets the current gradient selection in a popup.", diff --git a/app/pdb/gradients_cmds.c b/app/pdb/gradients_cmds.c index cda08c9c56..5fd134c342 100644 --- a/app/pdb/gradients_cmds.c +++ b/app/pdb/gradients_cmds.c @@ -216,6 +216,7 @@ gradients_refresh_invoker (ProcRecord *proc_record, static ProcRecord gradients_refresh_proc = { + TRUE, "gimp-gradients-refresh", "gimp-gradients-refresh", "Refresh current gradients. This function always succeeds.", @@ -263,6 +264,7 @@ gradients_get_list_invoker (ProcRecord *proc_record, static ProcRecord gradients_get_list_proc = { + TRUE, "gimp-gradients-get-list", "gimp-gradients-get-list", "Retrieve the list of loaded gradients.", @@ -336,6 +338,7 @@ gradients_sample_uniform_invoker (ProcRecord *proc_record, static ProcRecord gradients_sample_uniform_proc = { + TRUE, "gimp-gradients-sample-uniform", "gimp-gradients-sample-uniform", "This procedure is deprecated! Use 'gimp-gradient-get-uniform-samples' instead.", @@ -408,6 +411,7 @@ gradients_sample_custom_invoker (ProcRecord *proc_record, static ProcRecord gradients_sample_custom_proc = { + TRUE, "gimp-gradients-sample-custom", "gimp-gradients-sample-custom", "This procedure is deprecated! Use 'gimp-gradient-get-custom-samples' instead.", @@ -505,6 +509,7 @@ gradients_get_gradient_data_invoker (ProcRecord *proc_record, static ProcRecord gradients_get_gradient_data_proc = { + TRUE, "gimp-gradients-get-gradient-data", "gimp-gradients-get-gradient-data", "This procedure is deprecated! Use 'gimp-gradient-get-uniform-samples' instead.", diff --git a/app/pdb/grid_cmds.c b/app/pdb/grid_cmds.c index fad04466d9..467101f6db 100644 --- a/app/pdb/grid_cmds.c +++ b/app/pdb/grid_cmds.c @@ -324,6 +324,7 @@ image_grid_get_spacing_invoker (ProcRecord *proc_record, static ProcRecord image_grid_get_spacing_proc = { + TRUE, "gimp-image-grid-get-spacing", "gimp-image-grid-get-spacing", "Gets the spacing of an image's grid.", @@ -371,6 +372,7 @@ image_grid_set_spacing_invoker (ProcRecord *proc_record, static ProcRecord image_grid_set_spacing_proc = { + TRUE, "gimp-image-grid-set-spacing", "gimp-image-grid-set-spacing", "Sets the spacing of an image's grid.", @@ -425,6 +427,7 @@ image_grid_get_offset_invoker (ProcRecord *proc_record, static ProcRecord image_grid_get_offset_proc = { + TRUE, "gimp-image-grid-get-offset", "gimp-image-grid-get-offset", "Gets the offset of an image's grid.", @@ -472,6 +475,7 @@ image_grid_set_offset_invoker (ProcRecord *proc_record, static ProcRecord image_grid_set_offset_proc = { + TRUE, "gimp-image-grid-set-offset", "gimp-image-grid-set-offset", "Sets the offset of an image's grid.", @@ -519,6 +523,7 @@ image_grid_get_foreground_color_invoker (ProcRecord *proc_record, static ProcRecord image_grid_get_foreground_color_proc = { + TRUE, "gimp-image-grid-get-foreground-color", "gimp-image-grid-get-foreground-color", "Sets the foreground color of an image's grid.", @@ -561,6 +566,7 @@ image_grid_set_foreground_color_invoker (ProcRecord *proc_record, static ProcRecord image_grid_set_foreground_color_proc = { + TRUE, "gimp-image-grid-set-foreground-color", "gimp-image-grid-set-foreground-color", "Gets the foreground color of an image's grid.", @@ -608,6 +614,7 @@ image_grid_get_background_color_invoker (ProcRecord *proc_record, static ProcRecord image_grid_get_background_color_proc = { + TRUE, "gimp-image-grid-get-background-color", "gimp-image-grid-get-background-color", "Sets the background color of an image's grid.", @@ -650,6 +657,7 @@ image_grid_set_background_color_invoker (ProcRecord *proc_record, static ProcRecord image_grid_set_background_color_proc = { + TRUE, "gimp-image-grid-set-background-color", "gimp-image-grid-set-background-color", "Gets the background color of an image's grid.", @@ -697,6 +705,7 @@ image_grid_get_style_invoker (ProcRecord *proc_record, static ProcRecord image_grid_get_style_proc = { + TRUE, "gimp-image-grid-get-style", "gimp-image-grid-get-style", "Gets the style of an image's grid.", @@ -739,6 +748,7 @@ image_grid_set_style_invoker (ProcRecord *proc_record, static ProcRecord image_grid_set_style_proc = { + TRUE, "gimp-image-grid-set-style", "gimp-image-grid-set-style", "Sets the style unit of an image's grid.", diff --git a/app/pdb/guides_cmds.c b/app/pdb/guides_cmds.c index 9935b093f0..931fa4de57 100644 --- a/app/pdb/guides_cmds.c +++ b/app/pdb/guides_cmds.c @@ -243,6 +243,7 @@ image_add_hguide_invoker (ProcRecord *proc_record, static ProcRecord image_add_hguide_proc = { + TRUE, "gimp-image-add-hguide", "gimp-image-add-hguide", "Add a horizontal guide to an image.", @@ -295,6 +296,7 @@ image_add_vguide_invoker (ProcRecord *proc_record, static ProcRecord image_add_vguide_proc = { + TRUE, "gimp-image-add-vguide", "gimp-image-add-vguide", "Add a vertical guide to an image.", @@ -337,6 +339,7 @@ image_delete_guide_invoker (ProcRecord *proc_record, static ProcRecord image_delete_guide_proc = { + TRUE, "gimp-image-delete-guide", "gimp-image-delete-guide", "Deletes a guide from an image.", @@ -384,6 +387,7 @@ image_find_next_guide_invoker (ProcRecord *proc_record, static ProcRecord image_find_next_guide_proc = { + TRUE, "gimp-image-find-next-guide", "gimp-image-find-next-guide", "Find next guide on an image.", @@ -433,6 +437,7 @@ image_get_guide_orientation_invoker (ProcRecord *proc_record, static ProcRecord image_get_guide_orientation_proc = { + TRUE, "gimp-image-get-guide-orientation", "gimp-image-get-guide-orientation", "Get orientation of a guide on an image.", @@ -482,6 +487,7 @@ image_get_guide_position_invoker (ProcRecord *proc_record, static ProcRecord image_get_guide_position_proc = { + TRUE, "gimp-image-get-guide-position", "gimp-image-get-guide-position", "Get position of a guide on an image.", diff --git a/app/pdb/help_cmds.c b/app/pdb/help_cmds.c index 133fcc55f9..2287e389d5 100644 --- a/app/pdb/help_cmds.c +++ b/app/pdb/help_cmds.c @@ -91,6 +91,7 @@ help_invoker (ProcRecord *proc_record, static ProcRecord help_proc = { + TRUE, "gimp-help", "gimp-help", "Load a help page.", diff --git a/app/pdb/image_cmds.c b/app/pdb/image_cmds.c index e80cedac18..207aef6f5d 100644 --- a/app/pdb/image_cmds.c +++ b/app/pdb/image_cmds.c @@ -1955,6 +1955,7 @@ image_list_invoker (ProcRecord *proc_record, static ProcRecord image_list_proc = { + TRUE, "gimp-image-list", "gimp-image-list", "Returns the list of images currently open.", @@ -2004,6 +2005,7 @@ image_new_invoker (ProcRecord *proc_record, static ProcRecord image_new_proc = { + TRUE, "gimp-image-new", "gimp-image-new", "Creates a new image with the specified width, height, and type.", @@ -2049,6 +2051,7 @@ image_duplicate_invoker (ProcRecord *proc_record, static ProcRecord image_duplicate_proc = { + TRUE, "gimp-image-duplicate", "gimp-image-duplicate", "Duplicate the specified image", @@ -2087,6 +2090,7 @@ image_delete_invoker (ProcRecord *proc_record, static ProcRecord image_delete_proc = { + TRUE, "gimp-image-delete", "gimp-image-delete", "Delete the specified image.", @@ -2129,6 +2133,7 @@ image_base_type_invoker (ProcRecord *proc_record, static ProcRecord image_base_type_proc = { + TRUE, "gimp-image-base-type", "gimp-image-base-type", "Get the base type of the image.", @@ -2171,6 +2176,7 @@ image_width_invoker (ProcRecord *proc_record, static ProcRecord image_width_proc = { + TRUE, "gimp-image-width", "gimp-image-width", "Return the width of the image", @@ -2213,6 +2219,7 @@ image_height_invoker (ProcRecord *proc_record, static ProcRecord image_height_proc = { + TRUE, "gimp-image-height", "gimp-image-height", "Return the height of the image", @@ -2248,6 +2255,7 @@ image_free_shadow_invoker (ProcRecord *proc_record, static ProcRecord image_free_shadow_proc = { + TRUE, "gimp-image-free-shadow", "gimp-image-free-shadow", "Free the specified image's shadow data (if it exists).", @@ -2292,6 +2300,7 @@ image_resize_invoker (ProcRecord *proc_record, static ProcRecord image_resize_proc = { + TRUE, "gimp-image-resize", "gimp-image-resize", "Resize the image to the specified extents.", @@ -2327,6 +2336,7 @@ image_resize_to_layers_invoker (ProcRecord *proc_record, static ProcRecord image_resize_to_layers_proc = { + TRUE, "gimp-image-resize-to-layers", "gimp-image-resize-to-layers", "Resize the image to fit all layers.", @@ -2368,6 +2378,7 @@ image_scale_invoker (ProcRecord *proc_record, static ProcRecord image_scale_proc = { + TRUE, "gimp-image-scale", "gimp-image-scale", "Scale the image to the specified extents.", @@ -2419,6 +2430,7 @@ image_crop_invoker (ProcRecord *proc_record, static ProcRecord image_crop_proc = { + TRUE, "gimp-image-crop", "gimp-image-crop", "Crop the image to the specified extents.", @@ -2456,6 +2468,7 @@ image_flip_invoker (ProcRecord *proc_record, static ProcRecord image_flip_proc = { + TRUE, "gimp-image-flip", "gimp-image-flip", "Flips the image horizontally or vertically.", @@ -2493,6 +2506,7 @@ image_rotate_invoker (ProcRecord *proc_record, static ProcRecord image_rotate_proc = { + TRUE, "gimp-image-rotate", "gimp-image-rotate", "Rotates the image by the specified degrees.", @@ -2551,6 +2565,7 @@ image_get_layers_invoker (ProcRecord *proc_record, static ProcRecord image_get_layers_proc = { + TRUE, "gimp-image-get-layers", "gimp-image-get-layers", "Returns the list of layers contained in the specified image.", @@ -2609,6 +2624,7 @@ image_get_channels_invoker (ProcRecord *proc_record, static ProcRecord image_get_channels_proc = { + TRUE, "gimp-image-get-channels", "gimp-image-get-channels", "Returns the list of channels contained in the specified image.", @@ -2667,6 +2683,7 @@ image_get_vectors_invoker (ProcRecord *proc_record, static ProcRecord image_get_vectors_proc = { + TRUE, "gimp-image-get-vectors", "gimp-image-get-vectors", "Returns the list of vectors contained in the specified image.", @@ -2709,6 +2726,7 @@ image_get_active_drawable_invoker (ProcRecord *proc_record, static ProcRecord image_get_active_drawable_proc = { + TRUE, "gimp-image-get-active-drawable", "gimp-image-get-active-drawable", "Get the image's active drawable", @@ -2744,6 +2762,7 @@ image_unset_active_channel_invoker (ProcRecord *proc_record, static ProcRecord image_unset_active_channel_proc = { + TRUE, "gimp-image-unset-active-channel", "gimp-image-unset-active-channel", "Unsets the active channel in the specified image.", @@ -2786,6 +2805,7 @@ image_get_floating_sel_invoker (ProcRecord *proc_record, static ProcRecord image_get_floating_sel_proc = { + TRUE, "gimp-image-get-floating-sel", "gimp-image-get-floating-sel", "Return the floating selection of the image.", @@ -2833,6 +2853,7 @@ image_floating_sel_attached_to_invoker (ProcRecord *proc_record, static ProcRecord image_floating_sel_attached_to_proc = { + TRUE, "gimp-image-floating-sel-attached-to", "gimp-image-floating-sel-attached-to", "Return the drawable the floating selection is attached to.", @@ -2913,6 +2934,7 @@ image_pick_color_invoker (ProcRecord *proc_record, static ProcRecord image_pick_color_proc = { + TRUE, "gimp-image-pick-color", "gimp-image-pick-color", "Determine the color at the given drawable coordinates", @@ -2959,6 +2981,7 @@ image_pick_correlate_layer_invoker (ProcRecord *proc_record, static ProcRecord image_pick_correlate_layer_proc = { + TRUE, "gimp-image-pick-correlate-layer", "gimp-image-pick-correlate-layer", "Find the layer visible at the specified coordinates.", @@ -3007,6 +3030,7 @@ image_add_layer_invoker (ProcRecord *proc_record, static ProcRecord image_add_layer_proc = { + TRUE, "gimp-image-add-layer", "gimp-image-add-layer", "Add the specified layer to the image.", @@ -3044,6 +3068,7 @@ image_remove_layer_invoker (ProcRecord *proc_record, static ProcRecord image_remove_layer_proc = { + TRUE, "gimp-image-remove-layer", "gimp-image-remove-layer", "Remove the specified layer from the image.", @@ -3081,6 +3106,7 @@ image_raise_layer_invoker (ProcRecord *proc_record, static ProcRecord image_raise_layer_proc = { + TRUE, "gimp-image-raise-layer", "gimp-image-raise-layer", "Raise the specified layer in the image's layer stack", @@ -3118,6 +3144,7 @@ image_lower_layer_invoker (ProcRecord *proc_record, static ProcRecord image_lower_layer_proc = { + TRUE, "gimp-image-lower-layer", "gimp-image-lower-layer", "Lower the specified layer in the image's layer stack", @@ -3155,6 +3182,7 @@ image_raise_layer_to_top_invoker (ProcRecord *proc_record, static ProcRecord image_raise_layer_to_top_proc = { + TRUE, "gimp-image-raise-layer-to-top", "gimp-image-raise-layer-to-top", "Raise the specified layer in the image's layer stack to top of stack", @@ -3192,6 +3220,7 @@ image_lower_layer_to_bottom_invoker (ProcRecord *proc_record, static ProcRecord image_lower_layer_to_bottom_proc = { + TRUE, "gimp-image-lower-layer-to-bottom", "gimp-image-lower-layer-to-bottom", "Lower the specified layer in the image's layer stack to bottom of stack", @@ -3234,6 +3263,7 @@ image_add_channel_invoker (ProcRecord *proc_record, static ProcRecord image_add_channel_proc = { + TRUE, "gimp-image-add-channel", "gimp-image-add-channel", "Add the specified channel to the image.", @@ -3271,6 +3301,7 @@ image_remove_channel_invoker (ProcRecord *proc_record, static ProcRecord image_remove_channel_proc = { + TRUE, "gimp-image-remove-channel", "gimp-image-remove-channel", "Remove the specified channel from the image.", @@ -3308,6 +3339,7 @@ image_raise_channel_invoker (ProcRecord *proc_record, static ProcRecord image_raise_channel_proc = { + TRUE, "gimp-image-raise-channel", "gimp-image-raise-channel", "Raise the specified channel in the image's channel stack", @@ -3345,6 +3377,7 @@ image_lower_channel_invoker (ProcRecord *proc_record, static ProcRecord image_lower_channel_proc = { + TRUE, "gimp-image-lower-channel", "gimp-image-lower-channel", "Lower the specified channel in the image's channel stack", @@ -3387,6 +3420,7 @@ image_add_vectors_invoker (ProcRecord *proc_record, static ProcRecord image_add_vectors_proc = { + TRUE, "gimp-image-add-vectors", "gimp-image-add-vectors", "Add the specified vectors object to the image.", @@ -3424,6 +3458,7 @@ image_remove_vectors_invoker (ProcRecord *proc_record, static ProcRecord image_remove_vectors_proc = { + TRUE, "gimp-image-remove-vectors", "gimp-image-remove-vectors", "Remove the specified path from the image.", @@ -3461,6 +3496,7 @@ image_raise_vectors_invoker (ProcRecord *proc_record, static ProcRecord image_raise_vectors_proc = { + TRUE, "gimp-image-raise-vectors", "gimp-image-raise-vectors", "Raise the specified vectors in the image's vectors stack", @@ -3498,6 +3534,7 @@ image_lower_vectors_invoker (ProcRecord *proc_record, static ProcRecord image_lower_vectors_proc = { + TRUE, "gimp-image-lower-vectors", "gimp-image-lower-vectors", "Lower the specified vectors in the image's vectors stack", @@ -3535,6 +3572,7 @@ image_raise_vectors_to_top_invoker (ProcRecord *proc_record, static ProcRecord image_raise_vectors_to_top_proc = { + TRUE, "gimp-image-raise-vectors-to-top", "gimp-image-raise-vectors-to-top", "Raise the specified vectors in the image's vectors stack to top of stack", @@ -3572,6 +3610,7 @@ image_lower_vectors_to_bottom_invoker (ProcRecord *proc_record, static ProcRecord image_lower_vectors_to_bottom_proc = { + TRUE, "gimp-image-lower-vectors-to-bottom", "gimp-image-lower-vectors-to-bottom", "Lower the specified vectors in the image's vectors stack to bottom of stack", @@ -3617,6 +3656,7 @@ image_flatten_invoker (ProcRecord *proc_record, static ProcRecord image_flatten_proc = { + TRUE, "gimp-image-flatten", "gimp-image-flatten", "Flatten all visible layers into a single layer. Discard all invisible layers.", @@ -3664,6 +3704,7 @@ image_merge_visible_layers_invoker (ProcRecord *proc_record, static ProcRecord image_merge_visible_layers_proc = { + TRUE, "gimp-image-merge-visible-layers", "gimp-image-merge-visible-layers", "Merge the visible image layers into one.", @@ -3713,6 +3754,7 @@ image_merge_down_invoker (ProcRecord *proc_record, static ProcRecord image_merge_down_proc = { + TRUE, "gimp-image-merge-down", "gimp-image-merge-down", "Merge the layer passed and the first visible layer below.", @@ -3753,6 +3795,7 @@ image_add_layer_mask_invoker (ProcRecord *proc_record, static ProcRecord image_add_layer_mask_proc = { + TRUE, "gimp-image-add-layer-mask", "gimp-image-add-layer-mask", "This procedure is deprecated! Use 'gimp-layer-add-mask' instead.", @@ -3792,6 +3835,7 @@ image_remove_layer_mask_invoker (ProcRecord *proc_record, static ProcRecord image_remove_layer_mask_proc = { + TRUE, "gimp-image-remove-layer-mask", "gimp-image-remove-layer-mask", "This procedure is deprecated! Use 'gimp-layer-remove-mask' instead.", @@ -3839,6 +3883,7 @@ image_get_colormap_invoker (ProcRecord *proc_record, static ProcRecord image_get_colormap_proc = { + TRUE, "gimp-image-get-colormap", "gimp-image-get-colormap", "Returns the image's colormap", @@ -3878,6 +3923,7 @@ image_set_colormap_invoker (ProcRecord *proc_record, static ProcRecord image_set_colormap_proc = { + TRUE, "gimp-image-set-colormap", "gimp-image-set-colormap", "Sets the entries in the image's colormap.", @@ -3913,6 +3959,7 @@ image_clean_all_invoker (ProcRecord *proc_record, static ProcRecord image_clean_all_proc = { + TRUE, "gimp-image-clean-all", "gimp-image-clean-all", "Set the image dirty count to 0.", @@ -3955,6 +4002,7 @@ image_is_dirty_invoker (ProcRecord *proc_record, static ProcRecord image_is_dirty_proc = { + TRUE, "gimp-image-is-dirty", "gimp-image-is-dirty", "Checks if the image has unsaved changes.", @@ -4046,6 +4094,7 @@ image_thumbnail_invoker (ProcRecord *proc_record, static ProcRecord image_thumbnail_proc = { + TRUE, "gimp-image-thumbnail", "gimp-image-thumbnail", "Get a thumbnail of an image.", @@ -4088,6 +4137,7 @@ image_get_active_layer_invoker (ProcRecord *proc_record, static ProcRecord image_get_active_layer_proc = { + TRUE, "gimp-image-get-active-layer", "gimp-image-get-active-layer", "Returns the specified image's active layer.", @@ -4126,6 +4176,7 @@ image_set_active_layer_invoker (ProcRecord *proc_record, static ProcRecord image_set_active_layer_proc = { + TRUE, "gimp-image-set-active-layer", "gimp-image-set-active-layer", "Sets the specified image's active layer.", @@ -4168,6 +4219,7 @@ image_get_active_channel_invoker (ProcRecord *proc_record, static ProcRecord image_get_active_channel_proc = { + TRUE, "gimp-image-get-active-channel", "gimp-image-get-active-channel", "Returns the specified image's active channel.", @@ -4206,6 +4258,7 @@ image_set_active_channel_invoker (ProcRecord *proc_record, static ProcRecord image_set_active_channel_proc = { + TRUE, "gimp-image-set-active-channel", "gimp-image-set-active-channel", "Sets the specified image's active channel.", @@ -4248,6 +4301,7 @@ image_get_active_vectors_invoker (ProcRecord *proc_record, static ProcRecord image_get_active_vectors_proc = { + TRUE, "gimp-image-get-active-vectors", "gimp-image-get-active-vectors", "Returns the specified image's active vectors.", @@ -4286,6 +4340,7 @@ image_set_active_vectors_invoker (ProcRecord *proc_record, static ProcRecord image_set_active_vectors_proc = { + TRUE, "gimp-image-set-active-vectors", "gimp-image-set-active-vectors", "Sets the specified image's active vectors.", @@ -4331,6 +4386,7 @@ image_get_selection_invoker (ProcRecord *proc_record, static ProcRecord image_get_selection_proc = { + TRUE, "gimp-image-get-selection", "gimp-image-get-selection", "Returns the specified image's selection.", @@ -4383,6 +4439,7 @@ image_get_component_active_invoker (ProcRecord *proc_record, static ProcRecord image_get_component_active_proc = { + TRUE, "gimp-image-get-component-active", "gimp-image-get-component-active", "Returns if the specified image's image component is active.", @@ -4430,6 +4487,7 @@ image_set_component_active_invoker (ProcRecord *proc_record, static ProcRecord image_set_component_active_proc = { + TRUE, "gimp-image-set-component-active", "gimp-image-set-component-active", "Sets if the specified image's image component is active.", @@ -4482,6 +4540,7 @@ image_get_component_visible_invoker (ProcRecord *proc_record, static ProcRecord image_get_component_visible_proc = { + TRUE, "gimp-image-get-component-visible", "gimp-image-get-component-visible", "Returns if the specified image's image component is visible.", @@ -4529,6 +4588,7 @@ image_set_component_visible_invoker (ProcRecord *proc_record, static ProcRecord image_set_component_visible_proc = { + TRUE, "gimp-image-set-component-visible", "gimp-image-set-component-visible", "Sets if the specified image's image component is visible.", @@ -4571,6 +4631,7 @@ image_get_filename_invoker (ProcRecord *proc_record, static ProcRecord image_get_filename_proc = { + TRUE, "gimp-image-get-filename", "gimp-image-get-filename", "Returns the specified image's filename.", @@ -4626,6 +4687,7 @@ image_set_filename_invoker (ProcRecord *proc_record, static ProcRecord image_set_filename_proc = { + TRUE, "gimp-image-set-filename", "gimp-image-set-filename", "Sets the specified image's filename.", @@ -4673,6 +4735,7 @@ image_get_name_invoker (ProcRecord *proc_record, static ProcRecord image_get_name_proc = { + TRUE, "gimp-image-get-name", "gimp-image-get-name", "Returns the specified image's name.", @@ -4719,6 +4782,7 @@ image_get_resolution_invoker (ProcRecord *proc_record, static ProcRecord image_get_resolution_proc = { + TRUE, "gimp-image-get-resolution", "gimp-image-get-resolution", "Returns the specified image's resolution.", @@ -4770,6 +4834,7 @@ image_set_resolution_invoker (ProcRecord *proc_record, static ProcRecord image_set_resolution_proc = { + TRUE, "gimp-image-set-resolution", "gimp-image-set-resolution", "Sets the specified image's resolution.", @@ -4812,6 +4877,7 @@ image_get_unit_invoker (ProcRecord *proc_record, static ProcRecord image_get_unit_proc = { + TRUE, "gimp-image-get-unit", "gimp-image-get-unit", "Returns the specified image's unit.", @@ -4849,6 +4915,7 @@ image_set_unit_invoker (ProcRecord *proc_record, static ProcRecord image_set_unit_proc = { + TRUE, "gimp-image-set-unit", "gimp-image-set-unit", "Sets the specified image's unit.", @@ -4891,6 +4958,7 @@ image_get_tattoo_state_invoker (ProcRecord *proc_record, static ProcRecord image_get_tattoo_state_proc = { + TRUE, "gimp-image-get-tattoo-state", "gimp-image-get-tattoo-state", "Returns the tattoo state associated with the image.", @@ -4928,6 +4996,7 @@ image_set_tattoo_state_invoker (ProcRecord *proc_record, static ProcRecord image_set_tattoo_state_proc = { + TRUE, "gimp-image-set-tattoo-state", "gimp-image-set-tattoo-state", "Set the tattoo state associated with the image.", @@ -4972,6 +5041,7 @@ image_get_layer_by_tattoo_invoker (ProcRecord *proc_record, static ProcRecord image_get_layer_by_tattoo_proc = { + TRUE, "gimp-image-get-layer-by-tattoo", "gimp-image-get-layer-by-tattoo", "Find a layer with a given tattoo in an image.", @@ -5016,6 +5086,7 @@ image_get_channel_by_tattoo_invoker (ProcRecord *proc_record, static ProcRecord image_get_channel_by_tattoo_proc = { + TRUE, "gimp-image-get-channel-by-tattoo", "gimp-image-get-channel-by-tattoo", "Find a channel with a given tattoo in an image.", @@ -5060,6 +5131,7 @@ image_get_vectors_by_tattoo_invoker (ProcRecord *proc_record, static ProcRecord image_get_vectors_by_tattoo_proc = { + TRUE, "gimp-image-get-vectors-by-tattoo", "gimp-image-get-vectors-by-tattoo", "Find a vectors with a given tattoo in an image.", diff --git a/app/pdb/layer_cmds.c b/app/pdb/layer_cmds.c index b7f317f487..81cadfa67c 100644 --- a/app/pdb/layer_cmds.c +++ b/app/pdb/layer_cmds.c @@ -796,6 +796,7 @@ layer_new_invoker (ProcRecord *proc_record, static ProcRecord layer_new_proc = { + TRUE, "gimp-layer-new", "gimp-layer-new", "Create a new layer.", @@ -856,6 +857,7 @@ layer_new_from_drawable_invoker (ProcRecord *proc_record, static ProcRecord layer_new_from_drawable_proc = { + TRUE, "gimp-layer-new-from-drawable", "gimp-layer-new-from-drawable", "Create a new layer by copying an existing drawable.", @@ -904,6 +906,7 @@ layer_copy_invoker (ProcRecord *proc_record, static ProcRecord layer_copy_proc = { + TRUE, "gimp-layer-copy", "gimp-layer-copy", "Copy a layer.", @@ -939,6 +942,7 @@ layer_add_alpha_invoker (ProcRecord *proc_record, static ProcRecord layer_add_alpha_proc = { + TRUE, "gimp-layer-add-alpha", "gimp-layer-add-alpha", "Add an alpha channel to the layer if it doesn't already have one.", @@ -985,6 +989,7 @@ layer_scale_invoker (ProcRecord *proc_record, static ProcRecord layer_scale_proc = { + TRUE, "gimp-layer-scale", "gimp-layer-scale", "Scale the layer to the specified extents.", @@ -1032,6 +1037,7 @@ layer_resize_invoker (ProcRecord *proc_record, static ProcRecord layer_resize_proc = { + TRUE, "gimp-layer-resize", "gimp-layer-resize", "Resize the layer to the specified extents.", @@ -1070,6 +1076,7 @@ layer_resize_to_image_size_invoker (ProcRecord *proc_record, static ProcRecord layer_resize_to_image_size_proc = { + TRUE, "gimp-layer-resize-to-image-size", "gimp-layer-resize-to-image-size", "Resize a layer to the image size.", @@ -1119,6 +1126,7 @@ layer_translate_invoker (ProcRecord *proc_record, static ProcRecord layer_translate_proc = { + TRUE, "gimp-layer-translate", "gimp-layer-translate", "Translate the layer by the specified offsets.", @@ -1171,6 +1179,7 @@ layer_set_offsets_invoker (ProcRecord *proc_record, static ProcRecord layer_set_offsets_proc = { + TRUE, "gimp-layer-set-offsets", "gimp-layer-set-offsets", "Set the layer offsets.", @@ -1218,6 +1227,7 @@ layer_create_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_create_mask_proc = { + TRUE, "gimp-layer-create-mask", "gimp-layer-create-mask", "Create a layer mask for the specified specified layer.", @@ -1260,6 +1270,7 @@ layer_get_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_get_mask_proc = { + TRUE, "gimp-layer-get-mask", "gimp-layer-get-mask", "Get the specified layer's mask if it exists.", @@ -1302,6 +1313,7 @@ layer_from_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_from_mask_proc = { + TRUE, "gimp-layer-from-mask", "gimp-layer-from-mask", "Get the specified mask's layer.", @@ -1342,6 +1354,7 @@ layer_add_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_add_mask_proc = { + TRUE, "gimp-layer-add-mask", "gimp-layer-add-mask", "Add a layer mask to the specified layer.", @@ -1382,6 +1395,7 @@ layer_remove_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_remove_mask_proc = { + TRUE, "gimp-layer-remove-mask", "gimp-layer-remove-mask", "Remove the specified layer mask from the layer.", @@ -1424,6 +1438,7 @@ layer_is_floating_sel_invoker (ProcRecord *proc_record, static ProcRecord layer_is_floating_sel_proc = { + TRUE, "gimp-layer-is-floating-sel", "gimp-layer-is-floating-sel", "Is the specified layer a floating selection?", @@ -1466,6 +1481,7 @@ layer_get_lock_alpha_invoker (ProcRecord *proc_record, static ProcRecord layer_get_lock_alpha_proc = { + TRUE, "gimp-layer-get-lock-alpha", "gimp-layer-get-lock-alpha", "Get the lock alpha channel setting of the specified layer.", @@ -1503,6 +1519,7 @@ layer_set_lock_alpha_invoker (ProcRecord *proc_record, static ProcRecord layer_set_lock_alpha_proc = { + TRUE, "gimp-layer-set-lock-alpha", "gimp-layer-set-lock-alpha", "Set the lock alpha channel setting of the specified layer.", @@ -1548,6 +1565,7 @@ layer_get_apply_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_get_apply_mask_proc = { + TRUE, "gimp-layer-get-apply-mask", "gimp-layer-get-apply-mask", "Get the apply mask setting of the specified layer.", @@ -1588,6 +1606,7 @@ layer_set_apply_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_set_apply_mask_proc = { + TRUE, "gimp-layer-set-apply-mask", "gimp-layer-set-apply-mask", "Set the apply mask setting of the specified layer.", @@ -1633,6 +1652,7 @@ layer_get_show_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_get_show_mask_proc = { + TRUE, "gimp-layer-get-show-mask", "gimp-layer-get-show-mask", "Get the show mask setting of the specified layer.", @@ -1673,6 +1693,7 @@ layer_set_show_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_set_show_mask_proc = { + TRUE, "gimp-layer-set-show-mask", "gimp-layer-set-show-mask", "Set the show mask setting of the specified layer.", @@ -1718,6 +1739,7 @@ layer_get_edit_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_get_edit_mask_proc = { + TRUE, "gimp-layer-get-edit-mask", "gimp-layer-get-edit-mask", "Get the edit mask setting of the specified layer.", @@ -1758,6 +1780,7 @@ layer_set_edit_mask_invoker (ProcRecord *proc_record, static ProcRecord layer_set_edit_mask_proc = { + TRUE, "gimp-layer-set-edit-mask", "gimp-layer-set-edit-mask", "Set the edit mask setting of the specified layer.", @@ -1800,6 +1823,7 @@ layer_get_opacity_invoker (ProcRecord *proc_record, static ProcRecord layer_get_opacity_proc = { + TRUE, "gimp-layer-get-opacity", "gimp-layer-get-opacity", "Get the opacity of the specified layer.", @@ -1837,6 +1861,7 @@ layer_set_opacity_invoker (ProcRecord *proc_record, static ProcRecord layer_set_opacity_proc = { + TRUE, "gimp-layer-set-opacity", "gimp-layer-set-opacity", "Set the opacity of the specified layer.", @@ -1879,6 +1904,7 @@ layer_get_mode_invoker (ProcRecord *proc_record, static ProcRecord layer_get_mode_proc = { + TRUE, "gimp-layer-get-mode", "gimp-layer-get-mode", "Get the combination mode of the specified layer.", @@ -1916,6 +1942,7 @@ layer_set_mode_invoker (ProcRecord *proc_record, static ProcRecord layer_set_mode_proc = { + TRUE, "gimp-layer-set-mode", "gimp-layer-set-mode", "Set the combination mode of the specified layer.", diff --git a/app/pdb/message_cmds.c b/app/pdb/message_cmds.c index 1795d5fe0f..8b12de4179 100644 --- a/app/pdb/message_cmds.c +++ b/app/pdb/message_cmds.c @@ -112,6 +112,7 @@ message_invoker (ProcRecord *proc_record, static ProcRecord message_proc = { + TRUE, "gimp-message", "gimp-message", "Displays a dialog box with a message.", @@ -145,6 +146,7 @@ message_get_handler_invoker (ProcRecord *proc_record, static ProcRecord message_get_handler_proc = { + TRUE, "gimp-message-get-handler", "gimp-message-get-handler", "Returns the current state of where warning messages are displayed.", @@ -180,6 +182,7 @@ message_set_handler_invoker (ProcRecord *proc_record, static ProcRecord message_set_handler_proc = { + TRUE, "gimp-message-set-handler", "gimp-message-set-handler", "Controls where warning messages are displayed.", diff --git a/app/pdb/misc_cmds.c b/app/pdb/misc_cmds.c index 46196cb086..cd9c4e1e8f 100644 --- a/app/pdb/misc_cmds.c +++ b/app/pdb/misc_cmds.c @@ -115,6 +115,7 @@ version_invoker (ProcRecord *proc_record, static ProcRecord version_proc = { + TRUE, "gimp-version", "gimp-version", "Returns the host gimp version.", @@ -148,6 +149,7 @@ getpid_invoker (ProcRecord *proc_record, static ProcRecord getpid_proc = { + TRUE, "gimp-getpid", "gimp-getpid", "Returns the PID of the host gimp process.", @@ -183,6 +185,7 @@ quit_invoker (ProcRecord *proc_record, static ProcRecord quit_proc = { + TRUE, "gimp-quit", "gimp-quit", "Causes the gimp to exit gracefully.", diff --git a/app/pdb/paint_tools_cmds.c b/app/pdb/paint_tools_cmds.c index 75169c2ec3..47c74eacd1 100644 --- a/app/pdb/paint_tools_cmds.c +++ b/app/pdb/paint_tools_cmds.c @@ -682,6 +682,7 @@ airbrush_invoker (ProcRecord *proc_record, static ProcRecord airbrush_proc = { + TRUE, "gimp-airbrush", "gimp-airbrush", "Paint in the current brush with varying pressure. Paint application is time-dependent.", @@ -732,6 +733,7 @@ airbrush_default_invoker (ProcRecord *proc_record, static ProcRecord airbrush_default_proc = { + TRUE, "gimp-airbrush-default", "gimp-airbrush-default", "Paint in the current brush with varying pressure. Paint application is time-dependent.", @@ -798,6 +800,7 @@ clone_invoker (ProcRecord *proc_record, static ProcRecord clone_proc = { + TRUE, "gimp-clone", "gimp-clone", "Clone from the source to the dest drawable using the current brush", @@ -848,6 +851,7 @@ clone_default_invoker (ProcRecord *proc_record, static ProcRecord clone_default_proc = { + TRUE, "gimp-clone-default", "gimp-clone-default", "Clone from the source to the dest drawable using the current brush", @@ -907,6 +911,7 @@ convolve_invoker (ProcRecord *proc_record, static ProcRecord convolve_proc = { + TRUE, "gimp-convolve", "gimp-convolve", "Convolve (Blur, Sharpen) using the current brush.", @@ -957,6 +962,7 @@ convolve_default_invoker (ProcRecord *proc_record, static ProcRecord convolve_default_proc = { + TRUE, "gimp-convolve-default", "gimp-convolve-default", "Convolve (Blur, Sharpen) using the current brush.", @@ -1019,6 +1025,7 @@ dodgeburn_invoker (ProcRecord *proc_record, static ProcRecord dodgeburn_proc = { + TRUE, "gimp-dodgeburn", "gimp-dodgeburn", "Dodgeburn image with varying exposure.", @@ -1069,6 +1076,7 @@ dodgeburn_default_invoker (ProcRecord *proc_record, static ProcRecord dodgeburn_default_proc = { + TRUE, "gimp-dodgeburn-default", "gimp-dodgeburn-default", "Dodgeburn image with varying exposure. This is the same as the gimp_dodgeburn function except that the exposure, type and mode are taken from the tools option dialog. If the dialog has not been activated then the defaults as used by the dialog will be used.", @@ -1128,6 +1136,7 @@ eraser_invoker (ProcRecord *proc_record, static ProcRecord eraser_proc = { + TRUE, "gimp-eraser", "gimp-eraser", "Erase using the current brush.", @@ -1178,6 +1187,7 @@ eraser_default_invoker (ProcRecord *proc_record, static ProcRecord eraser_default_proc = { + TRUE, "gimp-eraser-default", "gimp-eraser-default", "Erase using the current brush.", @@ -1242,6 +1252,7 @@ paintbrush_invoker (ProcRecord *proc_record, static ProcRecord paintbrush_proc = { + TRUE, "gimp-paintbrush", "gimp-paintbrush", "Paint in the current brush with optional fade out parameter and pull colors from a gradient.", @@ -1292,6 +1303,7 @@ paintbrush_default_invoker (ProcRecord *proc_record, static ProcRecord paintbrush_default_proc = { + TRUE, "gimp-paintbrush-default", "gimp-paintbrush-default", "Paint in the current brush. The fade out parameter and pull colors from a gradient parameter are set from the paintbrush options dialog. If this dialog has not been activated then the dialog defaults will be used.", @@ -1342,6 +1354,7 @@ pencil_invoker (ProcRecord *proc_record, static ProcRecord pencil_proc = { + TRUE, "gimp-pencil", "gimp-pencil", "Paint in the current brush without sub-pixel sampling.", @@ -1398,6 +1411,7 @@ smudge_invoker (ProcRecord *proc_record, static ProcRecord smudge_proc = { + TRUE, "gimp-smudge", "gimp-smudge", "Smudge image with varying pressure.", @@ -1448,6 +1462,7 @@ smudge_default_invoker (ProcRecord *proc_record, static ProcRecord smudge_default_proc = { + TRUE, "gimp-smudge-default", "gimp-smudge-default", "Smudge image with varying pressure.", diff --git a/app/pdb/palette_cmds.c b/app/pdb/palette_cmds.c index 72f730de09..ce7003356b 100644 --- a/app/pdb/palette_cmds.c +++ b/app/pdb/palette_cmds.c @@ -441,6 +441,7 @@ palette_new_invoker (ProcRecord *proc_record, static ProcRecord palette_new_proc = { + TRUE, "gimp-palette-new", "gimp-palette-new", "Creates a new palette", @@ -498,6 +499,7 @@ palette_duplicate_invoker (ProcRecord *proc_record, static ProcRecord palette_duplicate_proc = { + TRUE, "gimp-palette-duplicate", "gimp-palette-duplicate", "Duplicates a palette", @@ -551,6 +553,7 @@ palette_rename_invoker (ProcRecord *proc_record, static ProcRecord palette_rename_proc = { + TRUE, "gimp-palette-rename", "gimp-palette-rename", "Rename a palette", @@ -604,6 +607,7 @@ palette_delete_invoker (ProcRecord *proc_record, static ProcRecord palette_delete_proc = { + TRUE, "gimp-palette-delete", "gimp-palette-delete", "Deletes a palette", @@ -652,6 +656,7 @@ palette_is_editable_invoker (ProcRecord *proc_record, static ProcRecord palette_is_editable_proc = { + TRUE, "gimp-palette-is-editable", "gimp-palette-is-editable", "Tests if palette can be edited", @@ -700,6 +705,7 @@ palette_get_info_invoker (ProcRecord *proc_record, static ProcRecord palette_get_info_proc = { + TRUE, "gimp-palette-get-info", "gimp-palette-get-info", "Retrieve information about the specified palette.", @@ -748,6 +754,7 @@ palette_get_columns_invoker (ProcRecord *proc_record, static ProcRecord palette_get_columns_proc = { + TRUE, "gimp-palette-get-columns", "gimp-palette-get-columns", "Retrieves the number of columns to use to display this palette", @@ -791,6 +798,7 @@ palette_set_columns_invoker (ProcRecord *proc_record, static ProcRecord palette_set_columns_proc = { + TRUE, "gimp-palette-set-columns", "gimp-palette-set-columns", "Sets the number of columns to use when displaying the palette", @@ -848,6 +856,7 @@ palette_add_entry_invoker (ProcRecord *proc_record, static ProcRecord palette_add_entry_proc = { + TRUE, "gimp-palette-add-entry", "gimp-palette-add-entry", "Adds a palette entry to the specified palette.", @@ -900,6 +909,7 @@ palette_delete_entry_invoker (ProcRecord *proc_record, static ProcRecord palette_delete_entry_proc = { + TRUE, "gimp-palette-delete-entry", "gimp-palette-delete-entry", "Deletes a palette entry from the specified palette.", @@ -959,6 +969,7 @@ palette_entry_get_color_invoker (ProcRecord *proc_record, static ProcRecord palette_entry_get_color_proc = { + TRUE, "gimp-palette-entry-get-color", "gimp-palette-entry-get-color", "Gets the specified palette entry from the specified palette.", @@ -1015,6 +1026,7 @@ palette_entry_set_color_invoker (ProcRecord *proc_record, static ProcRecord palette_entry_set_color_proc = { + TRUE, "gimp-palette-entry-set-color", "gimp-palette-entry-set-color", "Sets the specified palette entry in the specified palette.", @@ -1074,6 +1086,7 @@ palette_entry_get_name_invoker (ProcRecord *proc_record, static ProcRecord palette_entry_get_name_proc = { + TRUE, "gimp-palette-entry-get-name", "gimp-palette-entry-get-name", "Gets the specified palette entry from the specified palette.", @@ -1131,6 +1144,7 @@ palette_entry_set_name_invoker (ProcRecord *proc_record, static ProcRecord palette_entry_set_name_proc = { + TRUE, "gimp-palette-entry-set-name", "gimp-palette-entry-set-name", "Sets the specified palette entry in the specified palette.", diff --git a/app/pdb/palette_select_cmds.c b/app/pdb/palette_select_cmds.c index 841906a1f7..1808dae4f6 100644 --- a/app/pdb/palette_select_cmds.c +++ b/app/pdb/palette_select_cmds.c @@ -139,6 +139,7 @@ palettes_popup_invoker (ProcRecord *proc_record, static ProcRecord palettes_popup_proc = { + TRUE, "gimp-palettes-popup", "gimp-palettes-popup", "Invokes the Gimp palette selection.", @@ -178,6 +179,7 @@ palettes_close_popup_invoker (ProcRecord *proc_record, static ProcRecord palettes_close_popup_proc = { + TRUE, "gimp-palettes-close-popup", "gimp-palettes-close-popup", "Popdown the Gimp palette selection.", @@ -220,6 +222,7 @@ palettes_set_popup_invoker (ProcRecord *proc_record, static ProcRecord palettes_set_popup_proc = { + TRUE, "gimp-palettes-set-popup", "gimp-palettes-set-popup", "Sets the current palette selection in a popup.", diff --git a/app/pdb/palettes_cmds.c b/app/pdb/palettes_cmds.c index eda0fc7dfc..a4f095a026 100644 --- a/app/pdb/palettes_cmds.c +++ b/app/pdb/palettes_cmds.c @@ -160,6 +160,7 @@ palettes_refresh_invoker (ProcRecord *proc_record, static ProcRecord palettes_refresh_proc = { + TRUE, "gimp-palettes-refresh", "gimp-palettes-refresh", "Refreshes current palettes. This function always succeeds.", @@ -207,6 +208,7 @@ palettes_get_list_invoker (ProcRecord *proc_record, static ProcRecord palettes_get_list_proc = { + TRUE, "gimp-palettes-get-list", "gimp-palettes-get-list", "Retrieves a list of all of the available palettes", @@ -255,6 +257,7 @@ palettes_get_palette_invoker (ProcRecord *proc_record, static ProcRecord palettes_get_palette_proc = { + TRUE, "gimp-palettes-get-palette", "gimp-palettes-get-palette", "This procedure is deprecated! Use 'gimp-context-get-palette' instead.", @@ -332,6 +335,7 @@ palettes_get_palette_entry_invoker (ProcRecord *proc_record, static ProcRecord palettes_get_palette_entry_proc = { + TRUE, "gimp-palettes-get-palette-entry", "gimp-palettes-get-palette-entry", "This procedure is deprecated! Use 'gimp-palette-entry-get-color' instead.", diff --git a/app/pdb/parasite_cmds.c b/app/pdb/parasite_cmds.c index fd51895974..cff1a0c358 100644 --- a/app/pdb/parasite_cmds.c +++ b/app/pdb/parasite_cmds.c @@ -443,6 +443,7 @@ parasite_find_invoker (ProcRecord *proc_record, static ProcRecord parasite_find_proc = { + TRUE, "gimp-parasite-find", "gimp-parasite-find", "Finds the named parasite.", @@ -478,6 +479,7 @@ parasite_attach_invoker (ProcRecord *proc_record, static ProcRecord parasite_attach_proc = { + TRUE, "gimp-parasite-attach", "gimp-parasite-attach", "Add a parasite to the gimp.", @@ -513,6 +515,7 @@ parasite_detach_invoker (ProcRecord *proc_record, static ProcRecord parasite_detach_proc = { + TRUE, "gimp-parasite-detach", "gimp-parasite-detach", "Removes a parasite from the gimp.", @@ -549,6 +552,7 @@ parasite_list_invoker (ProcRecord *proc_record, static ProcRecord parasite_list_proc = { + TRUE, "gimp-parasite-list", "gimp-parasite-list", "List all parasites.", @@ -596,6 +600,7 @@ image_parasite_find_invoker (ProcRecord *proc_record, static ProcRecord image_parasite_find_proc = { + TRUE, "gimp-image-parasite-find", "gimp-image-parasite-find", "Finds the named parasite in an image", @@ -633,6 +638,7 @@ image_parasite_attach_invoker (ProcRecord *proc_record, static ProcRecord image_parasite_attach_proc = { + TRUE, "gimp-image-parasite-attach", "gimp-image-parasite-attach", "Add a parasite to an image.", @@ -670,6 +676,7 @@ image_parasite_detach_invoker (ProcRecord *proc_record, static ProcRecord image_parasite_detach_proc = { + TRUE, "gimp-image-parasite-detach", "gimp-image-parasite-detach", "Removes a parasite from an image.", @@ -716,6 +723,7 @@ image_parasite_list_invoker (ProcRecord *proc_record, static ProcRecord image_parasite_list_proc = { + TRUE, "gimp-image-parasite-list", "gimp-image-parasite-list", "List all parasites.", @@ -764,6 +772,7 @@ drawable_parasite_find_invoker (ProcRecord *proc_record, static ProcRecord drawable_parasite_find_proc = { + TRUE, "gimp-drawable-parasite-find", "gimp-drawable-parasite-find", "Finds the named parasite in a drawable", @@ -801,6 +810,7 @@ drawable_parasite_attach_invoker (ProcRecord *proc_record, static ProcRecord drawable_parasite_attach_proc = { + TRUE, "gimp-drawable-parasite-attach", "gimp-drawable-parasite-attach", "Add a parasite to a drawable.", @@ -838,6 +848,7 @@ drawable_parasite_detach_invoker (ProcRecord *proc_record, static ProcRecord drawable_parasite_detach_proc = { + TRUE, "gimp-drawable-parasite-detach", "gimp-drawable-parasite-detach", "Removes a parasite from a drawable.", @@ -884,6 +895,7 @@ drawable_parasite_list_invoker (ProcRecord *proc_record, static ProcRecord drawable_parasite_list_proc = { + TRUE, "gimp-drawable-parasite-list", "gimp-drawable-parasite-list", "List all parasites.", @@ -932,6 +944,7 @@ vectors_parasite_find_invoker (ProcRecord *proc_record, static ProcRecord vectors_parasite_find_proc = { + TRUE, "gimp-vectors-parasite-find", "gimp-vectors-parasite-find", "Finds the named parasite in a vectors object", @@ -969,6 +982,7 @@ vectors_parasite_attach_invoker (ProcRecord *proc_record, static ProcRecord vectors_parasite_attach_proc = { + TRUE, "gimp-vectors-parasite-attach", "gimp-vectors-parasite-attach", "Add a parasite to a vectors object", @@ -1006,6 +1020,7 @@ vectors_parasite_detach_invoker (ProcRecord *proc_record, static ProcRecord vectors_parasite_detach_proc = { + TRUE, "gimp-vectors-parasite-detach", "gimp-vectors-parasite-detach", "Removes a parasite from a vectors object", @@ -1052,6 +1067,7 @@ vectors_parasite_list_invoker (ProcRecord *proc_record, static ProcRecord vectors_parasite_list_proc = { + TRUE, "gimp-vectors-parasite-list", "gimp-vectors-parasite-list", "List all parasites.", diff --git a/app/pdb/paths_cmds.c b/app/pdb/paths_cmds.c index a971cdc080..da876c4151 100644 --- a/app/pdb/paths_cmds.c +++ b/app/pdb/paths_cmds.c @@ -604,6 +604,7 @@ path_list_invoker (ProcRecord *proc_record, static ProcRecord path_list_proc = { + TRUE, "gimp-path-list", "gimp-path-list", "This procedure is deprecated! Use 'gimp-image-get-vectors' instead.", @@ -651,6 +652,7 @@ path_get_current_invoker (ProcRecord *proc_record, static ProcRecord path_get_current_proc = { + TRUE, "gimp-path-get-current", "gimp-path-get-current", "This procedure is deprecated! Use 'gimp-image-get-active-vectors' instead.", @@ -693,6 +695,7 @@ path_set_current_invoker (ProcRecord *proc_record, static ProcRecord path_set_current_proc = { + TRUE, "gimp-path-set-current", "gimp-path-set-current", "This procedure is deprecated! Use 'gimp-image-set-active-vectors' instead.", @@ -735,6 +738,7 @@ path_delete_invoker (ProcRecord *proc_record, static ProcRecord path_delete_proc = { + TRUE, "gimp-path-delete", "gimp-path-delete", "This procedure is deprecated! Use 'gimp-image-remove-vectors' instead.", @@ -823,6 +827,7 @@ path_get_points_invoker (ProcRecord *proc_record, static ProcRecord path_get_points_proc = { + TRUE, "gimp-path-get-points", "gimp-path-get-points", "List the points associated with the named path.", @@ -903,6 +908,7 @@ path_set_points_invoker (ProcRecord *proc_record, static ProcRecord path_set_points_proc = { + TRUE, "gimp-path-set-points", "gimp-path-set-points", "Set the points associated with the named path.", @@ -953,6 +959,7 @@ path_stroke_current_invoker (ProcRecord *proc_record, static ProcRecord path_stroke_current_proc = { + TRUE, "gimp-path-stroke-current", "gimp-path-stroke-current", "Stroke the current path in the passed image.", @@ -1051,6 +1058,7 @@ path_get_point_at_dist_invoker (ProcRecord *proc_record, static ProcRecord path_get_point_at_dist_proc = { + TRUE, "gimp-path-get-point-at-dist", "gimp-path-get-point-at-dist", "This procedure is deprecated! Use 'gimp-vectors-stroke-get-point-at-dist' instead.", @@ -1100,6 +1108,7 @@ path_get_tattoo_invoker (ProcRecord *proc_record, static ProcRecord path_get_tattoo_proc = { + TRUE, "gimp-path-get-tattoo", "gimp-path-get-tattoo", "This procedure is deprecated! Use 'gimp-vectors-get-tattoo' instead.", @@ -1144,6 +1153,7 @@ path_set_tattoo_invoker (ProcRecord *proc_record, static ProcRecord path_set_tattoo_proc = { + TRUE, "gimp-path-set-tattoo", "gimp-path-set-tattoo", "This procedure is deprecated! Use 'gimp-vectors-set-tattoo' instead.", @@ -1193,6 +1203,7 @@ get_path_by_tattoo_invoker (ProcRecord *proc_record, static ProcRecord get_path_by_tattoo_proc = { + TRUE, "gimp-get-path-by-tattoo", "gimp-get-path-by-tattoo", "This procedure is deprecated! Use 'gimp-image-get-vectors-by-tattoo' instead.", @@ -1242,6 +1253,7 @@ path_get_locked_invoker (ProcRecord *proc_record, static ProcRecord path_get_locked_proc = { + TRUE, "gimp-path-get-locked", "gimp-path-get-locked", "This procedure is deprecated! Use 'gimp-vectors-get-linked' instead.", @@ -1286,6 +1298,7 @@ path_set_locked_invoker (ProcRecord *proc_record, static ProcRecord path_set_locked_proc = { + TRUE, "gimp-path-set-locked", "gimp-path-set-locked", "This procedure is deprecated! Use 'gimp-vectors-set-linked' instead.", @@ -1345,6 +1358,7 @@ path_to_selection_invoker (ProcRecord *proc_record, static ProcRecord path_to_selection_proc = { + TRUE, "gimp-path-to-selection", "gimp-path-to-selection", "Transforms the active path into a selection", @@ -1386,6 +1400,7 @@ path_import_invoker (ProcRecord *proc_record, static ProcRecord path_import_proc = { + TRUE, "gimp-path-import", "gimp-path-import", "Import paths from an SVG file.", @@ -1430,6 +1445,7 @@ path_import_string_invoker (ProcRecord *proc_record, static ProcRecord path_import_string_proc = { + TRUE, "gimp-path-import-string", "gimp-path-import-string", "Import paths from an SVG string.", diff --git a/app/pdb/pattern_cmds.c b/app/pdb/pattern_cmds.c index 335220fb96..bbab5d1321 100644 --- a/app/pdb/pattern_cmds.c +++ b/app/pdb/pattern_cmds.c @@ -174,6 +174,7 @@ pattern_get_info_invoker (ProcRecord *proc_record, static ProcRecord pattern_get_info_proc = { + TRUE, "gimp-pattern-get-info", "gimp-pattern-get-info", "Retrieve information about the specified pattern.", @@ -240,6 +241,7 @@ pattern_get_pixels_invoker (ProcRecord *proc_record, static ProcRecord pattern_get_pixels_proc = { + TRUE, "gimp-pattern-get-pixels", "gimp-pattern-get-pixels", "Retrieve information about the specified pattern (including pixels).", diff --git a/app/pdb/pattern_select_cmds.c b/app/pdb/pattern_select_cmds.c index 33e532d460..3501a20f9a 100644 --- a/app/pdb/pattern_select_cmds.c +++ b/app/pdb/pattern_select_cmds.c @@ -139,6 +139,7 @@ patterns_popup_invoker (ProcRecord *proc_record, static ProcRecord patterns_popup_proc = { + TRUE, "gimp-patterns-popup", "gimp-patterns-popup", "Invokes the Gimp pattern selection.", @@ -178,6 +179,7 @@ patterns_close_popup_invoker (ProcRecord *proc_record, static ProcRecord patterns_close_popup_proc = { + TRUE, "gimp-patterns-close-popup", "gimp-patterns-close-popup", "Popdown the Gimp pattern selection.", @@ -220,6 +222,7 @@ patterns_set_popup_invoker (ProcRecord *proc_record, static ProcRecord patterns_set_popup_proc = { + TRUE, "gimp-patterns-set-popup", "gimp-patterns-set-popup", "Sets the current pattern selection in a popup.", diff --git a/app/pdb/patterns_cmds.c b/app/pdb/patterns_cmds.c index d4cdc87821..9e6d31f7a8 100644 --- a/app/pdb/patterns_cmds.c +++ b/app/pdb/patterns_cmds.c @@ -179,6 +179,7 @@ patterns_refresh_invoker (ProcRecord *proc_record, static ProcRecord patterns_refresh_proc = { + TRUE, "gimp-patterns-refresh", "gimp-patterns-refresh", "Refresh current patterns. This function always succeeds.", @@ -226,6 +227,7 @@ patterns_get_list_invoker (ProcRecord *proc_record, static ProcRecord patterns_get_list_proc = { + TRUE, "gimp-patterns-get-list", "gimp-patterns-get-list", "Retrieve a complete listing of the available patterns.", @@ -277,6 +279,7 @@ patterns_get_pattern_invoker (ProcRecord *proc_record, static ProcRecord patterns_get_pattern_proc = { + TRUE, "gimp-patterns-get-pattern", "gimp-patterns-get-pattern", "This procedure is deprecated! Use 'gimp-context-get-pattern' instead.", @@ -355,6 +358,7 @@ patterns_get_pattern_data_invoker (ProcRecord *proc_record, static ProcRecord patterns_get_pattern_data_proc = { + TRUE, "gimp-patterns-get-pattern-data", "gimp-patterns-get-pattern-data", "This procedure is deprecated! Use 'gimp-pattern-get-pixels' instead.", diff --git a/app/pdb/plug_in_cmds.c b/app/pdb/plug_in_cmds.c index bedfb5780c..2118576ec3 100644 --- a/app/pdb/plug_in_cmds.c +++ b/app/pdb/plug_in_cmds.c @@ -317,6 +317,7 @@ plugins_query_invoker (ProcRecord *proc_record, static ProcRecord plugins_query_proc = { + TRUE, "gimp-plugins-query", "gimp-plugins-query", "Queries the plugin database for its contents.", @@ -362,6 +363,7 @@ plugin_domain_register_invoker (ProcRecord *proc_record, static ProcRecord plugin_domain_register_proc = { + TRUE, "gimp-plugin-domain-register", "gimp-plugin-domain-register", "Registers a textdomain for localisation.", @@ -407,6 +409,7 @@ plugin_help_register_invoker (ProcRecord *proc_record, static ProcRecord plugin_help_register_proc = { + TRUE, "gimp-plugin-help-register", "gimp-plugin-help-register", "Register a help path for a plug-in.", @@ -455,6 +458,7 @@ plugin_menu_register_invoker (ProcRecord *proc_record, static ProcRecord plugin_menu_register_proc = { + TRUE, "gimp-plugin-menu-register", "gimp-plugin-menu-register", "Register an additional menu path for a plug-in procedure.", @@ -506,6 +510,7 @@ plugin_menu_branch_register_invoker (ProcRecord *proc_record, static ProcRecord plugin_menu_branch_register_proc = { + TRUE, "gimp-plugin-menu-branch-register", "gimp-plugin-menu-branch-register", "Register a sub-menu.", @@ -566,6 +571,7 @@ plugin_icon_register_invoker (ProcRecord *proc_record, static ProcRecord plugin_icon_register_proc = { + TRUE, "gimp-plugin-icon-register", "gimp-plugin-icon-register", "Register an icon for a plug-in procedure.", diff --git a/app/pdb/procedural_db.c b/app/pdb/procedural_db.c index 0cef18f765..3ce9184b85 100644 --- a/app/pdb/procedural_db.c +++ b/app/pdb/procedural_db.c @@ -70,16 +70,11 @@ procedural_db_free_entry (gpointer key, for (list = value; list; list = g_list_next (list)) { ProcRecord *procedure = list->data; - gint i; - for (i = 0; i < procedure->num_args; i++) - g_param_spec_unref (procedure->args[i].pspec); - - for (i = 0; i < procedure->num_values; i++) - g_param_spec_unref (procedure->values[i].pspec); - - g_free (procedure->args); - g_free (procedure->values); + if (procedure->static_proc) + gimp_procedure_dispose (procedure); + else + gimp_procedure_free (procedure); } g_list_free (value); diff --git a/app/pdb/procedural_db.h b/app/pdb/procedural_db.h index 9927ae4efe..d4a6273a97 100644 --- a/app/pdb/procedural_db.h +++ b/app/pdb/procedural_db.h @@ -33,83 +33,6 @@ struct _ProcArg }; -#if 0 -/* Argument marshalling procedures */ -typedef Argument * (* ArgMarshal) (ProcRecord *procedure, - Gimp *gimp, - GimpContext *context, - GimpProgress *progress, - Argument *args); - - -/* Execution types */ -typedef struct _IntExec IntExec; -typedef struct _PlugInExec PlugInExec; -typedef struct _ExtExec ExtExec; -typedef struct _TempExec TempExec; - - -struct _IntExec -{ - ArgMarshal marshal_func; /* Function called to marshal arguments */ -}; - -struct _PlugInExec -{ - gchar *filename; /* Where is the executable on disk? */ -}; - -struct _ExtExec -{ - gchar *filename; /* Where is the executable on disk? */ -}; - -struct _TempExec -{ - void *plug_in; /* Plug-in that registered this temp proc */ -}; - - -/* Structure for a procedure */ - -struct _ProcRecord -{ - /* Procedure information */ - gchar *name; /* Procedure name */ - gchar *original_name; /* Procedure name before canonicalization */ - gchar *blurb; /* Short procedure description */ - gchar *help; /* Detailed help instructions */ - gchar *author; /* Author field */ - gchar *copyright; /* Copyright field */ - gchar *date; /* Date field */ - - gchar *deprecated; /* Replacement if the procedure is deprecated */ - - /* Procedure type */ - GimpPDBProcType proc_type; /* Type of procedure--Internal, Plug-In, Extension */ - - /* Input arguments */ - gint32 num_args; /* Number of procedure arguments */ - ProcArg *args; /* Array of procedure arguments */ - - /* Output values */ - gint32 num_values; /* Number of return values */ - ProcArg *values; /* Array of return values */ - - /* Method of procedure execution */ - union _ExecMethod - { - IntExec internal; /* Execution information for internal procs */ - PlugInExec plug_in; /* ..................... for plug-ins */ - ExtExec extension; /* ..................... for extensions */ - TempExec temporary; /* ..................... for temp procs */ - } exec_method; -}; -#endif - - -/* Functions */ - void procedural_db_init (Gimp *gimp); void procedural_db_free (Gimp *gimp); diff --git a/app/pdb/procedural_db_cmds.c b/app/pdb/procedural_db_cmds.c index 701b979917..b1937e1c9c 100644 --- a/app/pdb/procedural_db_cmds.c +++ b/app/pdb/procedural_db_cmds.c @@ -421,6 +421,7 @@ procedural_db_temp_name_invoker (ProcRecord *proc_record, static ProcRecord procedural_db_temp_name_proc = { + TRUE, "gimp-procedural-db-temp-name", "gimp-procedural-db-temp-name", "Generates a unique temporary PDB name.", @@ -456,6 +457,7 @@ procedural_db_dump_invoker (ProcRecord *proc_record, static ProcRecord procedural_db_dump_proc = { + TRUE, "gimp-procedural-db-dump", "gimp-procedural-db-dump", "Dumps the current contents of the procedural database", @@ -517,6 +519,7 @@ procedural_db_query_invoker (ProcRecord *proc_record, static ProcRecord procedural_db_query_proc = { + TRUE, "gimp-procedural-db-query", "gimp-procedural-db-query", "Queries the procedural database for its contents using regular expression matching.", @@ -586,6 +589,7 @@ procedural_db_proc_info_invoker (ProcRecord *proc_record, static ProcRecord procedural_db_proc_info_proc = { + TRUE, "gimp-procedural-db-proc-info", "gimp-procedural-db-proc-info", "Queries the procedural database for information on the specified procedure.", @@ -664,6 +668,7 @@ procedural_db_proc_arg_invoker (ProcRecord *proc_record, static ProcRecord procedural_db_proc_arg_proc = { + TRUE, "gimp-procedural-db-proc-arg", "gimp-procedural-db-proc-arg", "Queries the procedural database for information on the specified procedure's argument.", @@ -742,6 +747,7 @@ procedural_db_proc_val_invoker (ProcRecord *proc_record, static ProcRecord procedural_db_proc_val_proc = { + TRUE, "gimp-procedural-db-proc-val", "gimp-procedural-db-proc-val", "Queries the procedural database for information on the specified procedure's return value.", @@ -800,6 +806,7 @@ procedural_db_get_data_invoker (ProcRecord *proc_record, static ProcRecord procedural_db_get_data_proc = { + TRUE, "gimp-procedural-db-get-data", "gimp-procedural-db-get-data", "Returns data associated with the specified identifier.", @@ -853,6 +860,7 @@ procedural_db_get_data_size_invoker (ProcRecord *proc_record, static ProcRecord procedural_db_get_data_size_proc = { + TRUE, "gimp-procedural-db-get-data-size", "gimp-procedural-db-get-data-size", "Returns size of data associated with the specified identifier.", @@ -898,6 +906,7 @@ procedural_db_set_data_invoker (ProcRecord *proc_record, static ProcRecord procedural_db_set_data_proc = { + TRUE, "gimp-procedural-db-set-data", "gimp-procedural-db-set-data", "Associates the specified identifier with the supplied data.", diff --git a/app/pdb/progress_cmds.c b/app/pdb/progress_cmds.c index 21e14a24ed..e78c7ab2f9 100644 --- a/app/pdb/progress_cmds.c +++ b/app/pdb/progress_cmds.c @@ -187,6 +187,7 @@ progress_init_invoker (ProcRecord *proc_record, static ProcRecord progress_init_proc = { + TRUE, "gimp-progress-init", "gimp-progress-init", "Initializes the progress bar for the current plug-in.", @@ -228,6 +229,7 @@ progress_update_invoker (ProcRecord *proc_record, static ProcRecord progress_update_proc = { + TRUE, "gimp-progress-update", "gimp-progress-update", "Updates the progress bar for the current plug-in.", @@ -261,6 +263,7 @@ progress_pulse_invoker (ProcRecord *proc_record, static ProcRecord progress_pulse_proc = { + TRUE, "gimp-progress-pulse", "gimp-progress-pulse", "Pulses the progress bar for the current plug-in.", @@ -302,6 +305,7 @@ progress_set_text_invoker (ProcRecord *proc_record, static ProcRecord progress_set_text_proc = { + TRUE, "gimp-progress-set-text", "gimp-progress-set-text", "Changes the text in the progress bar for the current plug-in.", @@ -344,6 +348,7 @@ progress_get_window_handle_invoker (ProcRecord *proc_record, static ProcRecord progress_get_window_handle_proc = { + TRUE, "gimp-progress-get-window-handle", "gimp-progress-get-window-handle", "Returns the native window ID of the toplevel window this plug-in's progress is displayed in.", @@ -383,6 +388,7 @@ progress_install_invoker (ProcRecord *proc_record, static ProcRecord progress_install_proc = { + TRUE, "gimp-progress-install", "gimp-progress-install", "Installs a progress callback for the current plug-in.", @@ -422,6 +428,7 @@ progress_uninstall_invoker (ProcRecord *proc_record, static ProcRecord progress_uninstall_proc = { + TRUE, "gimp-progress-uninstall", "gimp-progress-uninstall", "Uninstalls the progress callback for the current plug-in.", @@ -461,6 +468,7 @@ progress_cancel_invoker (ProcRecord *proc_record, static ProcRecord progress_cancel_proc = { + TRUE, "gimp-progress-cancel", "gimp-progress-cancel", "Cancels a running progress.", diff --git a/app/pdb/selection_cmds.c b/app/pdb/selection_cmds.c index 31ddd0611b..0397fb66a2 100644 --- a/app/pdb/selection_cmds.c +++ b/app/pdb/selection_cmds.c @@ -470,6 +470,7 @@ selection_bounds_invoker (ProcRecord *proc_record, static ProcRecord selection_bounds_proc = { + TRUE, "gimp-selection-bounds", "gimp-selection-bounds", "Find the bounding box of the current selection.", @@ -516,6 +517,7 @@ selection_value_invoker (ProcRecord *proc_record, static ProcRecord selection_value_proc = { + TRUE, "gimp-selection-value", "gimp-selection-value", "Find the value of the selection at the specified coordinates.", @@ -558,6 +560,7 @@ selection_is_empty_invoker (ProcRecord *proc_record, static ProcRecord selection_is_empty_proc = { + TRUE, "gimp-selection-is-empty", "gimp-selection-is-empty", "Determine whether the selection is empty.", @@ -598,6 +601,7 @@ selection_translate_invoker (ProcRecord *proc_record, static ProcRecord selection_translate_proc = { + TRUE, "gimp-selection-translate", "gimp-selection-translate", "Translate the selection by the specified offsets.", @@ -654,6 +658,7 @@ selection_float_invoker (ProcRecord *proc_record, static ProcRecord selection_float_proc = { + TRUE, "gimp-selection-float", "gimp-selection-float", "Float the selection from the specified drawable with initial offsets as specified.", @@ -689,6 +694,7 @@ selection_invert_invoker (ProcRecord *proc_record, static ProcRecord selection_invert_proc = { + TRUE, "gimp-selection-invert", "gimp-selection-invert", "Invert the selection mask.", @@ -724,6 +730,7 @@ selection_sharpen_invoker (ProcRecord *proc_record, static ProcRecord selection_sharpen_proc = { + TRUE, "gimp-selection-sharpen", "gimp-selection-sharpen", "Sharpen the selection mask.", @@ -759,6 +766,7 @@ selection_all_invoker (ProcRecord *proc_record, static ProcRecord selection_all_proc = { + TRUE, "gimp-selection-all", "gimp-selection-all", "Select all of the image.", @@ -794,6 +802,7 @@ selection_none_invoker (ProcRecord *proc_record, static ProcRecord selection_none_proc = { + TRUE, "gimp-selection-none", "gimp-selection-none", "Deselect the entire image.", @@ -832,6 +841,7 @@ selection_feather_invoker (ProcRecord *proc_record, static ProcRecord selection_feather_proc = { + TRUE, "gimp-selection-feather", "gimp-selection-feather", "Feather the image's selection", @@ -870,6 +880,7 @@ selection_border_invoker (ProcRecord *proc_record, static ProcRecord selection_border_proc = { + TRUE, "gimp-selection-border", "gimp-selection-border", "Border the image's selection", @@ -908,6 +919,7 @@ selection_grow_invoker (ProcRecord *proc_record, static ProcRecord selection_grow_proc = { + TRUE, "gimp-selection-grow", "gimp-selection-grow", "Grow the image's selection", @@ -946,6 +958,7 @@ selection_shrink_invoker (ProcRecord *proc_record, static ProcRecord selection_shrink_proc = { + TRUE, "gimp-selection-shrink", "gimp-selection-shrink", "Shrink the image's selection", @@ -985,6 +998,7 @@ selection_layer_alpha_invoker (ProcRecord *proc_record, static ProcRecord selection_layer_alpha_proc = { + TRUE, "gimp-selection-layer-alpha", "gimp-selection-layer-alpha", "Transfer the specified layer's alpha channel to the selection mask.", @@ -1031,6 +1045,7 @@ selection_load_invoker (ProcRecord *proc_record, static ProcRecord selection_load_proc = { + TRUE, "gimp-selection-load", "gimp-selection-load", "Transfer the specified channel to the selection mask.", @@ -1076,6 +1091,7 @@ selection_save_invoker (ProcRecord *proc_record, static ProcRecord selection_save_proc = { + TRUE, "gimp-selection-save", "gimp-selection-save", "Copy the selection mask to a new channel.", @@ -1124,6 +1140,7 @@ selection_combine_invoker (ProcRecord *proc_record, static ProcRecord selection_combine_proc = { + TRUE, "gimp-selection-combine", "gimp-selection-combine", "Combines the specified channel with the selection mask.", diff --git a/app/pdb/selection_tools_cmds.c b/app/pdb/selection_tools_cmds.c index 9379c9d326..0f7e217095 100644 --- a/app/pdb/selection_tools_cmds.c +++ b/app/pdb/selection_tools_cmds.c @@ -418,6 +418,7 @@ by_color_select_invoker (ProcRecord *proc_record, static ProcRecord by_color_select_proc = { + TRUE, "gimp-by-color-select", "gimp-by-color-select", "Create a selection by selecting all pixels (in the specified drawable) with the same (or similar) color to that specified.", @@ -476,6 +477,7 @@ ellipse_select_invoker (ProcRecord *proc_record, static ProcRecord ellipse_select_proc = { + TRUE, "gimp-ellipse-select", "gimp-ellipse-select", "Create an elliptical selection over the specified image.", @@ -531,6 +533,7 @@ free_select_invoker (ProcRecord *proc_record, static ProcRecord free_select_proc = { + TRUE, "gimp-free-select", "gimp-free-select", "Create a polygonal selection over the specified image.", @@ -594,6 +597,7 @@ fuzzy_select_invoker (ProcRecord *proc_record, static ProcRecord fuzzy_select_proc = { + TRUE, "gimp-fuzzy-select", "gimp-fuzzy-select", "Create a fuzzy selection starting at the specified coordinates on the specified drawable.", @@ -650,6 +654,7 @@ rect_select_invoker (ProcRecord *proc_record, static ProcRecord rect_select_proc = { + TRUE, "gimp-rect-select", "gimp-rect-select", "Create a rectangular selection over the specified image;", diff --git a/app/pdb/text_tool_cmds.c b/app/pdb/text_tool_cmds.c index 39a35b903f..838c6f8b10 100644 --- a/app/pdb/text_tool_cmds.c +++ b/app/pdb/text_tool_cmds.c @@ -524,6 +524,7 @@ text_fontname_invoker (ProcRecord *proc_record, static ProcRecord text_fontname_proc = { + TRUE, "gimp-text-fontname", "gimp-text-fontname", "Add text at the specified location as a floating selection or a new layer.", @@ -586,6 +587,7 @@ text_get_extents_fontname_invoker (ProcRecord *proc_record, static ProcRecord text_get_extents_fontname_proc = { + TRUE, "gimp-text-get-extents-fontname", "gimp-text-get-extents-fontname", "Get extents of the bounding box for the specified text.", @@ -672,6 +674,7 @@ text_invoker (ProcRecord *proc_record, static ProcRecord text_proc = { + TRUE, "gimp-text", "gimp-text", "This procedure is deprecated! Use 'gimp-text-fontname' instead.", @@ -748,6 +751,7 @@ text_get_extents_invoker (ProcRecord *proc_record, static ProcRecord text_get_extents_proc = { + TRUE, "gimp-text-get-extents", "gimp-text-get-extents", "This procedure is deprecated! Use 'gimp-text-get-extents-fontname' instead.", diff --git a/app/pdb/transform_tools_cmds.c b/app/pdb/transform_tools_cmds.c index d806aa6ab0..8eb07b47bb 100644 --- a/app/pdb/transform_tools_cmds.c +++ b/app/pdb/transform_tools_cmds.c @@ -426,6 +426,7 @@ flip_invoker (ProcRecord *proc_record, static ProcRecord flip_proc = { + TRUE, "gimp-flip", "gimp-flip", "This procedure is deprecated! Use 'gimp-drawable-transform-flip-simple' instead.", @@ -519,6 +520,7 @@ perspective_invoker (ProcRecord *proc_record, static ProcRecord perspective_proc = { + TRUE, "gimp-perspective", "gimp-perspective", "This procedure is deprecated! Use 'gimp-drawable-transform-perspective-default' instead.", @@ -594,6 +596,7 @@ rotate_invoker (ProcRecord *proc_record, static ProcRecord rotate_proc = { + TRUE, "gimp-rotate", "gimp-rotate", "This procedure is deprecated! Use 'gimp-drawable-transform-rotate-default' instead.", @@ -679,6 +682,7 @@ scale_invoker (ProcRecord *proc_record, static ProcRecord scale_proc = { + TRUE, "gimp-scale", "gimp-scale", "This procedure is deprecated! Use 'gimp-drawable-transform-scale-default' instead.", @@ -757,6 +761,7 @@ shear_invoker (ProcRecord *proc_record, static ProcRecord shear_proc = { + TRUE, "gimp-shear", "gimp-shear", "This procedure is deprecated! Use 'gimp-drawable-transform-shear-default' instead.", @@ -845,6 +850,7 @@ transform_2d_invoker (ProcRecord *proc_record, static ProcRecord transform_2d_proc = { + TRUE, "gimp-transform-2d", "gimp-transform-2d", "This procedure is deprecated! Use 'gimp-drawable-transform-2d-default' instead.", diff --git a/app/pdb/undo_cmds.c b/app/pdb/undo_cmds.c index 866e786de9..24f57bd7dd 100644 --- a/app/pdb/undo_cmds.c +++ b/app/pdb/undo_cmds.c @@ -204,6 +204,7 @@ image_undo_group_start_invoker (ProcRecord *proc_record, static ProcRecord image_undo_group_start_proc = { + TRUE, "gimp-image-undo-group-start", "gimp-image-undo-group-start", "Starts a group undo.", @@ -239,6 +240,7 @@ image_undo_group_end_invoker (ProcRecord *proc_record, static ProcRecord image_undo_group_end_proc = { + TRUE, "gimp-image-undo-group-end", "gimp-image-undo-group-end", "Finish a group undo.", @@ -281,6 +283,7 @@ image_undo_is_enabled_invoker (ProcRecord *proc_record, static ProcRecord image_undo_is_enabled_proc = { + TRUE, "gimp-image-undo-is-enabled", "gimp-image-undo-is-enabled", "Check if the image's undo stack is enabled.", @@ -323,6 +326,7 @@ image_undo_disable_invoker (ProcRecord *proc_record, static ProcRecord image_undo_disable_proc = { + TRUE, "gimp-image-undo-disable", "gimp-image-undo-disable", "Disable the image's undo stack.", @@ -365,6 +369,7 @@ image_undo_enable_invoker (ProcRecord *proc_record, static ProcRecord image_undo_enable_proc = { + TRUE, "gimp-image-undo-enable", "gimp-image-undo-enable", "Enable the image's undo stack.", @@ -407,6 +412,7 @@ image_undo_freeze_invoker (ProcRecord *proc_record, static ProcRecord image_undo_freeze_proc = { + TRUE, "gimp-image-undo-freeze", "gimp-image-undo-freeze", "Freeze the image's undo stack.", @@ -449,6 +455,7 @@ image_undo_thaw_invoker (ProcRecord *proc_record, static ProcRecord image_undo_thaw_proc = { + TRUE, "gimp-image-undo-thaw", "gimp-image-undo-thaw", "Thaw the image's undo stack.", diff --git a/app/pdb/unit_cmds.c b/app/pdb/unit_cmds.c index 7eea89fc28..4547fd3ecc 100644 --- a/app/pdb/unit_cmds.c +++ b/app/pdb/unit_cmds.c @@ -370,6 +370,7 @@ unit_get_number_of_units_invoker (ProcRecord *proc_record, static ProcRecord unit_get_number_of_units_proc = { + TRUE, "gimp-unit-get-number-of-units", "gimp-unit-get-number-of-units", "Returns the number of units.", @@ -403,6 +404,7 @@ unit_get_number_of_built_in_units_invoker (ProcRecord *proc_record, static ProcRecord unit_get_number_of_built_in_units_proc = { + TRUE, "gimp-unit-get-number-of-built-in-units", "gimp-unit-get-number-of-built-in-units", "Returns the number of built-in units.", @@ -458,6 +460,7 @@ unit_new_invoker (ProcRecord *proc_record, static ProcRecord unit_new_proc = { + TRUE, "gimp-unit-new", "gimp-unit-new", "Creates a new unit and returns it's integer ID.", @@ -500,6 +503,7 @@ unit_get_deletion_flag_invoker (ProcRecord *proc_record, static ProcRecord unit_get_deletion_flag_proc = { + TRUE, "gimp-unit-get-deletion-flag", "gimp-unit-get-deletion-flag", "Returns the deletion flag of the unit.", @@ -537,6 +541,7 @@ unit_set_deletion_flag_invoker (ProcRecord *proc_record, static ProcRecord unit_set_deletion_flag_proc = { + TRUE, "gimp-unit-set-deletion-flag", "gimp-unit-set-deletion-flag", "Sets the deletion flag of a unit.", @@ -579,6 +584,7 @@ unit_get_identifier_invoker (ProcRecord *proc_record, static ProcRecord unit_get_identifier_proc = { + TRUE, "gimp-unit-get-identifier", "gimp-unit-get-identifier", "Returns the textual identifier of the unit.", @@ -621,6 +627,7 @@ unit_get_factor_invoker (ProcRecord *proc_record, static ProcRecord unit_get_factor_proc = { + TRUE, "gimp-unit-get-factor", "gimp-unit-get-factor", "Returns the factor of the unit.", @@ -663,6 +670,7 @@ unit_get_digits_invoker (ProcRecord *proc_record, static ProcRecord unit_get_digits_proc = { + TRUE, "gimp-unit-get-digits", "gimp-unit-get-digits", "Returns the number of digits of the unit.", @@ -705,6 +713,7 @@ unit_get_symbol_invoker (ProcRecord *proc_record, static ProcRecord unit_get_symbol_proc = { + TRUE, "gimp-unit-get-symbol", "gimp-unit-get-symbol", "Returns the symbol of the unit.", @@ -747,6 +756,7 @@ unit_get_abbreviation_invoker (ProcRecord *proc_record, static ProcRecord unit_get_abbreviation_proc = { + TRUE, "gimp-unit-get-abbreviation", "gimp-unit-get-abbreviation", "Returns the abbreviation of the unit.", @@ -789,6 +799,7 @@ unit_get_singular_invoker (ProcRecord *proc_record, static ProcRecord unit_get_singular_proc = { + TRUE, "gimp-unit-get-singular", "gimp-unit-get-singular", "Returns the singular form of the unit.", @@ -831,6 +842,7 @@ unit_get_plural_invoker (ProcRecord *proc_record, static ProcRecord unit_get_plural_proc = { + TRUE, "gimp-unit-get-plural", "gimp-unit-get-plural", "Returns the plural form of the unit.", diff --git a/app/pdb/vectors_cmds.c b/app/pdb/vectors_cmds.c index ccd0308c09..eaebff8517 100644 --- a/app/pdb/vectors_cmds.c +++ b/app/pdb/vectors_cmds.c @@ -842,6 +842,7 @@ vectors_new_invoker (ProcRecord *proc_record, static ProcRecord vectors_new_proc = { + TRUE, "gimp-vectors-new", "gimp-vectors-new", "Creates a new empty vectors object.", @@ -884,6 +885,7 @@ vectors_get_image_invoker (ProcRecord *proc_record, static ProcRecord vectors_get_image_proc = { + TRUE, "gimp-vectors-get-image", "gimp-vectors-get-image", "Returns the vectors objects image.", @@ -926,6 +928,7 @@ vectors_get_name_invoker (ProcRecord *proc_record, static ProcRecord vectors_get_name_proc = { + TRUE, "gimp-vectors-get-name", "gimp-vectors-get-name", "Gets the name of the vectors object.", @@ -963,6 +966,7 @@ vectors_set_name_invoker (ProcRecord *proc_record, static ProcRecord vectors_set_name_proc = { + TRUE, "gimp-vectors-set-name", "gimp-vectors-set-name", "Sets the name of the vectors object.", @@ -1005,6 +1009,7 @@ vectors_get_visible_invoker (ProcRecord *proc_record, static ProcRecord vectors_get_visible_proc = { + TRUE, "gimp-vectors-get-visible", "gimp-vectors-get-visible", "Gets the visibility of the vectors object.", @@ -1042,6 +1047,7 @@ vectors_set_visible_invoker (ProcRecord *proc_record, static ProcRecord vectors_set_visible_proc = { + TRUE, "gimp-vectors-set-visible", "gimp-vectors-set-visible", "Sets the visibility of the vectors object.", @@ -1084,6 +1090,7 @@ vectors_get_linked_invoker (ProcRecord *proc_record, static ProcRecord vectors_get_linked_proc = { + TRUE, "gimp-vectors-get-linked", "gimp-vectors-get-linked", "Gets the linked state of the vectors object.", @@ -1121,6 +1128,7 @@ vectors_set_linked_invoker (ProcRecord *proc_record, static ProcRecord vectors_set_linked_proc = { + TRUE, "gimp-vectors-set-linked", "gimp-vectors-set-linked", "Sets the linked state of the vectors object.", @@ -1163,6 +1171,7 @@ vectors_get_tattoo_invoker (ProcRecord *proc_record, static ProcRecord vectors_get_tattoo_proc = { + TRUE, "gimp-vectors-get-tattoo", "gimp-vectors-get-tattoo", "Get the tattoo of the vectors object.", @@ -1200,6 +1209,7 @@ vectors_set_tattoo_invoker (ProcRecord *proc_record, static ProcRecord vectors_set_tattoo_proc = { + TRUE, "gimp-vectors-set-tattoo", "gimp-vectors-set-tattoo", "Set the tattoo of the vectors object.", @@ -1262,6 +1272,7 @@ vectors_get_strokes_invoker (ProcRecord *proc_record, static ProcRecord vectors_get_strokes_proc = { + TRUE, "gimp-vectors-get-strokes", "gimp-vectors-get-strokes", "List the strokes associated with the passed path.", @@ -1313,6 +1324,7 @@ vectors_stroke_get_length_invoker (ProcRecord *proc_record, static ProcRecord vectors_stroke_get_length_proc = { + TRUE, "gimp-vectors-stroke-get-length", "gimp-vectors-stroke-get-length", "Measure the length of the given stroke.", @@ -1381,6 +1393,7 @@ vectors_stroke_get_point_at_dist_invoker (ProcRecord *proc_record, static ProcRecord vectors_stroke_get_point_at_dist_proc = { + TRUE, "gimp-vectors-stroke-get-point-at-dist", "gimp-vectors-stroke-get-point-at-dist", "Get point at a specified distance along the stroke.", @@ -1423,6 +1436,7 @@ vectors_stroke_remove_invoker (ProcRecord *proc_record, static ProcRecord vectors_stroke_remove_proc = { + TRUE, "gimp-vectors-stroke-remove", "gimp-vectors-stroke-remove", "remove the stroke from a vectors object.", @@ -1465,6 +1479,7 @@ vectors_stroke_close_invoker (ProcRecord *proc_record, static ProcRecord vectors_stroke_close_proc = { + TRUE, "gimp-vectors-stroke-close", "gimp-vectors-stroke-close", "closes the specified stroke.", @@ -1511,6 +1526,7 @@ vectors_stroke_translate_invoker (ProcRecord *proc_record, static ProcRecord vectors_stroke_translate_proc = { + TRUE, "gimp-vectors-stroke-translate", "gimp-vectors-stroke-translate", "translate the given stroke.", @@ -1557,6 +1573,7 @@ vectors_stroke_scale_invoker (ProcRecord *proc_record, static ProcRecord vectors_stroke_scale_proc = { + TRUE, "gimp-vectors-stroke-scale", "gimp-vectors-stroke-scale", "scales the given stroke.", @@ -1635,6 +1652,7 @@ vectors_stroke_interpolate_invoker (ProcRecord *proc_record, static ProcRecord vectors_stroke_interpolate_proc = { + TRUE, "gimp-vectors-stroke-interpolate", "gimp-vectors-stroke-interpolate", "returns polygonal approximation of the stroke.", @@ -1689,6 +1707,7 @@ vectors_bezier_stroke_new_moveto_invoker (ProcRecord *proc_record, static ProcRecord vectors_bezier_stroke_new_moveto_proc = { + TRUE, "gimp-vectors-bezier-stroke-new-moveto", "gimp-vectors-bezier-stroke-new-moveto", "Adds a bezier stroke with a single moveto to the vectors object.", @@ -1742,6 +1761,7 @@ vectors_bezier_stroke_lineto_invoker (ProcRecord *proc_record, static ProcRecord vectors_bezier_stroke_lineto_proc = { + TRUE, "gimp-vectors-bezier-stroke-lineto", "gimp-vectors-bezier-stroke-lineto", "Extends a bezier stroke with a lineto.", @@ -1803,6 +1823,7 @@ vectors_bezier_stroke_conicto_invoker (ProcRecord *proc_record, static ProcRecord vectors_bezier_stroke_conicto_proc = { + TRUE, "gimp-vectors-bezier-stroke-conicto", "gimp-vectors-bezier-stroke-conicto", "Extends a bezier stroke with a conic bezier spline.", @@ -1872,6 +1893,7 @@ vectors_bezier_stroke_cubicto_invoker (ProcRecord *proc_record, static ProcRecord vectors_bezier_stroke_cubicto_proc = { + TRUE, "gimp-vectors-bezier-stroke-cubicto", "gimp-vectors-bezier-stroke-cubicto", "Extends a bezier stroke with a cubic bezier spline.", @@ -1932,6 +1954,7 @@ vectors_bezier_stroke_new_ellipse_invoker (ProcRecord *proc_record, static ProcRecord vectors_bezier_stroke_new_ellipse_proc = { + TRUE, "gimp-vectors-bezier-stroke-new-ellipse", "gimp-vectors-bezier-stroke-new-ellipse", "Adds a bezier stroke describing an ellipse the vectors object.", diff --git a/app/plug-in/gimppluginprocedure.c b/app/plug-in/gimppluginprocedure.c index 8a14e48a89..3c3e173e63 100644 --- a/app/plug-in/gimppluginprocedure.c +++ b/app/plug-in/gimppluginprocedure.c @@ -107,14 +107,6 @@ plug_in_proc_def_find (GSList *list, return NULL; } -const ProcRecord * -plug_in_proc_def_get_proc (const PlugInProcDef *proc_def) -{ - g_return_val_if_fail (proc_def != NULL, NULL); - - return proc_def->procedure; -} - const gchar * plug_in_proc_def_get_progname (const PlugInProcDef *proc_def) { diff --git a/app/plug-in/gimppluginprocedure.h b/app/plug-in/gimppluginprocedure.h index fcb1ceab9f..9c1d2970ad 100644 --- a/app/plug-in/gimppluginprocedure.h +++ b/app/plug-in/gimppluginprocedure.h @@ -61,7 +61,6 @@ void plug_in_proc_def_free (PlugInProcDef *proc_def) PlugInProcDef * plug_in_proc_def_find (GSList *list, const gchar *proc_name); -const ProcRecord * plug_in_proc_def_get_proc (const PlugInProcDef *proc_def); const gchar * plug_in_proc_def_get_progname (const PlugInProcDef *proc_def); gchar * plug_in_proc_def_get_label (const PlugInProcDef *proc_def, const gchar *locale_domain); diff --git a/app/plug-in/plug-in-proc-def.c b/app/plug-in/plug-in-proc-def.c index 8a14e48a89..3c3e173e63 100644 --- a/app/plug-in/plug-in-proc-def.c +++ b/app/plug-in/plug-in-proc-def.c @@ -107,14 +107,6 @@ plug_in_proc_def_find (GSList *list, return NULL; } -const ProcRecord * -plug_in_proc_def_get_proc (const PlugInProcDef *proc_def) -{ - g_return_val_if_fail (proc_def != NULL, NULL); - - return proc_def->procedure; -} - const gchar * plug_in_proc_def_get_progname (const PlugInProcDef *proc_def) { diff --git a/app/plug-in/plug-in-proc-def.h b/app/plug-in/plug-in-proc-def.h index fcb1ceab9f..9c1d2970ad 100644 --- a/app/plug-in/plug-in-proc-def.h +++ b/app/plug-in/plug-in-proc-def.h @@ -61,7 +61,6 @@ void plug_in_proc_def_free (PlugInProcDef *proc_def) PlugInProcDef * plug_in_proc_def_find (GSList *list, const gchar *proc_name); -const ProcRecord * plug_in_proc_def_get_proc (const PlugInProcDef *proc_def); const gchar * plug_in_proc_def_get_progname (const PlugInProcDef *proc_def); gchar * plug_in_proc_def_get_label (const PlugInProcDef *proc_def, const gchar *locale_domain); diff --git a/app/xcf/xcf.c b/app/xcf/xcf.c index b7e2a39e14..de15bf9084 100644 --- a/app/xcf/xcf.c +++ b/app/xcf/xcf.c @@ -66,6 +66,7 @@ static Argument * xcf_save_invoker (ProcRecord *procedure, static ProcRecord xcf_load_procedure = { + TRUE, "gimp-xcf-load", "gimp-xcf-load", "loads file saved in the .xcf file format", @@ -106,6 +107,7 @@ static PlugInProcDef xcf_plug_in_load_proc = static ProcRecord xcf_save_procedure = { + TRUE, "gimp-xcf-save", "gimp-xcf-save", "saves file in the .xcf file format", diff --git a/tools/pdbgen/app.pl b/tools/pdbgen/app.pl index b1ec6a1a7c..f18dc2af45 100644 --- a/tools/pdbgen/app.pl +++ b/tools/pdbgen/app.pl @@ -601,6 +601,7 @@ CODE static ProcRecord ${name}_proc = { + TRUE, "gimp-$proc->{canonical_name}", "gimp-$proc->{canonical_name}", @{[ "ewrap($proc->{blurb}, 2) ]}, diff --git a/tools/pdbgen/pdb/fileops.pdb b/tools/pdbgen/pdb/fileops.pdb index 96ef3f72f3..2c42a2bbe9 100644 --- a/tools/pdbgen/pdb/fileops.pdb +++ b/tools/pdbgen/pdb/fileops.pdb @@ -51,13 +51,13 @@ HELP no_marshalling => 1, code => <<'CODE' { - Argument *new_args; - Argument *return_vals; - PlugInProcDef *file_proc; - const ProcRecord *proc; - gchar *uri; - gint n_return_vals; - gint i; + Argument *new_args; + Argument *return_vals; + PlugInProcDef *file_proc; + ProcRecord *proc; + gchar *uri; + gint n_return_vals; + gint i; uri = file_utils_filename_to_uri (gimp->load_procs, g_value_get_string (&args[1].value), @@ -73,7 +73,7 @@ HELP if (! file_proc) return gimp_procedure_get_return_values (proc_record, FALSE); - proc = plug_in_proc_def_get_proc (file_proc); + proc = file_proc->procedure; new_args = gimp_procedure_get_arguments (proc); @@ -178,13 +178,13 @@ HELP no_marshalling => 1, code => <<'CODE' { - Argument *new_args; - Argument *return_vals; - PlugInProcDef *file_proc; - const ProcRecord *proc; - gchar *uri; - gint n_return_vals; - gint i; + Argument *new_args; + Argument *return_vals; + PlugInProcDef *file_proc; + ProcRecord *proc; + gchar *uri; + gint n_return_vals; + gint i; uri = file_utils_filename_to_uri (gimp->load_procs, g_value_get_string (&args[3].value), @@ -200,7 +200,7 @@ HELP if (! file_proc) return gimp_procedure_get_return_values (proc_record, FALSE); - proc = plug_in_proc_def_get_proc (file_proc); + proc = file_proc->procedure; new_args = gimp_procedure_get_arguments (proc);