Commit c03c336c authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

added flag "guint static_name : 1" and new APIs

2006-04-07  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpobject.[ch]: added flag "guint static_name : 1" and
	new APIs gimp_object_set_static_name() and _take_name().

	* app/pdb/gimpprocedure.[ch]: removed member "name". Use
	GimpObject's name instead.

	* app/actions/plug-in-actions.c
	* app/file/file-open.c
	* app/file/file-save.c
	* app/menus/plug-in-menus.c
	* app/pdb/gimp-pdb-query.c
	* app/pdb/gimp-pdb.c
	* app/pdb/gimppluginprocedure.c
	* app/plug-in/plug-in-message.c
	* app/plug-in/plug-in-rc.c
	* app/plug-in/plug-ins-query.c
	* app/plug-in/plug-ins.c
	* app/xcf/xcf.c
	* tools/pdbgen/app.pl
	* tools/pdbgen/pdb/fileops.pdb: use GimpObject API to set/get
	a procedure's name.

	* app/pdb/*_cmds.c: regenerated.
parent cfd7233b
2006-04-07 Michael Natterer <mitch@gimp.org>
* app/core/gimpobject.[ch]: added flag "guint static_name : 1" and
new APIs gimp_object_set_static_name() and _take_name().
* app/pdb/gimpprocedure.[ch]: removed member "name". Use
GimpObject's name instead.
* app/actions/plug-in-actions.c
* app/file/file-open.c
* app/file/file-save.c
* app/menus/plug-in-menus.c
* app/pdb/gimp-pdb-query.c
* app/pdb/gimp-pdb.c
* app/pdb/gimppluginprocedure.c
* app/plug-in/plug-in-message.c
* app/plug-in/plug-in-rc.c
* app/plug-in/plug-ins-query.c
* app/plug-in/plug-ins.c
* app/xcf/xcf.c
* tools/pdbgen/app.pl
* tools/pdbgen/pdb/fileops.pdb: use GimpObject API to set/get
a procedure's name.
* app/pdb/*_cmds.c: regenerated.
2006-04-07 Sven Neumann <sven@gimp.org>
* app/core/gimpdrawable.[ch]: renamed gimp_drawable_shadow() to
......
......@@ -218,7 +218,7 @@ plug_in_actions_update (GimpActionGroup *group,
gboolean sensitive = gimp_plug_in_procedure_get_sensitive (proc, type);
gimp_action_group_set_action_sensitive (group,
GIMP_PROCEDURE (proc)->name,
GIMP_OBJECT (proc)->name,
sensitive);
}
}
......@@ -301,7 +301,7 @@ plug_in_actions_add_proc (GimpActionGroup *group,
if (GIMP_PROCEDURE (proc)->blurb)
tooltip = dgettext (locale_domain, GIMP_PROCEDURE (proc)->blurb);
entry.name = GIMP_PROCEDURE (proc)->name;
entry.name = GIMP_OBJECT (proc)->name;
entry.stock_id = gimp_plug_in_procedure_get_stock_id (proc);
entry.label = label;
entry.accelerator = NULL;
......@@ -311,7 +311,7 @@ plug_in_actions_add_proc (GimpActionGroup *group,
#if 0
g_print ("adding plug-in action '%s' (%s)\n",
GIMP_PROCEDURE (proc)->name, label);
GIMP_OBJECT (proc)->name, label);
#endif
gimp_action_group_add_plug_in_actions (group, &entry, 1,
......@@ -378,13 +378,13 @@ plug_in_actions_remove_proc (GimpActionGroup *group,
g_return_if_fail (GIMP_IS_PLUG_IN_PROCEDURE (proc));
action = gtk_action_group_get_action (GTK_ACTION_GROUP (group),
GIMP_PROCEDURE (proc)->name);
GIMP_OBJECT (proc)->name);
if (action)
{
#if 0
g_print ("removing plug-in action '%s'\n",
GIMP_PROCEDURE (proc)->name);
GIMP_OBJECT (proc)->name);
#endif
gtk_action_group_remove_action (GTK_ACTION_GROUP (group), action);
......
......@@ -169,7 +169,10 @@ gimp_object_get_property (GObject *object,
switch (property_id)
{
case PROP_NAME:
g_value_set_string (value, gimp_object->name);
if (gimp_object->static_name)
g_value_set_static_string (value, gimp_object->name);
else
g_value_set_string (value, gimp_object->name);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
......@@ -198,6 +201,7 @@ gimp_object_set_name (GimpObject *object,
gimp_object_name_free (object);
object->name = g_strdup (name);
object->static_name = FALSE;
gimp_object_name_changed (object);
g_object_notify (G_OBJECT (object), "name");
......@@ -225,6 +229,37 @@ gimp_object_set_name_safe (GimpObject *object,
gimp_object_name_free (object);
object->name = gimp_utf8_strtrim (name, 30);
object->static_name = FALSE;
gimp_object_name_changed (object);
g_object_notify (G_OBJECT (object), "name");
}
void
gimp_object_set_static_name (GimpObject *object,
const gchar *name)
{
g_return_if_fail (GIMP_IS_OBJECT (object));
gimp_object_name_free (object);
object->name = (gchar *) name;
object->static_name = TRUE;
gimp_object_name_changed (object);
g_object_notify (G_OBJECT (object), "name");
}
void
gimp_object_take_name (GimpObject *object,
gchar *name)
{
g_return_if_fail (GIMP_IS_OBJECT (object));
gimp_object_name_free (object);
object->name = name;
object->static_name = FALSE;
gimp_object_name_changed (object);
g_object_notify (G_OBJECT (object), "name");
......@@ -286,8 +321,11 @@ gimp_object_name_free (GimpObject *object)
if (object->name)
{
g_free (object->name);
if (! object->static_name)
g_free (object->name);
object->name = NULL;
object->static_name = FALSE;
}
}
......@@ -420,7 +458,7 @@ gimp_object_real_get_memsize (GimpObject *object,
{
gint64 memsize = 0;
if (object->name)
if (object->name && ! object->static_name)
memsize += strlen (object->name) + 1;
return memsize + gimp_g_object_get_memsize ((GObject *) object);
......
......@@ -38,6 +38,7 @@ struct _GimpObject
/*< private >*/
gchar *normalized;
guint static_name : 1;
};
struct _GimpObjectClass
......@@ -54,20 +55,24 @@ struct _GimpObjectClass
};
GType gimp_object_get_type (void) G_GNUC_CONST;
void gimp_object_set_name (GimpObject *object,
const gchar *name);
const gchar * gimp_object_get_name (const GimpObject *object);
void gimp_object_set_name_safe (GimpObject *object,
const gchar *name);
void gimp_object_name_changed (GimpObject *object);
void gimp_object_name_free (GimpObject *object);
gint gimp_object_name_collate (GimpObject *object1,
GimpObject *object2);
gint64 gimp_object_get_memsize (GimpObject *object,
gint64 *gui_size);
GType gimp_object_get_type (void) G_GNUC_CONST;
void gimp_object_set_name (GimpObject *object,
const gchar *name);
void gimp_object_set_name_safe (GimpObject *object,
const gchar *name);
void gimp_object_set_static_name (GimpObject *object,
const gchar *name);
void gimp_object_take_name (GimpObject *object,
gchar *name);
const gchar * gimp_object_get_name (const GimpObject *object);
void gimp_object_name_changed (GimpObject *object);
void gimp_object_name_free (GimpObject *object);
gint gimp_object_name_collate (GimpObject *object1,
GimpObject *object2);
gint64 gimp_object_get_memsize (GimpObject *object,
gint64 *gui_size);
#endif /* __GIMP_OBJECT_H__ */
......@@ -135,7 +135,7 @@ file_open_image (Gimp *gimp,
}
return_vals = gimp_pdb_run_proc (gimp, context, progress,
GIMP_PROCEDURE (file_proc)->name,
GIMP_OBJECT (file_proc)->name,
GIMP_TYPE_INT32, run_mode,
G_TYPE_STRING, filename,
G_TYPE_STRING, entered_filename,
......@@ -219,7 +219,7 @@ file_open_thumbnail (Gimp *gimp,
filename = g_strdup (uri);
return_vals = gimp_pdb_run_proc (gimp, context, progress,
procedure->name,
GIMP_OBJECT (procedure)->name,
G_TYPE_STRING, filename,
GIMP_TYPE_INT32, size,
G_TYPE_NONE);
......
......@@ -126,7 +126,7 @@ file_save (GimpImage *image,
g_object_ref (image);
return_vals = gimp_pdb_run_proc (image->gimp, context, progress,
GIMP_PROCEDURE (file_proc)->name,
GIMP_OBJECT (file_proc)->name,
GIMP_TYPE_INT32, run_mode,
GIMP_TYPE_IMAGE_ID, gimp_image_get_ID (image),
GIMP_TYPE_DRAWABLE_ID, gimp_item_get_ID (GIMP_ITEM (gimp_image_active_drawable (image))),
......
......@@ -266,7 +266,7 @@ plug_in_menus_add_proc (GimpUIManager *manager,
*p = '\0';
}
merge_key = g_strdup_printf ("%s-merge-id", GIMP_PROCEDURE (proc)->name);
merge_key = g_strdup_printf ("%s-merge-id", GIMP_OBJECT (proc)->name);
merge_id = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (manager),
merge_key));
......@@ -303,13 +303,13 @@ plug_in_menus_add_proc (GimpUIManager *manager,
#if 0
g_print ("adding menu item for '%s' (@ %s)\n",
GIMP_PROCEDURE (proc)->name, action_path);
GIMP_OBJECT (proc)->name, action_path);
#endif
gtk_ui_manager_add_ui (GTK_UI_MANAGER (manager), merge_id,
action_path,
GIMP_PROCEDURE (proc)->name,
GIMP_PROCEDURE (proc)->name,
GIMP_OBJECT (proc)->name,
GIMP_OBJECT (proc)->name,
GTK_UI_MANAGER_MENUITEM,
FALSE);
......@@ -327,7 +327,7 @@ plug_in_menus_remove_proc (GimpUIManager *manager,
g_return_if_fail (GIMP_IS_UI_MANAGER (manager));
g_return_if_fail (GIMP_IS_PLUG_IN_PROCEDURE (proc));
merge_key = g_strdup_printf ("%s-merge-id", GIMP_PROCEDURE (proc)->name);
merge_key = g_strdup_printf ("%s-merge-id", GIMP_OBJECT (proc)->name);
merge_id = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (manager),
merge_key));
g_free (merge_key);
......
......@@ -870,8 +870,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-new
*/
procedure = gimp_procedure_new (brush_new_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-new");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-new",
"gimp-brush-new",
"Creates a new brush",
"This procedure creates a new, uninitialized brush",
......@@ -901,8 +901,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-duplicate
*/
procedure = gimp_procedure_new (brush_duplicate_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-duplicate");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-duplicate",
"gimp-brush-duplicate",
"Duplicates a brush",
"This procedure creates an identical brush by a different name",
......@@ -932,8 +932,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-is-generated
*/
procedure = gimp_procedure_new (brush_is_generated_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-is-generated");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-is-generated",
"gimp-brush-is-generated",
"Tests if brush is generated",
"Returns TRUE if this brush is parametric, FALSE for other types",
......@@ -962,8 +962,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-rename
*/
procedure = gimp_procedure_new (brush_rename_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-rename");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-rename",
"gimp-brush-rename",
"Rename a brush",
"This procedure renames a brush",
......@@ -1000,8 +1000,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-delete
*/
procedure = gimp_procedure_new (brush_delete_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-delete");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-delete",
"gimp-brush-delete",
"Deletes a brush",
"This procedure deletes a brush",
......@@ -1024,8 +1024,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-is-editable
*/
procedure = gimp_procedure_new (brush_is_editable_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-is-editable");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-is-editable",
"gimp-brush-is-editable",
"Tests if brush can be edited",
"Returns TRUE if you have permission to change the brush",
......@@ -1054,8 +1054,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-get-info
*/
procedure = gimp_procedure_new (brush_get_info_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-get-info");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-info",
"gimp-brush-get-info",
"Retrieve information about the specified brush.",
"This procedure retrieves information about the specified brush. This includes the brush name, and the brush extents (width and height).",
......@@ -1102,8 +1102,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-get-pixels
*/
procedure = gimp_procedure_new (brush_get_pixels_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-get-pixels");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-pixels",
"gimp-brush-get-pixels",
"Retrieve information about the specified brush.",
"This procedure retrieves information about the specified brush. This includes the brush extents (width and height) and its pixels data.",
......@@ -1172,8 +1172,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-get-spacing
*/
procedure = gimp_procedure_new (brush_get_spacing_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-get-spacing");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-spacing",
"gimp-brush-get-spacing",
"Get the brush spacing.",
"This procedure returns the spacing setting for the specified brush. The return value is an integer between 0 and 1000 which represents percentage of the maximum of the width and height of the mask.",
......@@ -1202,8 +1202,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-set-spacing
*/
procedure = gimp_procedure_new (brush_set_spacing_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-set-spacing");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-spacing",
"gimp-brush-set-spacing",
"Set the brush spacing.",
"This procedure modifies the spacing setting for the specified brush. The value should be a integer between 0 and 1000.",
......@@ -1232,8 +1232,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-get-shape
*/
procedure = gimp_procedure_new (brush_get_shape_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-get-shape");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-shape",
"gimp-brush-get-shape",
"Get the shape of a generated brush.",
"This procedure gets the shape value for a generated brush. If called for any other type of brush, it does not succeed. The current possibilities are Circle (GIMP_BRUSH_GENERATED_CIRCLE), Square (GIMP_BRUSH_GENERATED_SQUARE), and Diamond (GIMP_BRUSH_GENERATED_DIAMOND). Other shapes are likely to be added in the future.",
......@@ -1263,8 +1263,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-get-radius
*/
procedure = gimp_procedure_new (brush_get_radius_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-get-radius");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-radius",
"gimp-brush-get-radius",
"Get the radius of a generated brush.",
"This procedure gets the radius value for a generated brush. If called for any other type of brush, it does not succeed.",
......@@ -1293,8 +1293,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-get-spikes
*/
procedure = gimp_procedure_new (brush_get_spikes_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-get-spikes");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-spikes",
"gimp-brush-get-spikes",
"Get the number of spikes for a generated brush.",
"This procedure gets the number of spikes for a generated brush. If called for any other type of brush, it does not succeed.",
......@@ -1323,8 +1323,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-get-hardness
*/
procedure = gimp_procedure_new (brush_get_hardness_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-get-hardness");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-hardness",
"gimp-brush-get-hardness",
"Get the hardness of a generated brush.",
"This procedure gets the hardness of a generated brush. The hardness of a brush is the amount its intensity fades at the outside edge. If called for any other type of brush, the function does not succeed.",
......@@ -1353,8 +1353,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-get-aspect-ratio
*/
procedure = gimp_procedure_new (brush_get_aspect_ratio_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-get-aspect-ratio");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-aspect-ratio",
"gimp-brush-get-aspect-ratio",
"Get the aspect ratio of a generated brush.",
"This procedure gets the aspect ratio of a generated brush. If called for any other type of brush, it does not succeed.",
......@@ -1383,8 +1383,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-get-angle
*/
procedure = gimp_procedure_new (brush_get_angle_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-get-angle");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-get-angle",
"gimp-brush-get-angle",
"Get the rotation angle of a generated brush.",
"This procedure gets the angle of rotation for a generated brush. If called for any other type of brush, it does not succeed.",
......@@ -1413,8 +1413,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-set-shape
*/
procedure = gimp_procedure_new (brush_set_shape_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-set-shape");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-shape",
"gimp-brush-set-shape",
"Set the shape of a generated brush.",
"This procedure sets the shape value for a generated brush. If called for any other type of brush, it does not succeed. The current possibilities are Circle (GIMP_BRUSH_GENERATED_CIRCLE), Square (GIMP_BRUSH_GENERATED_SQUARE), and Diamond (GIMP_BRUSH_GENERATED_DIAMOND). Other shapes are likely to be added in the future.",
......@@ -1451,8 +1451,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-set-radius
*/
procedure = gimp_procedure_new (brush_set_radius_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-set-radius");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-radius",
"gimp-brush-set-radius",
"Set the radius of a generated brush.",
"This procedure sets the radius for a generated brush. If called for any other type of brush, it does not succeed.",
......@@ -1487,8 +1487,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-set-spikes
*/
procedure = gimp_procedure_new (brush_set_spikes_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-set-spikes");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-spikes",
"gimp-brush-set-spikes",
"Set the number of spikes for a generated brush.",
"This procedure sets the number of spikes for a generated brush. If called for any other type of brush, it does not succeed.",
......@@ -1523,8 +1523,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-set-hardness
*/
procedure = gimp_procedure_new (brush_set_hardness_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-set-hardness");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-hardness",
"gimp-brush-set-hardness",
"Set the hardness of a generated brush.",
"This procedure sets the hardness for a generated brush. If called for any other type of brush, it does not succeed.",
......@@ -1559,8 +1559,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-set-aspect-ratio
*/
procedure = gimp_procedure_new (brush_set_aspect_ratio_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-set-aspect-ratio");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-aspect-ratio",
"gimp-brush-set-aspect-ratio",
"Set the aspect ratio of a generated brush.",
"This procedure sets the aspect ratio for a generated brush. If called for any other type of brush, it does not succeed.",
......@@ -1595,8 +1595,8 @@ register_brush_procs (Gimp *gimp)
* gimp-brush-set-angle
*/
procedure = gimp_procedure_new (brush_set_angle_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brush-set-angle");
gimp_procedure_set_static_strings (procedure,
"gimp-brush-set-angle",
"gimp-brush-set-angle",
"Set the rotation angle of a generated brush.",
"This procedure sets the rotation angle for a generated brush. If called for any other type of brush, it does not succeed.",
......
......@@ -139,8 +139,8 @@ register_brush_select_procs (Gimp *gimp)
* gimp-brushes-popup
*/
procedure = gimp_procedure_new (brushes_popup_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brushes-popup");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-popup",
"gimp-brushes-popup",
"Invokes the Gimp brush selection.",
"This procedure popups the brush selection dialog.",
......@@ -196,8 +196,8 @@ register_brush_select_procs (Gimp *gimp)
* gimp-brushes-close-popup
*/
procedure = gimp_procedure_new (brushes_close_popup_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brushes-close-popup");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-close-popup",
"gimp-brushes-close-popup",
"Popdown the Gimp brush selection.",
"This procedure closes an opened brush selection dialog.",
......@@ -220,8 +220,8 @@ register_brush_select_procs (Gimp *gimp)
* gimp-brushes-set-popup
*/
procedure = gimp_procedure_new (brushes_set_popup_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brushes-set-popup");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-set-popup",
"gimp-brushes-set-popup",
"Sets the current brush selection in a popup.",
"Sets the current brush selection in a popup.",
......
......@@ -242,8 +242,8 @@ register_brushes_procs (Gimp *gimp)
* gimp-brushes-refresh
*/
procedure = gimp_procedure_new (brushes_refresh_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brushes-refresh");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-refresh",
"gimp-brushes-refresh",
"Refresh current brushes. This function always succeeds.",
"This procedure retrieves all brushes currently in the user's brush path and updates the brush dialogs accordingly.",
......@@ -259,8 +259,8 @@ register_brushes_procs (Gimp *gimp)
* gimp-brushes-get-list
*/
procedure = gimp_procedure_new (brushes_get_list_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brushes-get-list");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-get-list",
"gimp-brushes-get-list",
"Retrieve a complete listing of the available brushes.",
"This procedure returns a complete listing of available GIMP brushes. Each name returned can be used as input to the 'gimp-context-set-brush' procedure.",
......@@ -294,8 +294,8 @@ register_brushes_procs (Gimp *gimp)
* gimp-brushes-get-brush
*/
procedure = gimp_procedure_new (brushes_get_brush_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brushes-get-brush");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-get-brush",
"gimp-brushes-get-brush",
"This procedure is deprecated! Use 'gimp-context-get-brush' instead.",
"This procedure is deprecated! Use 'gimp-context-get-brush' instead.",
......@@ -336,8 +336,8 @@ register_brushes_procs (Gimp *gimp)
* gimp-brushes-get-spacing
*/
procedure = gimp_procedure_new (brushes_get_spacing_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brushes-get-spacing");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-get-spacing",
"gimp-brushes-get-spacing",
"This procedure is deprecated! Use 'gimp-brush-get-spacing' instead.",
"This procedure is deprecated! Use 'gimp-brush-get-spacing' instead.",
......@@ -359,8 +359,8 @@ register_brushes_procs (Gimp *gimp)
* gimp-brushes-set-spacing
*/
procedure = gimp_procedure_new (brushes_set_spacing_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brushes-set-spacing");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-set-spacing",
"gimp-brushes-set-spacing",
"This procedure is deprecated! Use 'gimp-brush-set-spacing' instead.",
"This procedure is deprecated! Use 'gimp-brush-set-spacing' instead.",
......@@ -382,8 +382,8 @@ register_brushes_procs (Gimp *gimp)
* gimp-brushes-get-brush-data
*/
procedure = gimp_procedure_new (brushes_get_brush_data_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-brushes-get-brush-data");
gimp_procedure_set_static_strings (procedure,
"gimp-brushes-get-brush-data",
"gimp-brushes-get-brush-data",
"This procedure is deprecated! Use 'gimp-brush-get-pixels' instead.",
"This procedure is deprecated! Use 'gimp-brush-get-pixels' instead.",
......
......@@ -273,8 +273,8 @@ register_buffer_procs (Gimp *gimp)
* gimp-buffers-get-list
*/
procedure = gimp_procedure_new (buffers_get_list_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-buffers-get-list");
gimp_procedure_set_static_strings (procedure,
"gimp-buffers-get-list",
"gimp-buffers-get-list",
"Retrieve a complete listing of the available buffers.",
"This procedure returns a complete listing of available named buffers.",
......@@ -308,8 +308,8 @@ register_buffer_procs (Gimp *gimp)
* gimp-buffer-rename
*/
procedure = gimp_procedure_new (buffer_rename_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-buffer-rename");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-rename",
"gimp-buffer-rename",
"Renames a named buffer.",
"This procedure renames a named buffer.",
......@@ -346,8 +346,8 @@ register_buffer_procs (Gimp *gimp)
* gimp-buffer-delete
*/
procedure = gimp_procedure_new (buffer_delete_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-buffer-delete");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-delete",
"gimp-buffer-delete",
"Deletes a named buffer.",
"This procedure deletes a named buffer.",
......@@ -370,8 +370,8 @@ register_buffer_procs (Gimp *gimp)
* gimp-buffer-get-width
*/
procedure = gimp_procedure_new (buffer_get_width_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-buffer-get-width");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-width",
"gimp-buffer-get-width",
"Retrieves the specified buffer's width.",
"This procedure retrieves the specified named buffer's width.",
......@@ -400,8 +400,8 @@ register_buffer_procs (Gimp *gimp)
* gimp-buffer-get-height
*/
procedure = gimp_procedure_new (buffer_get_height_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-buffer-get-height");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-height",
"gimp-buffer-get-height",
"Retrieves the specified buffer's height.",
"This procedure retrieves the specified named buffer's height.",
......@@ -430,8 +430,8 @@ register_buffer_procs (Gimp *gimp)
* gimp-buffer-get-bytes
*/
procedure = gimp_procedure_new (buffer_get_bytes_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-buffer-get-bytes");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-bytes",
"gimp-buffer-get-bytes",
"Retrieves the specified buffer's bytes.",
"This procedure retrieves the specified named buffer's bytes.",
......@@ -460,8 +460,8 @@ register_buffer_procs (Gimp *gimp)
* gimp-buffer-get-image-type
*/
procedure = gimp_procedure_new (buffer_get_image_type_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-buffer-get-image-type");
gimp_procedure_set_static_strings (procedure,
"gimp-buffer-get-image-type",
"gimp-buffer-get-image-type",
"Retrieves the specified buffer's image type.",
"This procedure retrieves the specified named buffer's image type.",
......
......@@ -334,8 +334,8 @@ register_channel_procs (Gimp *gimp)
* gimp-channel-new
*/
procedure = gimp_procedure_new (channel_new_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-channel-new");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-new",
"gimp-channel-new",
"Create a new channel.",
"This procedure creates a new channel with the specified width and height. Name, opacity, and color are also supplied parameters. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with the 'gimp_image_add_channel' command. Other attributes such as channel show masked, should be set with explicit procedure calls. The channel's contents are undefined initially.",
......@@ -394,8 +394,8 @@ register_channel_procs (Gimp *gimp)
* gimp-channel-new-from-component
*/
procedure = gimp_procedure_new (channel_new_from_component_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-channel-new-from-component");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-new-from-component",
"gimp-channel-new-from-component",
"Create a new channel from a color component",
"This procedure creates a new channel from a color component.",
......@@ -437,8 +437,8 @@ register_channel_procs (Gimp *gimp)
* gimp-channel-copy
*/
procedure = gimp_procedure_new (channel_copy_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-channel-copy");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-copy",
"gimp-channel-copy",
"Copy a channel.",
"This procedure copies the specified channel and returns the copy.",
......@@ -466,8 +466,8 @@ register_channel_procs (Gimp *gimp)
* gimp-channel-combine-masks
*/
procedure = gimp_procedure_new (channel_combine_masks_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-channel-combine-masks");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-combine-masks",
"gimp-channel-combine-masks",
"Combine two channel masks.",
"This procedure combines two channel masks. The result is stored in the first channel.",
......@@ -514,8 +514,8 @@ register_channel_procs (Gimp *gimp)
* gimp-channel-get-show-masked
*/
procedure = gimp_procedure_new (channel_get_show_masked_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-channel-get-show-masked");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-get-show-masked",
"gimp-channel-get-show-masked",
"Get the composite method of the specified channel.",
"This procedure returns the specified channel's composite method. If it is TRUE, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
......@@ -543,8 +543,8 @@ register_channel_procs (Gimp *gimp)
* gimp-channel-set-show-masked
*/
procedure = gimp_procedure_new (channel_set_show_masked_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-channel-set-show-masked");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-set-show-masked",
"gimp-channel-set-show-masked",
"Set the composite method of the specified channel.",
"This procedure sets the specified channel's composite method. If it is TRUE, then the channel is composited with the image so that masked regions are shown. Otherwise, selected regions are shown.",
......@@ -572,8 +572,8 @@ register_channel_procs (Gimp *gimp)
* gimp-channel-get-opacity
*/
procedure = gimp_procedure_new (channel_get_opacity_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-channel-get-opacity");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-get-opacity",
"gimp-channel-get-opacity",
"Get the opacity of the specified channel.",
"This procedure returns the specified channel's opacity.",
......@@ -601,8 +601,8 @@ register_channel_procs (Gimp *gimp)
* gimp-channel-set-opacity
*/
procedure = gimp_procedure_new (channel_set_opacity_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-channel-set-opacity");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-set-opacity",
"gimp-channel-set-opacity",
"Set the opacity of the specified channel.",
"This procedure sets the specified channel's opacity.",
......@@ -630,8 +630,8 @@ register_channel_procs (Gimp *gimp)
* gimp-channel-get-color
*/
procedure = gimp_procedure_new (channel_get_color_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-channel-get-color");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-get-color",
"gimp-channel-get-color",
"Get the compositing color of the specified channel.",
"This procedure returns the specified channel's compositing color.",
......@@ -659,8 +659,8 @@ register_channel_procs (Gimp *gimp)
* gimp-channel-set-color
*/
procedure = gimp_procedure_new (channel_set_color_invoker);
gimp_object_set_static_name (GIMP_OBJECT (procedure), "gimp-channel-set-color");
gimp_procedure_set_static_strings (procedure,
"gimp-channel-set-color",
"gimp-channel-set-color",
"Set the compositing color of the specified channel.",
"This procedure sets the specified channel's compositing color.",
......
......@@ -840,8 +840,8 @@ register_color_procs (Gimp *gimp)
* gimp-brightness-contrast
*/