added "gboolean non_empty" to require the string being non-empty. Changed

2007-04-25  Michael Natterer  <mitch@gimp.org>

	* app/core/gimpparamspecs.[ch] (struct GimpParamSpecString)
	(gimp_param_spec_string): added "gboolean non_empty" to require
	the string being non-empty. Changed validation accordingly.
	Also fixed validation for static strings (we were happily
	freeing and modifying them before).

	* app/xcf/xcf.c: filenames should be non-empty.
	* app/pdb/gimp-pdb-compat.c: compat strings shouldn't.

	* tools/pdbgen/app.pl: add support for $arg->{non_empty} and
	changed generation of calls to gimp_param_spec_string().

	* tools/pdbgen/pdb/brush_select.pdb
	* tools/pdbgen/pdb/edit.pdb
	* tools/pdbgen/pdb/vectors.pdb
	* tools/pdbgen/pdb/plug_in.pdb
	* tools/pdbgen/pdb/gradient.pdb
	* tools/pdbgen/pdb/palette_select.pdb
	* tools/pdbgen/pdb/palette.pdb
	* tools/pdbgen/pdb/fileops.pdb
	* tools/pdbgen/pdb/progress.pdb
	* tools/pdbgen/pdb/procedural_db.pdb
	* tools/pdbgen/pdb/font_select.pdb
	* tools/pdbgen/pdb/pattern_select.pdb
	* tools/pdbgen/pdb/unit.pdb
	* tools/pdbgen/pdb/brush.pdb
	* tools/pdbgen/pdb/gradient_select.pdb
	* tools/pdbgen/pdb/buffer.pdb: require non-empty strings for data
	object names, procedure names, unit strings, PDB data identifiers
	and buffer names. Removed some manual strlen() checks, all other
	places just got better error reporting for free (proper validation
	error instead of unspecific execution error).

	* app/pdb/*_cmds.c: regenerated.


svn path=/trunk/; revision=22329
This commit is contained in:
Michael Natterer 2007-04-25 14:23:05 +00:00 committed by Michael Natterer
parent 7bf61525ad
commit d6fd55064b
57 changed files with 467 additions and 433 deletions

View file

@ -1,3 +1,40 @@
2007-04-25 Michael Natterer <mitch@gimp.org>
* app/core/gimpparamspecs.[ch] (struct GimpParamSpecString)
(gimp_param_spec_string): added "gboolean non_empty" to require
the string being non-empty. Changed validation accordingly.
Also fixed validation for static strings (we were happily
freeing and modifying them before).
* app/xcf/xcf.c: filenames should be non-empty.
* app/pdb/gimp-pdb-compat.c: compat strings shouldn't.
* tools/pdbgen/app.pl: add support for $arg->{non_empty} and
changed generation of calls to gimp_param_spec_string().
* tools/pdbgen/pdb/brush_select.pdb
* tools/pdbgen/pdb/edit.pdb
* tools/pdbgen/pdb/vectors.pdb
* tools/pdbgen/pdb/plug_in.pdb
* tools/pdbgen/pdb/gradient.pdb
* tools/pdbgen/pdb/palette_select.pdb
* tools/pdbgen/pdb/palette.pdb
* tools/pdbgen/pdb/fileops.pdb
* tools/pdbgen/pdb/progress.pdb
* tools/pdbgen/pdb/procedural_db.pdb
* tools/pdbgen/pdb/font_select.pdb
* tools/pdbgen/pdb/pattern_select.pdb
* tools/pdbgen/pdb/unit.pdb
* tools/pdbgen/pdb/brush.pdb
* tools/pdbgen/pdb/gradient_select.pdb
* tools/pdbgen/pdb/buffer.pdb: require non-empty strings for data
object names, procedure names, unit strings, PDB data identifiers
and buffer names. Removed some manual strlen() checks, all other
places just got better error reporting for free (proper validation
error instead of unspecific execution error).
* app/pdb/*_cmds.c: regenerated.
2007-04-25 Michael Natterer <mitch@gimp.org> 2007-04-25 Michael Natterer <mitch@gimp.org>
* plug-ins/common/gif.c * plug-ins/common/gif.c

View file

@ -351,6 +351,7 @@ gimp_param_string_init (GParamSpec *pspec)
sspec->no_validate = FALSE; sspec->no_validate = FALSE;
sspec->null_ok = FALSE; sspec->null_ok = FALSE;
sspec->non_empty = FALSE;
} }
static gboolean static gboolean
@ -364,10 +365,28 @@ gimp_param_string_validate (GParamSpec *pspec,
{ {
gchar *s; gchar *s;
if (sspec->non_empty && ! string[0])
{
if (!(value->data[1].v_uint & G_VALUE_NOCOPY_CONTENTS))
g_free (string);
else
value->data[1].v_uint &= ~G_VALUE_NOCOPY_CONTENTS;
value->data[0].v_pointer = g_strdup ("none");
return TRUE;
}
if (! sspec->no_validate && if (! sspec->no_validate &&
! g_utf8_validate (string, -1, (const gchar **) &s)) ! g_utf8_validate (string, -1, (const gchar **) &s))
{ {
for (; *s; s++) if (value->data[1].v_uint & G_VALUE_NOCOPY_CONTENTS)
{
value->data[0].v_pointer = g_strdup (string);
value->data[1].v_uint &= ~G_VALUE_NOCOPY_CONTENTS;
string = value->data[0].v_pointer;
}
for (s = string; *s; s++)
if (*s < ' ') if (*s < ' ')
*s = '?'; *s = '?';
@ -376,9 +395,16 @@ gimp_param_string_validate (GParamSpec *pspec,
} }
else if (! sspec->null_ok) else if (! sspec->null_ok)
{ {
value->data[1].v_uint &= ~G_VALUE_NOCOPY_CONTENTS;
value->data[0].v_pointer = g_strdup (""); value->data[0].v_pointer = g_strdup ("");
return TRUE; return TRUE;
} }
else if (sspec->non_empty)
{
value->data[1].v_uint &= ~G_VALUE_NOCOPY_CONTENTS;
value->data[0].v_pointer = g_strdup ("none");
return TRUE;
}
return FALSE; return FALSE;
} }
@ -389,11 +415,14 @@ gimp_param_spec_string (const gchar *name,
const gchar *blurb, const gchar *blurb,
gboolean no_validate, gboolean no_validate,
gboolean null_ok, gboolean null_ok,
gboolean non_empty,
const gchar *default_value, const gchar *default_value,
GParamFlags flags) GParamFlags flags)
{ {
GimpParamSpecString *sspec; GimpParamSpecString *sspec;
g_return_val_if_fail (! (null_ok && non_empty), NULL);
sspec = g_param_spec_internal (GIMP_TYPE_PARAM_STRING, sspec = g_param_spec_internal (GIMP_TYPE_PARAM_STRING,
name, nick, blurb, flags); name, nick, blurb, flags);
@ -404,6 +433,7 @@ gimp_param_spec_string (const gchar *name,
sspec->no_validate = no_validate ? TRUE : FALSE; sspec->no_validate = no_validate ? TRUE : FALSE;
sspec->null_ok = null_ok ? TRUE : FALSE; sspec->null_ok = null_ok ? TRUE : FALSE;
sspec->non_empty = non_empty ? TRUE : FALSE;
} }
return G_PARAM_SPEC (sspec); return G_PARAM_SPEC (sspec);

View file

@ -153,6 +153,7 @@ struct _GimpParamSpecString
guint no_validate : 1; guint no_validate : 1;
guint null_ok : 1; guint null_ok : 1;
guint non_empty : 1;
}; };
GType gimp_param_string_get_type (void) G_GNUC_CONST; GType gimp_param_string_get_type (void) G_GNUC_CONST;
@ -162,6 +163,7 @@ GParamSpec * gimp_param_spec_string (const gchar *name,
const gchar *blurb, const gchar *blurb,
gboolean no_validate, gboolean no_validate,
gboolean null_ok, gboolean null_ok,
gboolean non_empty,
const gchar *default_value, const gchar *default_value,
GParamFlags flags); GParamFlags flags);

View file

@ -55,8 +55,6 @@ brush_new_invoker (GimpProcedure *procedure,
name = g_value_get_string (&args->values[0]); name = g_value_get_string (&args->values[0]);
if (success) if (success)
{
if (strlen (name))
{ {
GimpData *data = gimp_data_factory_data_new (gimp->brush_factory, name); GimpData *data = gimp_data_factory_data_new (gimp->brush_factory, name);
@ -65,9 +63,6 @@ brush_new_invoker (GimpProcedure *procedure,
else else
success = FALSE; success = FALSE;
} }
else
success = FALSE;
}
return_vals = gimp_procedure_get_return_values (procedure, success); return_vals = gimp_procedure_get_return_values (procedure, success);
@ -173,7 +168,7 @@ brush_rename_invoker (GimpProcedure *procedure,
GimpBrush *brush = (GimpBrush *) GimpBrush *brush = (GimpBrush *)
gimp_container_get_child_by_name (gimp->brush_factory->container, name); gimp_container_get_child_by_name (gimp->brush_factory->container, name);
if (brush && GIMP_DATA (brush)->writable && strlen (new_name)) if (brush && GIMP_DATA (brush)->writable)
{ {
gimp_object_set_name (GIMP_OBJECT (brush), new_name); gimp_object_set_name (GIMP_OBJECT (brush), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush))); actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));
@ -888,14 +883,14 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The requested name of the new brush", "The requested name of the new brush",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("actual-name", gimp_param_spec_string ("actual-name",
"actual name", "actual name",
"The actual new brush name", "The actual new brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -918,14 +913,14 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("copy-name", gimp_param_spec_string ("copy-name",
"copy name", "copy name",
"The name of the brush's copy", "The name of the brush's copy",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -948,7 +943,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -977,21 +972,21 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("new-name", gimp_param_spec_string ("new-name",
"new name", "new name",
"The new name of the brush", "The new name of the brush",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("actual-name", gimp_param_spec_string ("actual-name",
"actual name", "actual name",
"The actual new name of the brush", "The actual new name of the brush",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1014,7 +1009,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1037,7 +1032,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1066,7 +1061,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1113,7 +1108,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1182,7 +1177,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1211,7 +1206,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1240,7 +1235,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1270,7 +1265,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1299,7 +1294,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1328,7 +1323,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1357,7 +1352,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1386,7 +1381,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1415,7 +1410,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1452,7 +1447,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1487,7 +1482,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1522,7 +1517,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1557,7 +1552,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1592,7 +1587,7 @@ register_brush_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,

View file

@ -155,21 +155,21 @@ register_brush_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("brush-callback", gimp_param_spec_string ("brush-callback",
"brush callback", "brush callback",
"The callback PDB proc to call when brush selection is made", "The callback PDB proc to call when brush selection is made",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("popup-title", gimp_param_spec_string ("popup-title",
"popup title", "popup title",
"Title of the brush selection dialog", "Title of the brush selection dialog",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("initial-brush", gimp_param_spec_string ("initial-brush",
"initial brush", "initial brush",
"The name of the brush to set as the first selected", "The name of the brush to set as the first selected",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -211,7 +211,7 @@ register_brush_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("brush-callback", gimp_param_spec_string ("brush-callback",
"brush callback", "brush callback",
"The name of the callback registered for this pop-up", "The name of the callback registered for this pop-up",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -234,14 +234,14 @@ register_brush_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("brush-callback", gimp_param_spec_string ("brush-callback",
"brush callback", "brush callback",
"The name of the callback registered for this pop-up", "The name of the callback registered for this pop-up",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("brush-name", gimp_param_spec_string ("brush-name",
"brush name", "brush name",
"The name of the brush to set as selected", "The name of the brush to set as selected",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,

View file

@ -273,7 +273,7 @@ register_brushes_procs (GimpPDB *pdb)
gimp_param_spec_string ("filter", gimp_param_spec_string ("filter",
"filter", "filter",
"An optional regular expression used to filter the list", "An optional regular expression used to filter the list",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -307,7 +307,7 @@ register_brushes_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -392,14 +392,14 @@ register_brushes_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The brush name (\"\" means current active brush)", "The brush name (\"\" means current active brush)",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("actual-name", gimp_param_spec_string ("actual-name",
"actual name", "actual name",
"The brush name", "The brush name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -91,7 +91,7 @@ buffer_rename_invoker (GimpProcedure *procedure,
GimpBuffer *buffer = (GimpBuffer *) GimpBuffer *buffer = (GimpBuffer *)
gimp_container_get_child_by_name (gimp->named_buffers, buffer_name); gimp_container_get_child_by_name (gimp->named_buffers, buffer_name);
if (buffer && strlen (new_name)) if (buffer)
{ {
gimp_object_set_name (GIMP_OBJECT (buffer), new_name); gimp_object_set_name (GIMP_OBJECT (buffer), new_name);
real_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (buffer))); real_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (buffer)));
@ -288,7 +288,7 @@ register_buffer_procs (GimpPDB *pdb)
gimp_param_spec_string ("filter", gimp_param_spec_string ("filter",
"filter", "filter",
"An optional regular expression used to filter the list", "An optional regular expression used to filter the list",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -322,21 +322,21 @@ register_buffer_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The buffer name", "The buffer name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("new-name", gimp_param_spec_string ("new-name",
"new name", "new name",
"The buffer's new name", "The buffer's new name",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("real-name", gimp_param_spec_string ("real-name",
"real name", "real name",
"The real name given to the buffer", "The real name given to the buffer",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -359,7 +359,7 @@ register_buffer_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The buffer name", "The buffer name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -382,7 +382,7 @@ register_buffer_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The buffer name", "The buffer name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -411,7 +411,7 @@ register_buffer_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The buffer name", "The buffer name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -440,7 +440,7 @@ register_buffer_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The buffer name", "The buffer name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -469,7 +469,7 @@ register_buffer_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The buffer name", "The buffer name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -370,7 +370,7 @@ register_channel_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The channel name", "The channel name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -425,7 +425,7 @@ register_channel_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The channel name", "The channel name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -621,7 +621,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the active paint method", "The name of the active paint method",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -644,7 +644,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the paint method", "The name of the paint method",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -881,7 +881,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the active brush", "The name of the active brush",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -904,7 +904,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the brush", "The name of the brush",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -927,7 +927,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the active pattern", "The name of the active pattern",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -950,7 +950,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the pattern", "The name of the pattern",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -973,7 +973,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the active gradient", "The name of the active gradient",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -996,7 +996,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the gradient", "The name of the gradient",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1019,7 +1019,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the active palette", "The name of the active palette",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1042,7 +1042,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the palette", "The name of the palette",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1065,7 +1065,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the active font", "The name of the active font",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1088,7 +1088,7 @@ register_context_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the font", "The name of the font",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -275,7 +275,7 @@ register_convert_procs (GimpPDB *pdb)
gimp_param_spec_string ("palette", gimp_param_spec_string ("palette",
"palette", "palette",
"The name of the custom palette to use, ignored unless (palette_type == GIMP_CUSTOM_PALETTE)", "The name of the custom palette to use, ignored unless (palette_type == GIMP_CUSTOM_PALETTE)",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -1696,7 +1696,7 @@ register_drawable_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The drawable name", "The drawable name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1725,7 +1725,7 @@ register_drawable_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The new drawable name", "The new drawable name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -227,7 +227,7 @@ edit_named_cut_invoker (GimpProcedure *procedure,
if (success) if (success)
{ {
if (strlen (buffer_name) && gimp_item_is_attached (GIMP_ITEM (drawable))) if (gimp_item_is_attached (GIMP_ITEM (drawable)))
{ {
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable)); GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
@ -269,7 +269,7 @@ edit_named_copy_invoker (GimpProcedure *procedure,
if (success) if (success)
{ {
if (strlen (buffer_name) && gimp_item_is_attached (GIMP_ITEM (drawable))) if (gimp_item_is_attached (GIMP_ITEM (drawable)))
{ {
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable)); GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
@ -310,8 +310,6 @@ edit_named_copy_visible_invoker (GimpProcedure *procedure,
buffer_name = g_value_get_string (&args->values[1]); buffer_name = g_value_get_string (&args->values[1]);
if (success) if (success)
{
if (strlen (buffer_name))
{ {
real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name, real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name,
context); context);
@ -321,9 +319,6 @@ edit_named_copy_visible_invoker (GimpProcedure *procedure,
else else
success = FALSE; success = FALSE;
} }
else
success = FALSE;
}
return_vals = gimp_procedure_get_return_values (procedure, success); return_vals = gimp_procedure_get_return_values (procedure, success);
@ -888,14 +883,14 @@ register_edit_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The name of the buffer to create", "The name of the buffer to create",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("real-name", gimp_param_spec_string ("real-name",
"real name", "real name",
"The real name given to the buffer, or NULL if the selection contained only transparent pixels", "The real name given to the buffer, or NULL if the selection contained only transparent pixels",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -924,14 +919,14 @@ register_edit_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The name of the buffer to create", "The name of the buffer to create",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("real-name", gimp_param_spec_string ("real-name",
"real name", "real name",
"The real name given to the buffer, or NULL if the selection contained only transparent pixels", "The real name given to the buffer, or NULL if the selection contained only transparent pixels",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -960,14 +955,14 @@ register_edit_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The name of the buffer to create", "The name of the buffer to create",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("real-name", gimp_param_spec_string ("real-name",
"real name", "real name",
"The real name given to the buffer", "The real name given to the buffer",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -996,7 +991,7 @@ register_edit_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The name of the buffer to paste", "The name of the buffer to paste",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1031,7 +1026,7 @@ register_edit_procs (GimpPDB *pdb)
gimp_param_spec_string ("buffer-name", gimp_param_spec_string ("buffer-name",
"buffer name", "buffer name",
"The name of the buffer to paste", "The name of the buffer to paste",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -537,14 +537,14 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The name of the file to load", "The name of the file to load",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("raw-filename", gimp_param_spec_string ("raw-filename",
"raw filename", "raw filename",
"The name as entered by the user", "The name as entered by the user",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -588,7 +588,7 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The name of the file to load", "The name of the file to load",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -632,7 +632,7 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The name of the file to load", "The name of the file to load",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -685,14 +685,14 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The name of the file to save the image in", "The name of the file to save the image in",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("raw-filename", gimp_param_spec_string ("raw-filename",
"raw filename", "raw filename",
"The name as entered by the user", "The name as entered by the user",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -715,7 +715,7 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The name of the file that owns the thumbnail to load", "The name of the file that owns the thumbnail to load",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -767,7 +767,7 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The name of the file the thumbnail belongs to", "The name of the file the thumbnail belongs to",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -790,14 +790,14 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("extension", gimp_param_spec_string ("extension",
"extension", "extension",
"The extension the file will have", "The extension the file will have",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The new temp filename", "The new temp filename",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -820,28 +820,28 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("procedure-name", gimp_param_spec_string ("procedure-name",
"procedure name", "procedure name",
"The name of the procedure to be used for loading", "The name of the procedure to be used for loading",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("extensions", gimp_param_spec_string ("extensions",
"extensions", "extensions",
"comma separated list of extensions this handler can load (i.e. \"jpg,jpeg\")", "comma separated list of extensions this handler can load (i.e. \"jpg,jpeg\")",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE)); GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("prefixes", gimp_param_spec_string ("prefixes",
"prefixes", "prefixes",
"comma separated list of prefixes this handler can load (i.e. \"http:,ftp:\")", "comma separated list of prefixes this handler can load (i.e. \"http:,ftp:\")",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE)); GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("magics", gimp_param_spec_string ("magics",
"magics", "magics",
"comma separated list of magic file information this handler can load (i.e. \"0,string,GIF\")", "comma separated list of magic file information this handler can load (i.e. \"0,string,GIF\")",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE)); GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -864,21 +864,21 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("procedure-name", gimp_param_spec_string ("procedure-name",
"procedure name", "procedure name",
"The name of the procedure to be used for loading", "The name of the procedure to be used for loading",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("extensions", gimp_param_spec_string ("extensions",
"extensions", "extensions",
"comma separated list of extensions this handler can load (i.e. \"jpg,jpeg\")", "comma separated list of extensions this handler can load (i.e. \"jpg,jpeg\")",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE)); GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("prefixes", gimp_param_spec_string ("prefixes",
"prefixes", "prefixes",
"comma separated list of prefixes this handler can load (i.e. \"http:,ftp:\")", "comma separated list of prefixes this handler can load (i.e. \"http:,ftp:\")",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE)); GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -901,21 +901,21 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("procedure-name", gimp_param_spec_string ("procedure-name",
"procedure name", "procedure name",
"The name of the procedure to be used for saving", "The name of the procedure to be used for saving",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("extensions", gimp_param_spec_string ("extensions",
"extensions", "extensions",
"comma separated list of extensions this handler can save (i.e. \"jpg,jpeg\")", "comma separated list of extensions this handler can save (i.e. \"jpg,jpeg\")",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE)); GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("prefixes", gimp_param_spec_string ("prefixes",
"prefixes", "prefixes",
"comma separated list of prefixes this handler can save (i.e. \"http:,ftp:\")", "comma separated list of prefixes this handler can save (i.e. \"http:,ftp:\")",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE)); GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -938,14 +938,14 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("procedure-name", gimp_param_spec_string ("procedure-name",
"procedure name", "procedure name",
"The name of the procedure to associate a MIME type with.", "The name of the procedure to associate a MIME type with.",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("mime-type", gimp_param_spec_string ("mime-type",
"mime type", "mime type",
"A single MIME type, like for example \"image/jpeg\".", "A single MIME type, like for example \"image/jpeg\".",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -968,14 +968,14 @@ register_fileops_procs (GimpPDB *pdb)
gimp_param_spec_string ("load-proc", gimp_param_spec_string ("load-proc",
"load proc", "load proc",
"The name of the procedure the thumbnail loader with.", "The name of the procedure the thumbnail loader with.",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("thumb-proc", gimp_param_spec_string ("thumb-proc",
"thumb proc", "thumb proc",
"The name of the thumbnail load procedure.", "The name of the thumbnail load procedure.",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -133,21 +133,21 @@ register_font_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("font-callback", gimp_param_spec_string ("font-callback",
"font callback", "font callback",
"The callback PDB proc to call when font selection is made", "The callback PDB proc to call when font selection is made",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("popup-title", gimp_param_spec_string ("popup-title",
"popup title", "popup title",
"Title of the font selection dialog", "Title of the font selection dialog",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("initial-font", gimp_param_spec_string ("initial-font",
"initial font", "initial font",
"The name of the font to set as the first selected", "The name of the font to set as the first selected",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -170,7 +170,7 @@ register_font_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("font-callback", gimp_param_spec_string ("font-callback",
"font callback", "font callback",
"The name of the callback registered for this pop-up", "The name of the callback registered for this pop-up",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -193,14 +193,14 @@ register_font_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("font-callback", gimp_param_spec_string ("font-callback",
"font callback", "font callback",
"The name of the callback registered for this pop-up", "The name of the callback registered for this pop-up",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("font-name", gimp_param_spec_string ("font-name",
"font name", "font name",
"The name of the font to set as selected", "The name of the font to set as selected",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -117,7 +117,7 @@ register_fonts_procs (GimpPDB *pdb)
gimp_param_spec_string ("filter", gimp_param_spec_string ("filter",
"filter", "filter",
"An optional regular expression used to filter the list", "An optional regular expression used to filter the list",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -73,7 +73,7 @@ gimp_pdb_compat_param_spec (Gimp *gimp,
case GIMP_PDB_STRING: case GIMP_PDB_STRING:
pspec = gimp_param_spec_string (name, name, desc, pspec = gimp_param_spec_string (name, name, desc,
TRUE, TRUE, TRUE, TRUE, FALSE,
NULL, NULL,
G_PARAM_READWRITE); G_PARAM_READWRITE);
break; break;

View file

@ -239,14 +239,14 @@ register_gimprc_procs (GimpPDB *pdb)
gimp_param_spec_string ("token", gimp_param_spec_string ("token",
"token", "token",
"The token to query for", "The token to query for",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("value", gimp_param_spec_string ("value",
"value", "value",
"The value associated with the queried token", "The value associated with the queried token",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -269,14 +269,14 @@ register_gimprc_procs (GimpPDB *pdb)
gimp_param_spec_string ("token", gimp_param_spec_string ("token",
"token", "token",
"The token to add or modify", "The token to add or modify",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("value", gimp_param_spec_string ("value",
"value", "value",
"The value to set the token to", "The value to set the token to",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -299,7 +299,7 @@ register_gimprc_procs (GimpPDB *pdb)
gimp_param_spec_string ("comment", gimp_param_spec_string ("comment",
"comment", "comment",
"Default image comment", "Default image comment",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -374,7 +374,7 @@ register_gimprc_procs (GimpPDB *pdb)
gimp_param_spec_string ("theme-dir", gimp_param_spec_string ("theme-dir",
"theme dir", "theme dir",
"The GUI theme dir", "The GUI theme dir",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -397,7 +397,7 @@ register_gimprc_procs (GimpPDB *pdb)
gimp_param_spec_string ("config", gimp_param_spec_string ("config",
"config", "config",
"Serialized color management configuration", "Serialized color management configuration",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -420,7 +420,7 @@ register_gimprc_procs (GimpPDB *pdb)
gimp_param_spec_string ("load-inhibit", gimp_param_spec_string ("load-inhibit",
"load inhibit", "load inhibit",
"The list of modules", "The list of modules",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -104,8 +104,6 @@ gradient_new_invoker (GimpProcedure *procedure,
name = g_value_get_string (&args->values[0]); name = g_value_get_string (&args->values[0]);
if (success) if (success)
{
if (strlen (name))
{ {
GimpData *data = gimp_data_factory_data_new (gimp->gradient_factory, name); GimpData *data = gimp_data_factory_data_new (gimp->gradient_factory, name);
@ -114,9 +112,6 @@ gradient_new_invoker (GimpProcedure *procedure,
else else
success = FALSE; success = FALSE;
} }
else
success = FALSE;
}
return_vals = gimp_procedure_get_return_values (procedure, success); return_vals = gimp_procedure_get_return_values (procedure, success);
@ -222,7 +217,7 @@ gradient_rename_invoker (GimpProcedure *procedure,
GimpGradient *gradient = (GimpGradient *) GimpGradient *gradient = (GimpGradient *)
gimp_container_get_child_by_name (gimp->gradient_factory->container, name); gimp_container_get_child_by_name (gimp->gradient_factory->container, name);
if (gradient && GIMP_DATA (gradient)->writable && strlen (new_name)) if (gradient && GIMP_DATA (gradient)->writable)
{ {
gimp_object_set_name (GIMP_OBJECT (gradient), new_name); gimp_object_set_name (GIMP_OBJECT (gradient), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient))); actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient)));
@ -1356,14 +1351,14 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The requested name of the new gradient", "The requested name of the new gradient",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("actual-name", gimp_param_spec_string ("actual-name",
"actual name", "actual name",
"The actual new gradient name", "The actual new gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1386,14 +1381,14 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("copy-name", gimp_param_spec_string ("copy-name",
"copy name", "copy name",
"The name of the gradient's copy", "The name of the gradient's copy",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1416,7 +1411,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1445,21 +1440,21 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("new-name", gimp_param_spec_string ("new-name",
"new name", "new name",
"The new name of the gradient", "The new name of the gradient",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("actual-name", gimp_param_spec_string ("actual-name",
"actual name", "actual name",
"The actual new name of the gradient", "The actual new name of the gradient",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1482,7 +1477,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1505,7 +1500,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1551,7 +1546,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1602,7 +1597,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1644,7 +1639,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1686,7 +1681,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1728,7 +1723,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1770,7 +1765,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1805,7 +1800,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1846,7 +1841,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1881,7 +1876,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1922,7 +1917,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1957,7 +1952,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1998,7 +1993,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2034,7 +2029,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2070,7 +2065,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2112,7 +2107,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2154,7 +2149,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2189,7 +2184,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2230,7 +2225,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2265,7 +2260,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2306,7 +2301,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2341,7 +2336,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2376,7 +2371,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2411,7 +2406,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2446,7 +2441,7 @@ register_gradient_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,

View file

@ -144,21 +144,21 @@ register_gradient_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("gradient-callback", gimp_param_spec_string ("gradient-callback",
"gradient callback", "gradient callback",
"The callback PDB proc to call when gradient selection is made", "The callback PDB proc to call when gradient selection is made",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("popup-title", gimp_param_spec_string ("popup-title",
"popup title", "popup title",
"Title of the gradient selection dialog", "Title of the gradient selection dialog",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("initial-gradient", gimp_param_spec_string ("initial-gradient",
"initial gradient", "initial gradient",
"The name of the gradient to set as the first selected", "The name of the gradient to set as the first selected",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -187,7 +187,7 @@ register_gradient_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("gradient-callback", gimp_param_spec_string ("gradient-callback",
"gradient callback", "gradient callback",
"The name of the callback registered for this pop-up", "The name of the callback registered for this pop-up",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -210,14 +210,14 @@ register_gradient_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("gradient-callback", gimp_param_spec_string ("gradient-callback",
"gradient callback", "gradient callback",
"The name of the callback registered for this pop-up", "The name of the callback registered for this pop-up",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("gradient-name", gimp_param_spec_string ("gradient-name",
"gradient name", "gradient name",
"The name of the gradient to set as selected", "The name of the gradient to set as selected",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -319,7 +319,7 @@ register_gradients_procs (GimpPDB *pdb)
gimp_param_spec_string ("filter", gimp_param_spec_string ("filter",
"filter", "filter",
"An optional regular expression used to filter the list", "An optional regular expression used to filter the list",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -436,7 +436,7 @@ register_gradients_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The gradient name (\"\" means current active gradient)", "The gradient name (\"\" means current active gradient)",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -455,7 +455,7 @@ register_gradients_procs (GimpPDB *pdb)
gimp_param_spec_string ("actual-name", gimp_param_spec_string ("actual-name",
"actual name", "actual name",
"The gradient name", "The gradient name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -88,14 +88,14 @@ register_help_procs (GimpPDB *pdb)
gimp_param_spec_string ("help-domain", gimp_param_spec_string ("help-domain",
"help domain", "help domain",
"The help domain in which help_id is registered", "The help domain in which help_id is registered",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("help-id", gimp_param_spec_string ("help-id",
"help id", "help id",
"The help page's ID", "The help page's ID",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -4325,7 +4325,7 @@ register_image_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The filename", "The filename",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -4354,7 +4354,7 @@ register_image_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The new image filename", "The new image filename",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -4383,7 +4383,7 @@ register_image_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name", "The name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -874,7 +874,7 @@ register_layer_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The layer name", "The layer name",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,

View file

@ -122,7 +122,7 @@ register_message_procs (GimpPDB *pdb)
gimp_param_spec_string ("message", gimp_param_spec_string ("message",
"message", "message",
"Message to display in the dialog", "Message to display in the dialog",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -125,7 +125,7 @@ register_misc_procs (GimpPDB *pdb)
gimp_param_spec_string ("version", gimp_param_spec_string ("version",
"version", "version",
"GIMP version number", "GIMP version number",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -55,8 +55,6 @@ palette_new_invoker (GimpProcedure *procedure,
name = g_value_get_string (&args->values[0]); name = g_value_get_string (&args->values[0]);
if (success) if (success)
{
if (strlen (name))
{ {
GimpData *data = gimp_data_factory_data_new (gimp->palette_factory, name); GimpData *data = gimp_data_factory_data_new (gimp->palette_factory, name);
@ -65,9 +63,6 @@ palette_new_invoker (GimpProcedure *procedure,
else else
success = FALSE; success = FALSE;
} }
else
success = FALSE;
}
return_vals = gimp_procedure_get_return_values (procedure, success); return_vals = gimp_procedure_get_return_values (procedure, success);
@ -140,7 +135,7 @@ palette_rename_invoker (GimpProcedure *procedure,
GimpPalette *palette = (GimpPalette *) GimpPalette *palette = (GimpPalette *)
gimp_container_get_child_by_name (gimp->palette_factory->container, name); gimp_container_get_child_by_name (gimp->palette_factory->container, name);
if (palette && GIMP_DATA (palette)->writable && strlen (new_name)) if (palette && GIMP_DATA (palette)->writable)
{ {
gimp_object_set_name (GIMP_OBJECT (palette), new_name); gimp_object_set_name (GIMP_OBJECT (palette), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette))); actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));
@ -595,14 +590,14 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The requested name of the new palette", "The requested name of the new palette",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("actual-name", gimp_param_spec_string ("actual-name",
"actual name", "actual name",
"The actual new palette name", "The actual new palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -625,14 +620,14 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("copy-name", gimp_param_spec_string ("copy-name",
"copy name", "copy name",
"The name of the palette's copy", "The name of the palette's copy",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -655,21 +650,21 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("new-name", gimp_param_spec_string ("new-name",
"new name", "new name",
"The new name of the palette", "The new name of the palette",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("actual-name", gimp_param_spec_string ("actual-name",
"actual name", "actual name",
"The actual new name of the palette", "The actual new name of the palette",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -692,7 +687,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -715,7 +710,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -744,7 +739,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -773,7 +768,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -802,7 +797,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -831,14 +826,14 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("entry-name", gimp_param_spec_string ("entry-name",
"entry name", "entry name",
"The name of the entry", "The name of the entry",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -874,7 +869,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -903,7 +898,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -939,7 +934,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -975,7 +970,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -988,7 +983,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("entry-name", gimp_param_spec_string ("entry-name",
"entry name", "entry name",
"The name requested", "The name requested",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1011,7 +1006,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1024,7 +1019,7 @@ register_palette_procs (GimpPDB *pdb)
gimp_param_spec_string ("entry-name", gimp_param_spec_string ("entry-name",
"entry name", "entry name",
"The new name", "The new name",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -137,21 +137,21 @@ register_palette_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("palette-callback", gimp_param_spec_string ("palette-callback",
"palette callback", "palette callback",
"The callback PDB proc to call when palette selection is made", "The callback PDB proc to call when palette selection is made",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("popup-title", gimp_param_spec_string ("popup-title",
"popup title", "popup title",
"Title of the palette selection dialog", "Title of the palette selection dialog",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("initial-palette", gimp_param_spec_string ("initial-palette",
"initial palette", "initial palette",
"The name of the palette to set as the first selected", "The name of the palette to set as the first selected",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -174,7 +174,7 @@ register_palette_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("palette-callback", gimp_param_spec_string ("palette-callback",
"palette callback", "palette callback",
"The name of the callback registered for this pop-up", "The name of the callback registered for this pop-up",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -197,14 +197,14 @@ register_palette_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("palette-callback", gimp_param_spec_string ("palette-callback",
"palette callback", "palette callback",
"The name of the callback registered for this pop-up", "The name of the callback registered for this pop-up",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("palette-name", gimp_param_spec_string ("palette-name",
"palette name", "palette name",
"The name of the palette to set as selected", "The name of the palette to set as selected",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -217,7 +217,7 @@ register_palettes_procs (GimpPDB *pdb)
gimp_param_spec_string ("filter", gimp_param_spec_string ("filter",
"filter", "filter",
"An optional regular expression used to filter the list", "An optional regular expression used to filter the list",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -251,7 +251,7 @@ register_palettes_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name", "The palette name",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -280,7 +280,7 @@ register_palettes_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The palette name (\"\" means currently active palette)", "The palette name (\"\" means currently active palette)",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -293,7 +293,7 @@ register_palettes_procs (GimpPDB *pdb)
gimp_param_spec_string ("actual-name", gimp_param_spec_string ("actual-name",
"actual name", "actual name",
"The palette name", "The palette name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -474,7 +474,7 @@ register_parasite_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the parasite to find", "The name of the parasite to find",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -523,7 +523,7 @@ register_parasite_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the parasite to detach.", "The name of the parasite to detach.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -579,7 +579,7 @@ register_parasite_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the parasite to find", "The name of the parasite to find",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -640,7 +640,7 @@ register_parasite_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the parasite to detach from an image.", "The name of the parasite to detach from an image.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -702,7 +702,7 @@ register_parasite_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the parasite to find", "The name of the parasite to find",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -763,7 +763,7 @@ register_parasite_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the parasite to detach from a drawable.", "The name of the parasite to detach from a drawable.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -825,7 +825,7 @@ register_parasite_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the parasite to find", "The name of the parasite to find",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -886,7 +886,7 @@ register_parasite_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the parasite to detach from a vectors object.", "The name of the parasite to detach from a vectors object.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -712,7 +712,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the current path.", "The name of the current path.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -741,7 +741,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the path to make current.", "The name of the path to make current.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -770,7 +770,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the path to delete.", "The name of the path to delete.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -799,7 +799,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the path whose points should be listed.", "The name of the path whose points should be listed.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -851,7 +851,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the path to create. If it exists then a unique name will be created - query the list of paths if you want to make sure that the name of the path you create is unique. This will be set as the current path.", "The name of the path to create. If it exists then a unique name will be created - query the list of paths if you want to make sure that the name of the path you create is unique. This will be set as the current path.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -965,7 +965,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the path whose tattoo should be obtained.", "The name of the path whose tattoo should be obtained.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1000,7 +1000,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"the name of the path whose tattoo should be set", "the name of the path whose tattoo should be set",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1041,7 +1041,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the path with the specified tattoo.", "The name of the path with the specified tattoo.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1070,7 +1070,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the path whose locked status should be obtained.", "The name of the path whose locked status should be obtained.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1105,7 +1105,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"the name of the path whose locked status should be set", "the name of the path whose locked status should be set",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1140,7 +1140,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the path which should be made into selection.", "The name of the path which should be made into selection.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -1200,7 +1200,7 @@ register_paths_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The name of the SVG file to import.", "The name of the SVG file to import.",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,

View file

@ -155,7 +155,7 @@ register_pattern_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The pattern name.", "The pattern name.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -196,7 +196,7 @@ register_pattern_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The pattern name.", "The pattern name.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -137,21 +137,21 @@ register_pattern_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("pattern-callback", gimp_param_spec_string ("pattern-callback",
"pattern callback", "pattern callback",
"The callback PDB proc to call when pattern selection is made", "The callback PDB proc to call when pattern selection is made",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("popup-title", gimp_param_spec_string ("popup-title",
"popup title", "popup title",
"Title of the pattern selection dialog", "Title of the pattern selection dialog",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("initial-pattern", gimp_param_spec_string ("initial-pattern",
"initial pattern", "initial pattern",
"The name of the pattern to set as the first selected", "The name of the pattern to set as the first selected",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -174,7 +174,7 @@ register_pattern_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("pattern-callback", gimp_param_spec_string ("pattern-callback",
"pattern callback", "pattern callback",
"The name of the callback registered for this pop-up", "The name of the callback registered for this pop-up",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -197,14 +197,14 @@ register_pattern_select_procs (GimpPDB *pdb)
gimp_param_spec_string ("pattern-callback", gimp_param_spec_string ("pattern-callback",
"pattern callback", "pattern callback",
"The name of the callback registered for this pop-up", "The name of the callback registered for this pop-up",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("pattern-name", gimp_param_spec_string ("pattern-name",
"pattern name", "pattern name",
"The name of the pattern to set as selected", "The name of the pattern to set as selected",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -220,7 +220,7 @@ register_patterns_procs (GimpPDB *pdb)
gimp_param_spec_string ("filter", gimp_param_spec_string ("filter",
"filter", "filter",
"An optional regular expression used to filter the list", "An optional regular expression used to filter the list",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -254,7 +254,7 @@ register_patterns_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The pattern name", "The pattern name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -289,14 +289,14 @@ register_patterns_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The pattern name (\"\" means currently active pattern)", "The pattern name (\"\" means currently active pattern)",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("actual-name", gimp_param_spec_string ("actual-name",
"actual name", "actual name",
"The pattern name", "The pattern name",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -281,7 +281,7 @@ register_plug_in_procs (GimpPDB *pdb)
gimp_param_spec_string ("search-string", gimp_param_spec_string ("search-string",
"search string", "search string",
"If not an empty string then use this as a search pattern", "If not an empty string then use this as a search pattern",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE)); GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -370,14 +370,14 @@ register_plug_in_procs (GimpPDB *pdb)
gimp_param_spec_string ("domain-name", gimp_param_spec_string ("domain-name",
"domain name", "domain name",
"The name of the textdomain (must be unique)", "The name of the textdomain (must be unique)",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("domain-path", gimp_param_spec_string ("domain-path",
"domain path", "domain path",
"The absolute path to the compiled message catalog (may be NULL)", "The absolute path to the compiled message catalog (may be NULL)",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE)); GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -400,14 +400,14 @@ register_plug_in_procs (GimpPDB *pdb)
gimp_param_spec_string ("domain-name", gimp_param_spec_string ("domain-name",
"domain name", "domain name",
"The XML namespace of the plug-in's help pages", "The XML namespace of the plug-in's help pages",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("domain-uri", gimp_param_spec_string ("domain-uri",
"domain uri", "domain uri",
"The root URI of the plug-in's help pages", "The root URI of the plug-in's help pages",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -430,14 +430,14 @@ register_plug_in_procs (GimpPDB *pdb)
gimp_param_spec_string ("procedure-name", gimp_param_spec_string ("procedure-name",
"procedure name", "procedure name",
"The procedure for which to install the menu path", "The procedure for which to install the menu path",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("menu-path", gimp_param_spec_string ("menu-path",
"menu path", "menu path",
"The procedure's additional menu path", "The procedure's additional menu path",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -460,14 +460,14 @@ register_plug_in_procs (GimpPDB *pdb)
gimp_param_spec_string ("menu-path", gimp_param_spec_string ("menu-path",
"menu path", "menu path",
"The sub-menu's menu path", "The sub-menu's menu path",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("menu-name", gimp_param_spec_string ("menu-name",
"menu name", "menu name",
"The name of the sub-menu", "The name of the sub-menu",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -490,7 +490,7 @@ register_plug_in_procs (GimpPDB *pdb)
gimp_param_spec_string ("procedure-name", gimp_param_spec_string ("procedure-name",
"procedure name", "procedure name",
"The procedure for which to install the icon", "The procedure for which to install the icon",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,

View file

@ -431,7 +431,7 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("temp-name", gimp_param_spec_string ("temp-name",
"temp name", "temp name",
"A unique temporary name for a temporary PDB entry", "A unique temporary name for a temporary PDB entry",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -454,7 +454,7 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The dump filename", "The dump filename",
TRUE, FALSE, TRUE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -477,49 +477,49 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The regex for procedure name", "The regex for procedure name",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("blurb", gimp_param_spec_string ("blurb",
"blurb", "blurb",
"The regex for procedure blurb", "The regex for procedure blurb",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("help", gimp_param_spec_string ("help",
"help", "help",
"The regex for procedure help", "The regex for procedure help",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("author", gimp_param_spec_string ("author",
"author", "author",
"The regex for procedure author", "The regex for procedure author",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("copyright", gimp_param_spec_string ("copyright",
"copyright", "copyright",
"The regex for procedure copyright", "The regex for procedure copyright",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("date", gimp_param_spec_string ("date",
"date", "date",
"The regex for procedure date", "The regex for procedure date",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("proc-type", gimp_param_spec_string ("proc-type",
"proc type", "proc type",
"The regex for procedure type: { 'Internal GIMP procedure', 'GIMP Plug-In', 'GIMP Extension', 'Temporary Procedure' }", "The regex for procedure type: { 'Internal GIMP procedure', 'GIMP Plug-In', 'GIMP Extension', 'Temporary Procedure' }",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -553,42 +553,42 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("procedure-name", gimp_param_spec_string ("procedure-name",
"procedure name", "procedure name",
"The procedure name", "The procedure name",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("blurb", gimp_param_spec_string ("blurb",
"blurb", "blurb",
"A short blurb", "A short blurb",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("help", gimp_param_spec_string ("help",
"help", "help",
"Detailed procedure help", "Detailed procedure help",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("author", gimp_param_spec_string ("author",
"author", "author",
"Author(s) of the procedure", "Author(s) of the procedure",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("copyright", gimp_param_spec_string ("copyright",
"copyright", "copyright",
"The copyright", "The copyright",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("date", gimp_param_spec_string ("date",
"date", "date",
"Copyright date", "Copyright date",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -630,7 +630,7 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("procedure-name", gimp_param_spec_string ("procedure-name",
"procedure name", "procedure name",
"The procedure name", "The procedure name",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -652,14 +652,14 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("arg-name", gimp_param_spec_string ("arg-name",
"arg name", "arg name",
"The name of the argument", "The name of the argument",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("arg-desc", gimp_param_spec_string ("arg-desc",
"arg desc", "arg desc",
"A description of the argument", "A description of the argument",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -682,7 +682,7 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("procedure-name", gimp_param_spec_string ("procedure-name",
"procedure name", "procedure name",
"The procedure name", "The procedure name",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -704,14 +704,14 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("val-name", gimp_param_spec_string ("val-name",
"val name", "val name",
"The name of the return value", "The name of the return value",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
gimp_param_spec_string ("val-desc", gimp_param_spec_string ("val-desc",
"val desc", "val desc",
"A description of the return value", "A description of the return value",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -734,7 +734,7 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("identifier", gimp_param_spec_string ("identifier",
"identifier", "identifier",
"The identifier associated with data", "The identifier associated with data",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -768,7 +768,7 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("identifier", gimp_param_spec_string ("identifier",
"identifier", "identifier",
"The identifier associated with data", "The identifier associated with data",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -797,7 +797,7 @@ register_procedural_db_procs (GimpPDB *pdb)
gimp_param_spec_string ("identifier", gimp_param_spec_string ("identifier",
"identifier", "identifier",
"The identifier associated with data", "The identifier associated with data",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,

View file

@ -269,7 +269,7 @@ register_progress_procs (GimpPDB *pdb)
gimp_param_spec_string ("message", gimp_param_spec_string ("message",
"message", "message",
"Message to use in the progress dialog", "Message to use in the progress dialog",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -336,7 +336,7 @@ register_progress_procs (GimpPDB *pdb)
gimp_param_spec_string ("message", gimp_param_spec_string ("message",
"message", "message",
"Message to use in the progress dialog", "Message to use in the progress dialog",
FALSE, TRUE, FALSE, TRUE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -381,7 +381,7 @@ register_progress_procs (GimpPDB *pdb)
gimp_param_spec_string ("progress-callback", gimp_param_spec_string ("progress-callback",
"progress callback", "progress callback",
"The callback PDB proc to call", "The callback PDB proc to call",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -404,7 +404,7 @@ register_progress_procs (GimpPDB *pdb)
gimp_param_spec_string ("progress-callback", gimp_param_spec_string ("progress-callback",
"progress callback", "progress callback",
"The name of the callback registered for this progress", "The name of the callback registered for this progress",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -427,7 +427,7 @@ register_progress_procs (GimpPDB *pdb)
gimp_param_spec_string ("progress-callback", gimp_param_spec_string ("progress-callback",
"progress callback", "progress callback",
"The name of the callback registered for this progress", "The name of the callback registered for this progress",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -320,7 +320,7 @@ register_text_tool_procs (GimpPDB *pdb)
gimp_param_spec_string ("text", gimp_param_spec_string ("text",
"text", "text",
"The text to generate (in UTF-8 encoding)", "The text to generate (in UTF-8 encoding)",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -352,7 +352,7 @@ register_text_tool_procs (GimpPDB *pdb)
gimp_param_spec_string ("fontname", gimp_param_spec_string ("fontname",
"fontname", "fontname",
"The name of the font", "The name of the font",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -381,7 +381,7 @@ register_text_tool_procs (GimpPDB *pdb)
gimp_param_spec_string ("text", gimp_param_spec_string ("text",
"text", "text",
"The text to generate (in UTF-8 encoding)", "The text to generate (in UTF-8 encoding)",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -401,7 +401,7 @@ register_text_tool_procs (GimpPDB *pdb)
gimp_param_spec_string ("fontname", gimp_param_spec_string ("fontname",
"fontname", "fontname",
"The name of the font", "The name of the font",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -472,7 +472,7 @@ register_text_tool_procs (GimpPDB *pdb)
gimp_param_spec_string ("text", gimp_param_spec_string ("text",
"text", "text",
"The text to generate (in UTF-8 encoding)", "The text to generate (in UTF-8 encoding)",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -504,56 +504,56 @@ register_text_tool_procs (GimpPDB *pdb)
gimp_param_spec_string ("foundry", gimp_param_spec_string ("foundry",
"foundry", "foundry",
"The font foundry", "The font foundry",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("family", gimp_param_spec_string ("family",
"family", "family",
"The font family", "The font family",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("weight", gimp_param_spec_string ("weight",
"weight", "weight",
"The font weight", "The font weight",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("slant", gimp_param_spec_string ("slant",
"slant", "slant",
"The font slant", "The font slant",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("set-width", gimp_param_spec_string ("set-width",
"set width", "set width",
"The font set-width", "The font set-width",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("spacing", gimp_param_spec_string ("spacing",
"spacing", "spacing",
"The font spacing", "The font spacing",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("registry", gimp_param_spec_string ("registry",
"registry", "registry",
"The font registry", "The font registry",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("encoding", gimp_param_spec_string ("encoding",
"encoding", "encoding",
"The font encoding", "The font encoding",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -582,7 +582,7 @@ register_text_tool_procs (GimpPDB *pdb)
gimp_param_spec_string ("text", gimp_param_spec_string ("text",
"text", "text",
"The text to generate (in UTF-8 encoding)", "The text to generate (in UTF-8 encoding)",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -602,56 +602,56 @@ register_text_tool_procs (GimpPDB *pdb)
gimp_param_spec_string ("foundry", gimp_param_spec_string ("foundry",
"foundry", "foundry",
"The font foundry", "The font foundry",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("family", gimp_param_spec_string ("family",
"family", "family",
"The font family", "The font family",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("weight", gimp_param_spec_string ("weight",
"weight", "weight",
"The font weight", "The font weight",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("slant", gimp_param_spec_string ("slant",
"slant", "slant",
"The font slant", "The font slant",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("set-width", gimp_param_spec_string ("set-width",
"set width", "set width",
"The font set-width", "The font set-width",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("spacing", gimp_param_spec_string ("spacing",
"spacing", "spacing",
"The font spacing", "The font spacing",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("registry", gimp_param_spec_string ("registry",
"registry", "registry",
"The font registry", "The font registry",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("encoding", gimp_param_spec_string ("encoding",
"encoding", "encoding",
"The font encoding", "The font encoding",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -415,7 +415,7 @@ register_unit_procs (GimpPDB *pdb)
gimp_param_spec_string ("identifier", gimp_param_spec_string ("identifier",
"identifier", "identifier",
"The new unit's identifier", "The new unit's identifier",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -434,28 +434,28 @@ register_unit_procs (GimpPDB *pdb)
gimp_param_spec_string ("symbol", gimp_param_spec_string ("symbol",
"symbol", "symbol",
"The new unit's symbol", "The new unit's symbol",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("abbreviation", gimp_param_spec_string ("abbreviation",
"abbreviation", "abbreviation",
"The new unit's abbreviation", "The new unit's abbreviation",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("singular", gimp_param_spec_string ("singular",
"singular", "singular",
"The new unit's singular form", "The new unit's singular form",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("plural", gimp_param_spec_string ("plural",
"plural", "plural",
"The new unit's plural form", "The new unit's plural form",
FALSE, FALSE, FALSE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -554,7 +554,7 @@ register_unit_procs (GimpPDB *pdb)
gimp_param_spec_string ("identifier", gimp_param_spec_string ("identifier",
"identifier", "identifier",
"The unit's textual identifier", "The unit's textual identifier",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -645,7 +645,7 @@ register_unit_procs (GimpPDB *pdb)
gimp_param_spec_string ("symbol", gimp_param_spec_string ("symbol",
"symbol", "symbol",
"The unit's symbol", "The unit's symbol",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -676,7 +676,7 @@ register_unit_procs (GimpPDB *pdb)
gimp_param_spec_string ("abbreviation", gimp_param_spec_string ("abbreviation",
"abbreviation", "abbreviation",
"The unit's abbreviation", "The unit's abbreviation",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -707,7 +707,7 @@ register_unit_procs (GimpPDB *pdb)
gimp_param_spec_string ("singular", gimp_param_spec_string ("singular",
"singular", "singular",
"The unit's singular form", "The unit's singular form",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -738,7 +738,7 @@ register_unit_procs (GimpPDB *pdb)
gimp_param_spec_string ("plural", gimp_param_spec_string ("plural",
"plural", "plural",
"The unit's plural form", "The unit's plural form",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);

View file

@ -1307,7 +1307,7 @@ register_vectors_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"the name of the new vector object.", "the name of the new vector object.",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,
@ -1370,7 +1370,7 @@ register_vectors_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"The name of the vectors object", "The name of the vectors object",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -1399,7 +1399,7 @@ register_vectors_procs (GimpPDB *pdb)
gimp_param_spec_string ("name", gimp_param_spec_string ("name",
"name", "name",
"the new name of the path", "the new name of the path",
FALSE, FALSE, FALSE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_pdb_register_procedure (pdb, procedure); gimp_pdb_register_procedure (pdb, procedure);
@ -2472,7 +2472,7 @@ register_vectors_procs (GimpPDB *pdb)
gimp_param_spec_string ("filename", gimp_param_spec_string ("filename",
"filename", "filename",
"The name of the SVG file to import.", "The name of the SVG file to import.",
TRUE, FALSE, TRUE, FALSE, TRUE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
@ -2524,7 +2524,7 @@ register_vectors_procs (GimpPDB *pdb)
gimp_param_spec_string ("string", gimp_param_spec_string ("string",
"string", "string",
"A string that must be a complete and valid SVG document.", "A string that must be a complete and valid SVG document.",
TRUE, FALSE, TRUE, FALSE, FALSE,
NULL, NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,

View file

@ -141,14 +141,16 @@ xcf_init (Gimp *gimp)
"in the on-disk " "in the on-disk "
"character set and " "character set and "
"encoding", "encoding",
TRUE, FALSE, NULL, TRUE, FALSE, TRUE,
NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("raw-filename", gimp_param_spec_string ("raw-filename",
"Raw filename", "Raw filename",
"The basename of the " "The basename of the "
"file, in UTF-8", "file, in UTF-8",
FALSE, FALSE, NULL, FALSE, FALSE, TRUE,
NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_plug_in_manager_add_procedure (gimp->plug_in_manager, proc); gimp_plug_in_manager_add_procedure (gimp->plug_in_manager, proc);
g_object_unref (procedure); g_object_unref (procedure);
@ -195,14 +197,16 @@ xcf_init (Gimp *gimp)
"to load, in the " "to load, in the "
"on-disk character " "on-disk character "
"set and encoding", "set and encoding",
TRUE, FALSE, NULL, TRUE, FALSE, TRUE,
NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_argument (procedure, gimp_procedure_add_argument (procedure,
gimp_param_spec_string ("raw-filename", gimp_param_spec_string ("raw-filename",
"Raw filename", "Raw filename",
"The basename of the " "The basename of the "
"file, in UTF-8", "file, in UTF-8",
FALSE, FALSE, NULL, FALSE, FALSE, TRUE,
NULL,
GIMP_PARAM_READWRITE)); GIMP_PARAM_READWRITE));
gimp_procedure_add_return_value (procedure, gimp_procedure_add_return_value (procedure,

View file

@ -360,12 +360,13 @@ CODE
elsif ($pdbtype eq 'string') { elsif ($pdbtype eq 'string') {
$no_validate = exists $arg->{no_validate} ? 'TRUE' : 'FALSE'; $no_validate = exists $arg->{no_validate} ? 'TRUE' : 'FALSE';
$null_ok = exists $arg->{null_ok} ? 'TRUE' : 'FALSE'; $null_ok = exists $arg->{null_ok} ? 'TRUE' : 'FALSE';
$non_empty = exists $arg->{non_empty} ? 'TRUE' : 'FALSE';
$default = exists $arg->{default} ? $arg->{default} : NULL; $default = exists $arg->{default} ? $arg->{default} : NULL;
$pspec = <<CODE; $pspec = <<CODE;
gimp_param_spec_string ("$name", gimp_param_spec_string ("$name",
"$nick", "$nick",
"$blurb", "$blurb",
$no_validate, $null_ok, $no_validate, $null_ok, $non_empty,
$default, $default,
$flags) $flags)
CODE CODE

View file

@ -24,7 +24,7 @@ sub brush_new {
&mitch_pdb_misc('2004', '2.2'); &mitch_pdb_misc('2004', '2.2');
@inargs = ( @inargs = (
{ name => 'name', type => 'string', { name => 'name', type => 'string', non_empty => 1,
desc => 'The requested name of the new brush' } desc => 'The requested name of the new brush' }
); );
@ -35,8 +35,6 @@ sub brush_new {
%invoke = ( %invoke = (
code => <<'CODE' code => <<'CODE'
{
if (strlen (name))
{ {
GimpData *data = gimp_data_factory_data_new (gimp->brush_factory, name); GimpData *data = gimp_data_factory_data_new (gimp->brush_factory, name);
@ -45,9 +43,6 @@ sub brush_new {
else else
success = FALSE; success = FALSE;
} }
else
success = FALSE;
}
CODE CODE
); );
} }
@ -163,7 +158,7 @@ sub brush_rename {
@inargs = ( @inargs = (
{ name => 'name', type => 'string', { name => 'name', type => 'string',
desc => 'The brush name' }, desc => 'The brush name' },
{ name => 'new_name', type => 'string', { name => 'new_name', type => 'string', non_empty => 1,
desc => 'The new name of the brush' } desc => 'The new name of the brush' }
); );
@ -178,7 +173,7 @@ sub brush_rename {
GimpBrush *brush = (GimpBrush *) GimpBrush *brush = (GimpBrush *)
gimp_container_get_child_by_name (gimp->brush_factory->container, name); gimp_container_get_child_by_name (gimp->brush_factory->container, name);
if (brush && GIMP_DATA (brush)->writable && strlen (new_name)) if (brush && GIMP_DATA (brush)->writable)
{ {
gimp_object_set_name (GIMP_OBJECT (brush), new_name); gimp_object_set_name (GIMP_OBJECT (brush), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush))); actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));

View file

@ -24,7 +24,7 @@ sub brushes_popup {
&andy_pdb_misc('1998'); &andy_pdb_misc('1998');
@inargs = ( @inargs = (
{ name => 'brush_callback', type => 'string', { name => 'brush_callback', type => 'string', non_empty => 1,
desc => 'The callback PDB proc to call when brush selection is desc => 'The callback PDB proc to call when brush selection is
made' }, made' },
{ name => 'popup_title', type => 'string', { name => 'popup_title', type => 'string',
@ -66,7 +66,7 @@ sub brushes_close_popup {
&andy_pdb_misc('1998'); &andy_pdb_misc('1998');
@inargs = ( @inargs = (
{ name => 'brush_callback', type => 'string', { name => 'brush_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this pop-up' } desc => 'The name of the callback registered for this pop-up' }
); );
@ -90,7 +90,7 @@ sub brushes_set_popup {
&andy_pdb_misc('1998'); &andy_pdb_misc('1998');
@inargs = ( @inargs = (
{ name => 'brush_callback', type => 'string', { name => 'brush_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this pop-up' }, desc => 'The name of the callback registered for this pop-up' },
{ name => 'brush_name', type => 'string', { name => 'brush_name', type => 'string',
desc => 'The name of the brush to set as selected' }, desc => 'The name of the brush to set as selected' },

View file

@ -57,7 +57,7 @@ sub buffer_rename {
@inargs = ( @inargs = (
{ name => 'buffer_name', type => 'string', { name => 'buffer_name', type => 'string',
desc => 'The buffer name' }, desc => 'The buffer name' },
{ name => 'new_name', type => 'string', { name => 'new_name', type => 'string', non_empty => 1,
desc => 'The buffer\'s new name' } desc => 'The buffer\'s new name' }
); );
@ -72,7 +72,7 @@ sub buffer_rename {
GimpBuffer *buffer = (GimpBuffer *) GimpBuffer *buffer = (GimpBuffer *)
gimp_container_get_child_by_name (gimp->named_buffers, buffer_name); gimp_container_get_child_by_name (gimp->named_buffers, buffer_name);
if (buffer && strlen (new_name)) if (buffer)
{ {
gimp_object_set_name (GIMP_OBJECT (buffer), new_name); gimp_object_set_name (GIMP_OBJECT (buffer), new_name);
real_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (buffer))); real_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (buffer)));

View file

@ -232,7 +232,7 @@ HELP
@inargs = ( @inargs = (
{ name => 'drawable', type => 'drawable', { name => 'drawable', type => 'drawable',
desc => "The drawable to cut from" }, desc => "The drawable to cut from" },
{ name => 'buffer_name', type => 'string', { name => 'buffer_name', type => 'string', non_empty => 1,
desc => 'The name of the buffer to create' } desc => 'The name of the buffer to create' }
); );
@outargs = ( @outargs = (
@ -244,7 +244,7 @@ HELP
%invoke = ( %invoke = (
code => <<CODE code => <<CODE
{ {
if (strlen (buffer_name) && gimp_item_is_attached (GIMP_ITEM (drawable))) if (gimp_item_is_attached (GIMP_ITEM (drawable)))
{ {
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable)); GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
@ -277,7 +277,7 @@ HELP
@inargs = ( @inargs = (
{ name => 'drawable', type => 'drawable', { name => 'drawable', type => 'drawable',
desc => "The drawable to copy from" }, desc => "The drawable to copy from" },
{ name => 'buffer_name', type => 'string', { name => 'buffer_name', type => 'string', non_empty => 1,
desc => 'The name of the buffer to create' } desc => 'The name of the buffer to create' }
); );
@outargs = ( @outargs = (
@ -289,7 +289,7 @@ HELP
%invoke = ( %invoke = (
code => <<CODE code => <<CODE
{ {
if (strlen (buffer_name) && gimp_item_is_attached (GIMP_ITEM (drawable))) if (gimp_item_is_attached (GIMP_ITEM (drawable)))
{ {
GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable)); GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable));
@ -323,7 +323,7 @@ HELP
@inargs = ( @inargs = (
{ name => 'image', type => 'image', { name => 'image', type => 'image',
desc => "The image to copy from" }, desc => "The image to copy from" },
{ name => 'buffer_name', type => 'string', { name => 'buffer_name', type => 'string', non_empty => 1,
desc => 'The name of the buffer to create' } desc => 'The name of the buffer to create' }
); );
@ -334,8 +334,6 @@ HELP
%invoke = ( %invoke = (
code => <<CODE code => <<CODE
{
if (strlen (buffer_name))
{ {
real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name, real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name,
context); context);
@ -345,9 +343,6 @@ HELP
else else
success = FALSE; success = FALSE;
} }
else
success = FALSE;
}
CODE CODE
); );
} }

View file

@ -421,7 +421,7 @@ HELP
&std_pdb_misc; &std_pdb_misc;
@inargs = ( @inargs = (
{ name => 'procedure_name', type => 'string', { name => 'procedure_name', type => 'string', non_empty => 1,
desc => 'The name of the procedure to be used for loading' }, desc => 'The name of the procedure to be used for loading' },
{ name => 'extensions', type => 'string', no_success => 1, { name => 'extensions', type => 'string', no_success => 1,
desc => 'comma separated list of extensions this handler desc => 'comma separated list of extensions this handler
@ -460,7 +460,7 @@ HELP
&std_pdb_misc; &std_pdb_misc;
@inargs = ( @inargs = (
{ name => 'procedure_name', type => 'string', { name => 'procedure_name', type => 'string', non_empty => 1,
desc => 'The name of the procedure to be used for loading' }, desc => 'The name of the procedure to be used for loading' },
{ name => 'extensions', type => 'string', no_success => 1, { name => 'extensions', type => 'string', no_success => 1,
desc => 'comma separated list of extensions this handler desc => 'comma separated list of extensions this handler
@ -497,7 +497,7 @@ HELP
&std_pdb_misc; &std_pdb_misc;
@inargs = ( @inargs = (
{ name => 'procedure_name', type => 'string', { name => 'procedure_name', type => 'string', non_empty => 1,
desc => 'The name of the procedure to be used for saving' }, desc => 'The name of the procedure to be used for saving' },
{ name => 'extensions', type => 'string', no_success => 1, { name => 'extensions', type => 'string', no_success => 1,
desc => 'comma separated list of extensions this handler desc => 'comma separated list of extensions this handler
@ -534,7 +534,7 @@ HELP
&neo_pdb_misc('2004', '2.2'); &neo_pdb_misc('2004', '2.2');
@inargs = ( @inargs = (
{ name => 'procedure_name', type => 'string', { name => 'procedure_name', type => 'string', non_empty => 1,
desc => "The name of the procedure to associate a MIME type with." }, desc => "The name of the procedure to associate a MIME type with." },
{ name => 'mime_type', type => 'string', { name => 'mime_type', type => 'string',
desc => "A single MIME type, like for example \"image/jpeg\"." } desc => "A single MIME type, like for example \"image/jpeg\"." }
@ -569,9 +569,9 @@ HELP
&neo_pdb_misc('2004', '2.2'); &neo_pdb_misc('2004', '2.2');
@inargs = ( @inargs = (
{ name => 'load_proc', type => 'string', { name => 'load_proc', type => 'string', non_empty => 1,
desc => "The name of the procedure the thumbnail loader with." }, desc => "The name of the procedure the thumbnail loader with." },
{ name => 'thumb_proc', type => 'string', { name => 'thumb_proc', type => 'string', non_empty => 1,
desc => "The name of the thumbnail load procedure." } desc => "The name of the thumbnail load procedure." }
); );
%invoke = ( %invoke = (

View file

@ -24,7 +24,7 @@ sub fonts_popup {
&neo_pdb_misc('2003'); &neo_pdb_misc('2003');
@inargs = ( @inargs = (
{ name => 'font_callback', type => 'string', { name => 'font_callback', type => 'string', non_empty => 1,
desc => 'The callback PDB proc to call when font selection is made' }, desc => 'The callback PDB proc to call when font selection is made' },
{ name => 'popup_title', type => 'string', { name => 'popup_title', type => 'string',
desc => 'Title of the font selection dialog' }, desc => 'Title of the font selection dialog' },
@ -53,7 +53,7 @@ sub fonts_close_popup {
&neo_pdb_misc('2003'); &neo_pdb_misc('2003');
@inargs = ( @inargs = (
{ name => 'font_callback', type => 'string', { name => 'font_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this pop-up' } desc => 'The name of the callback registered for this pop-up' }
); );
@ -76,7 +76,7 @@ sub fonts_set_popup {
&neo_pdb_misc('2003'); &neo_pdb_misc('2003');
@inargs = ( @inargs = (
{ name => 'font_callback', type => 'string', { name => 'font_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this pop-up' }, desc => 'The name of the callback registered for this pop-up' },
{ name => 'font_name', type => 'string', { name => 'font_name', type => 'string',
desc => 'The name of the font to set as selected' } desc => 'The name of the font to set as selected' }

View file

@ -22,7 +22,7 @@ sub gradient_new {
&shlomi_pdb_misc('2003', '2.2'); &shlomi_pdb_misc('2003', '2.2');
@inargs = ( @inargs = (
{ name => 'name', type => 'string', { name => 'name', type => 'string', non_empty => 1,
desc => 'The requested name of the new gradient' } desc => 'The requested name of the new gradient' }
); );
@ -33,8 +33,6 @@ sub gradient_new {
%invoke = ( %invoke = (
code => <<'CODE' code => <<'CODE'
{
if (strlen (name))
{ {
GimpData *data = gimp_data_factory_data_new (gimp->gradient_factory, name); GimpData *data = gimp_data_factory_data_new (gimp->gradient_factory, name);
@ -43,9 +41,6 @@ sub gradient_new {
else else
success = FALSE; success = FALSE;
} }
else
success = FALSE;
}
CODE CODE
); );
} }
@ -130,7 +125,7 @@ sub gradient_rename {
@inargs = ( @inargs = (
{ name => 'name', type => 'string', { name => 'name', type => 'string',
desc => 'The gradient name' }, desc => 'The gradient name' },
{ name => 'new_name', type => 'string', { name => 'new_name', type => 'string', non_empty => 1,
desc => 'The new name of the gradient' } desc => 'The new name of the gradient' }
); );
@ -145,7 +140,7 @@ sub gradient_rename {
GimpGradient *gradient = (GimpGradient *) GimpGradient *gradient = (GimpGradient *)
gimp_container_get_child_by_name (gimp->gradient_factory->container, name); gimp_container_get_child_by_name (gimp->gradient_factory->container, name);
if (gradient && GIMP_DATA (gradient)->writable && strlen (new_name)) if (gradient && GIMP_DATA (gradient)->writable)
{ {
gimp_object_set_name (GIMP_OBJECT (gradient), new_name); gimp_object_set_name (GIMP_OBJECT (gradient), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient))); actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient)));

View file

@ -24,7 +24,7 @@ sub gradients_popup {
&andy_pdb_misc('1998'); &andy_pdb_misc('1998');
@inargs = ( @inargs = (
{ name => 'gradient_callback', type => 'string', { name => 'gradient_callback', type => 'string', non_empty => 1,
desc => 'The callback PDB proc to call when gradient selection is desc => 'The callback PDB proc to call when gradient selection is
made' }, made' },
{ name => 'popup_title', type => 'string', { name => 'popup_title', type => 'string',
@ -63,7 +63,7 @@ sub gradients_close_popup {
&andy_pdb_misc('1998'); &andy_pdb_misc('1998');
@inargs = ( @inargs = (
{ name => 'gradient_callback', type => 'string', { name => 'gradient_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this pop-up' } desc => 'The name of the callback registered for this pop-up' }
); );
@ -87,7 +87,7 @@ sub gradients_set_popup {
&andy_pdb_misc('1998'); &andy_pdb_misc('1998');
@inargs = ( @inargs = (
{ name => 'gradient_callback', type => 'string', { name => 'gradient_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this pop-up' }, desc => 'The name of the callback registered for this pop-up' },
{ name => 'gradient_name', type => 'string', { name => 'gradient_name', type => 'string',
desc => 'The name of the gradient to set as selected' } desc => 'The name of the gradient to set as selected' }

View file

@ -24,7 +24,7 @@ sub palette_new {
&mitch_pdb_misc('2004', '2.2'); &mitch_pdb_misc('2004', '2.2');
@inargs = ( @inargs = (
{ name => 'name', type => 'string', { name => 'name', type => 'string', non_empty => 1,
desc => 'The requested name of the new palette' } desc => 'The requested name of the new palette' }
); );
@ -35,8 +35,6 @@ sub palette_new {
%invoke = ( %invoke = (
code => <<'CODE' code => <<'CODE'
{
if (strlen (name))
{ {
GimpData *data = gimp_data_factory_data_new (gimp->palette_factory, name); GimpData *data = gimp_data_factory_data_new (gimp->palette_factory, name);
@ -45,9 +43,6 @@ sub palette_new {
else else
success = FALSE; success = FALSE;
} }
else
success = FALSE;
}
CODE CODE
); );
} }
@ -132,7 +127,7 @@ sub palette_rename {
@inargs = ( @inargs = (
{ name => 'name', type => 'string', { name => 'name', type => 'string',
desc => 'The palette name' }, desc => 'The palette name' },
{ name => 'new_name', type => 'string', { name => 'new_name', type => 'string', non_empty => 1,
desc => "The new name of the palette" } desc => "The new name of the palette" }
); );
@ -147,7 +142,7 @@ sub palette_rename {
GimpPalette *palette = (GimpPalette *) GimpPalette *palette = (GimpPalette *)
gimp_container_get_child_by_name (gimp->palette_factory->container, name); gimp_container_get_child_by_name (gimp->palette_factory->container, name);
if (palette && GIMP_DATA (palette)->writable && strlen (new_name)) if (palette && GIMP_DATA (palette)->writable)
{ {
gimp_object_set_name (GIMP_OBJECT (palette), new_name); gimp_object_set_name (GIMP_OBJECT (palette), new_name);
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette))); actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));

View file

@ -24,7 +24,7 @@ sub palettes_popup {
&mitch_pdb_misc('2002'); &mitch_pdb_misc('2002');
@inargs = ( @inargs = (
{ name => 'palette_callback', type => 'string', { name => 'palette_callback', type => 'string', non_empty => 1,
desc => 'The callback PDB proc to call when palette selection is desc => 'The callback PDB proc to call when palette selection is
made' }, made' },
{ name => 'popup_title', type => 'string', { name => 'popup_title', type => 'string',
@ -55,7 +55,7 @@ sub palettes_close_popup {
&mitch_pdb_misc('2002'); &mitch_pdb_misc('2002');
@inargs = ( @inargs = (
{ name => 'palette_callback', type => 'string', { name => 'palette_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this pop-up' } desc => 'The name of the callback registered for this pop-up' }
); );
@ -79,7 +79,7 @@ sub palettes_set_popup {
&mitch_pdb_misc('2002'); &mitch_pdb_misc('2002');
@inargs = ( @inargs = (
{ name => 'palette_callback', type => 'string', { name => 'palette_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this pop-up' }, desc => 'The name of the callback registered for this pop-up' },
{ name => 'palette_name', type => 'string', { name => 'palette_name', type => 'string',
desc => 'The name of the palette to set as selected' }, desc => 'The name of the palette to set as selected' },

View file

@ -24,7 +24,7 @@ sub patterns_popup {
&andy_pdb_misc('1998'); &andy_pdb_misc('1998');
@inargs = ( @inargs = (
{ name => 'pattern_callback', type => 'string', { name => 'pattern_callback', type => 'string', non_empty => 1,
desc => 'The callback PDB proc to call when pattern selection is desc => 'The callback PDB proc to call when pattern selection is
made' }, made' },
{ name => 'popup_title', type => 'string', { name => 'popup_title', type => 'string',
@ -55,7 +55,7 @@ sub patterns_close_popup {
&andy_pdb_misc('1998'); &andy_pdb_misc('1998');
@inargs = ( @inargs = (
{ name => 'pattern_callback', type => 'string', { name => 'pattern_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this pop-up' } desc => 'The name of the callback registered for this pop-up' }
); );
@ -79,7 +79,7 @@ sub patterns_set_popup {
&andy_pdb_misc('1998'); &andy_pdb_misc('1998');
@inargs = ( @inargs = (
{ name => 'pattern_callback', type => 'string', { name => 'pattern_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this pop-up' }, desc => 'The name of the callback registered for this pop-up' },
{ name => 'pattern_name', type => 'string', { name => 'pattern_name', type => 'string',
desc => 'The name of the pattern to set as selected' } desc => 'The name of the pattern to set as selected' }

View file

@ -158,7 +158,7 @@ HELP
&mitch_pdb_misc('2004', '2.2'); &mitch_pdb_misc('2004', '2.2');
@inargs = ( @inargs = (
{ name => 'procedure_name', type => 'string', { name => 'procedure_name', type => 'string', non_empty => 1,
desc => 'The procedure for which to install the menu path' }, desc => 'The procedure for which to install the menu path' },
{ name => 'menu_path', type => 'string', { name => 'menu_path', type => 'string',
desc => "The procedure's additional menu path" } desc => "The procedure's additional menu path" }
@ -227,7 +227,7 @@ HELP
&mitch_pdb_misc('2004', '2.2'); &mitch_pdb_misc('2004', '2.2');
@inargs = ( @inargs = (
{ name => 'procedure_name', type => 'string', wrap => 1, { name => 'procedure_name', type => 'string', wrap => 1, non_empty => 1,
desc => 'The procedure for which to install the icon' }, desc => 'The procedure for which to install the icon' },
{ name => 'icon_type', type => 'enum GimpIconType', { name => 'icon_type', type => 'enum GimpIconType',
desc => 'The type of the icon' }, desc => 'The type of the icon' },

View file

@ -58,7 +58,7 @@ HELP
$copyright = $author . ' & Peter Mattis'; $copyright = $author . ' & Peter Mattis';
@inargs = ( @inargs = (
{ name => 'filename', type => 'string', no_validate => 1, { name => 'filename', type => 'string', no_validate => 1, non_empty => 1,
desc => 'The dump filename' } desc => 'The dump filename' }
); );
@ -148,7 +148,7 @@ HELP
$date = '1997'; $date = '1997';
@inargs = ( @inargs = (
{ name => 'procedure_name', type => 'string', { name => 'procedure_name', type => 'string', non_empty => 1,
desc => 'The procedure name' } desc => 'The procedure name' }
); );
@ -206,7 +206,7 @@ HELP
$date = '1997'; $date = '1997';
@inargs = ( @inargs = (
{ name => 'procedure_name', type => 'string', { name => 'procedure_name', type => 'string', non_empty => 1,
desc => 'The procedure name' }, desc => 'The procedure name' },
{ name => 'arg_num', type => 'int32', { name => 'arg_num', type => 'int32',
desc => 'The argument number' } desc => 'The argument number' }
@ -273,7 +273,7 @@ HELP
$date = '1997'; $date = '1997';
@inargs = ( @inargs = (
{ name => 'procedure_name', type => 'string', { name => 'procedure_name', type => 'string', non_empty => 1,
desc => 'The procedure name' }, desc => 'The procedure name' },
{ name => 'val_num', type => 'int32', { name => 'val_num', type => 'int32',
desc => 'The return value number' } desc => 'The return value number' }
@ -338,7 +338,7 @@ HELP
$date = '1997'; $date = '1997';
@inargs = ( @inargs = (
{ name => 'identifier', type => 'string', { name => 'identifier', type => 'string', non_empty => 1,
desc => 'The identifier associated with data' } desc => 'The identifier associated with data' }
); );
@ -382,7 +382,7 @@ HELP
&nick_pdb_misc('1998'); &nick_pdb_misc('1998');
@inargs = ( @inargs = (
{ name => 'identifier', type => 'string', { name => 'identifier', type => 'string', non_empty => 1,
desc => 'The identifier associated with data' } desc => 'The identifier associated with data' }
); );
@ -418,7 +418,7 @@ HELP
$date = '1997'; $date = '1997';
@inargs = ( @inargs = (
{ name => 'identifier', type => 'string', { name => 'identifier', type => 'string', non_empty => 1,
desc => 'The identifier associated with data' }, desc => 'The identifier associated with data' },
{ name => 'data', type => 'int8array', { name => 'data', type => 'int8array',
desc => 'A byte array containing data', wrap => 1, desc => 'A byte array containing data', wrap => 1,

View file

@ -191,7 +191,7 @@ HELP
&mitch_pdb_misc('2004', '2.2'); &mitch_pdb_misc('2004', '2.2');
@inargs = ( @inargs = (
{ name => 'progress_callback', type => 'string', { name => 'progress_callback', type => 'string', non_empty => 1,
desc => 'The callback PDB proc to call', desc => 'The callback PDB proc to call',
wrap => 1 } wrap => 1 }
); );
@ -221,7 +221,7 @@ HELP
&mitch_pdb_misc('2004', '2.2'); &mitch_pdb_misc('2004', '2.2');
@inargs = ( @inargs = (
{ name => 'progress_callback', type => 'string', { name => 'progress_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this progress', desc => 'The name of the callback registered for this progress',
wrap => 1 } wrap => 1 }
); );
@ -250,7 +250,7 @@ HELP
&mitch_pdb_misc('2004', '2.2'); &mitch_pdb_misc('2004', '2.2');
@inargs = ( @inargs = (
{ name => 'progress_callback', type => 'string', { name => 'progress_callback', type => 'string', non_empty => 1,
desc => 'The name of the callback registered for this progress' } desc => 'The name of the callback registered for this progress' }
); );

View file

@ -73,19 +73,19 @@ HELP
&mitch_pdb_misc('1999'); &mitch_pdb_misc('1999');
@inargs = ( @inargs = (
{ name => 'identifier', type => 'string', wrap => 1, { name => 'identifier', type => 'string', wrap => 1, non_empty => 1,
desc => "The new unit's identifier" }, desc => "The new unit's identifier" },
{ name => 'factor', type => 'float', { name => 'factor', type => 'float',
desc => "The new unit's factor" }, desc => "The new unit's factor" },
{ name => 'digits', type => 'int32', { name => 'digits', type => 'int32',
desc => "The new unit's digits" }, desc => "The new unit's digits" },
{ name => 'symbol', type => 'string', { name => 'symbol', type => 'string', non_empty => 1,
desc => "The new unit's symbol" }, desc => "The new unit's symbol" },
{ name => 'abbreviation', type => 'string', { name => 'abbreviation', type => 'string', non_empty => 1,
desc => "The new unit's abbreviation" }, desc => "The new unit's abbreviation" },
{ name => 'singular', type => 'string', { name => 'singular', type => 'string', non_empty => 1,
desc => "The new unit's singular form" }, desc => "The new unit's singular form" },
{ name => 'plural', type => 'string', { name => 'plural', type => 'string', non_empty => 1,
desc => "The new unit's plural form" } desc => "The new unit's plural form" }
); );

View file

@ -1166,7 +1166,7 @@ HELP
@inargs = ( @inargs = (
{ name => 'image', type => 'image', { name => 'image', type => 'image',
desc => 'The image' }, desc => 'The image' },
{ name => 'filename', type => 'string', no_validate => 1, { name => 'filename', type => 'string', no_validate => 1, non_empty => 1,
desc => 'The name of the SVG file to import.' }, desc => 'The name of the SVG file to import.' },
{ name => 'merge', type => 'boolean', { name => 'merge', type => 'boolean',
desc => 'Merge paths into a single vectors object.' }, desc => 'Merge paths into a single vectors object.' },