mirror of https://github.com/GNOME/gimp.git
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:
parent
7bf61525ad
commit
d6fd55064b
37
ChangeLog
37
ChangeLog
|
@ -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>
|
||||
|
||||
* plug-ins/common/gif.c
|
||||
|
|
|
@ -351,6 +351,7 @@ gimp_param_string_init (GParamSpec *pspec)
|
|||
|
||||
sspec->no_validate = FALSE;
|
||||
sspec->null_ok = FALSE;
|
||||
sspec->non_empty = FALSE;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
@ -364,10 +365,28 @@ gimp_param_string_validate (GParamSpec *pspec,
|
|||
{
|
||||
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 &&
|
||||
! 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 < ' ')
|
||||
*s = '?';
|
||||
|
||||
|
@ -376,9 +395,16 @@ gimp_param_string_validate (GParamSpec *pspec,
|
|||
}
|
||||
else if (! sspec->null_ok)
|
||||
{
|
||||
value->data[1].v_uint &= ~G_VALUE_NOCOPY_CONTENTS;
|
||||
value->data[0].v_pointer = g_strdup ("");
|
||||
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;
|
||||
}
|
||||
|
@ -389,11 +415,14 @@ gimp_param_spec_string (const gchar *name,
|
|||
const gchar *blurb,
|
||||
gboolean no_validate,
|
||||
gboolean null_ok,
|
||||
gboolean non_empty,
|
||||
const gchar *default_value,
|
||||
GParamFlags flags)
|
||||
{
|
||||
GimpParamSpecString *sspec;
|
||||
|
||||
g_return_val_if_fail (! (null_ok && non_empty), NULL);
|
||||
|
||||
sspec = g_param_spec_internal (GIMP_TYPE_PARAM_STRING,
|
||||
name, nick, blurb, flags);
|
||||
|
||||
|
@ -404,6 +433,7 @@ gimp_param_spec_string (const gchar *name,
|
|||
|
||||
sspec->no_validate = no_validate ? TRUE : FALSE;
|
||||
sspec->null_ok = null_ok ? TRUE : FALSE;
|
||||
sspec->non_empty = non_empty ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
return G_PARAM_SPEC (sspec);
|
||||
|
|
|
@ -153,6 +153,7 @@ struct _GimpParamSpecString
|
|||
|
||||
guint no_validate : 1;
|
||||
guint null_ok : 1;
|
||||
guint non_empty : 1;
|
||||
};
|
||||
|
||||
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,
|
||||
gboolean no_validate,
|
||||
gboolean null_ok,
|
||||
gboolean non_empty,
|
||||
const gchar *default_value,
|
||||
GParamFlags flags);
|
||||
|
||||
|
|
|
@ -56,15 +56,10 @@ brush_new_invoker (GimpProcedure *procedure,
|
|||
|
||||
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);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -173,7 +168,7 @@ brush_rename_invoker (GimpProcedure *procedure,
|
|||
GimpBrush *brush = (GimpBrush *)
|
||||
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);
|
||||
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",
|
||||
"name",
|
||||
"The requested name of the new brush",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("actual-name",
|
||||
"actual name",
|
||||
"The actual new brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -918,14 +913,14 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("copy-name",
|
||||
"copy name",
|
||||
"The name of the brush's copy",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -948,7 +943,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -977,21 +972,21 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("new-name",
|
||||
"new name",
|
||||
"The new name of the brush",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("actual-name",
|
||||
"actual name",
|
||||
"The actual new name of the brush",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1014,7 +1009,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1037,7 +1032,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1066,7 +1061,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1113,7 +1108,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1182,7 +1177,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1211,7 +1206,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1240,7 +1235,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1270,7 +1265,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1299,7 +1294,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1328,7 +1323,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1357,7 +1352,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1386,7 +1381,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1415,7 +1410,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1452,7 +1447,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1487,7 +1482,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1522,7 +1517,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1557,7 +1552,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1592,7 +1587,7 @@ register_brush_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
|
|
@ -155,21 +155,21 @@ register_brush_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("brush-callback",
|
||||
"brush callback",
|
||||
"The callback PDB proc to call when brush selection is made",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("popup-title",
|
||||
"popup title",
|
||||
"Title of the brush selection dialog",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("initial-brush",
|
||||
"initial brush",
|
||||
"The name of the brush to set as the first selected",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -211,7 +211,7 @@ register_brush_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("brush-callback",
|
||||
"brush callback",
|
||||
"The name of the callback registered for this pop-up",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -234,14 +234,14 @@ register_brush_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("brush-callback",
|
||||
"brush callback",
|
||||
"The name of the callback registered for this pop-up",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("brush-name",
|
||||
"brush name",
|
||||
"The name of the brush to set as selected",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
|
|
@ -273,7 +273,7 @@ register_brushes_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filter",
|
||||
"filter",
|
||||
"An optional regular expression used to filter the list",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -307,7 +307,7 @@ register_brushes_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -392,14 +392,14 @@ register_brushes_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The brush name (\"\" means current active brush)",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("actual-name",
|
||||
"actual name",
|
||||
"The brush name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -91,7 +91,7 @@ buffer_rename_invoker (GimpProcedure *procedure,
|
|||
GimpBuffer *buffer = (GimpBuffer *)
|
||||
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);
|
||||
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",
|
||||
"filter",
|
||||
"An optional regular expression used to filter the list",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -322,21 +322,21 @@ register_buffer_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The buffer name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("new-name",
|
||||
"new name",
|
||||
"The buffer's new name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("real-name",
|
||||
"real name",
|
||||
"The real name given to the buffer",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -359,7 +359,7 @@ register_buffer_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The buffer name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -382,7 +382,7 @@ register_buffer_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The buffer name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -411,7 +411,7 @@ register_buffer_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The buffer name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -440,7 +440,7 @@ register_buffer_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The buffer name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -469,7 +469,7 @@ register_buffer_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The buffer name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -370,7 +370,7 @@ register_channel_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The channel name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -425,7 +425,7 @@ register_channel_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The channel name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -621,7 +621,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the active paint method",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -644,7 +644,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the paint method",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -881,7 +881,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the active brush",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -904,7 +904,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the brush",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -927,7 +927,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the active pattern",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -950,7 +950,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the pattern",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -973,7 +973,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the active gradient",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -996,7 +996,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the gradient",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1019,7 +1019,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the active palette",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1042,7 +1042,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the palette",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1065,7 +1065,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the active font",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1088,7 +1088,7 @@ register_context_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the font",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -275,7 +275,7 @@ register_convert_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("palette",
|
||||
"palette",
|
||||
"The name of the custom palette to use, ignored unless (palette_type == GIMP_CUSTOM_PALETTE)",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -1696,7 +1696,7 @@ register_drawable_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The drawable name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1725,7 +1725,7 @@ register_drawable_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The new drawable name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -227,7 +227,7 @@ edit_named_cut_invoker (GimpProcedure *procedure,
|
|||
|
||||
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));
|
||||
|
||||
|
@ -269,7 +269,7 @@ edit_named_copy_invoker (GimpProcedure *procedure,
|
|||
|
||||
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));
|
||||
|
||||
|
@ -311,16 +311,11 @@ edit_named_copy_visible_invoker (GimpProcedure *procedure,
|
|||
|
||||
if (success)
|
||||
{
|
||||
if (strlen (buffer_name))
|
||||
{
|
||||
real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name,
|
||||
context);
|
||||
real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name,
|
||||
context);
|
||||
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -888,14 +883,14 @@ register_edit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The name of the buffer to create",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("real-name",
|
||||
"real name",
|
||||
"The real name given to the buffer, or NULL if the selection contained only transparent pixels",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -924,14 +919,14 @@ register_edit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The name of the buffer to create",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("real-name",
|
||||
"real name",
|
||||
"The real name given to the buffer, or NULL if the selection contained only transparent pixels",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -960,14 +955,14 @@ register_edit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The name of the buffer to create",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("real-name",
|
||||
"real name",
|
||||
"The real name given to the buffer",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -996,7 +991,7 @@ register_edit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The name of the buffer to paste",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1031,7 +1026,7 @@ register_edit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("buffer-name",
|
||||
"buffer name",
|
||||
"The name of the buffer to paste",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -537,14 +537,14 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The name of the file to load",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("raw-filename",
|
||||
"raw filename",
|
||||
"The name as entered by the user",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -588,7 +588,7 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The name of the file to load",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -632,7 +632,7 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The name of the file to load",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -685,14 +685,14 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The name of the file to save the image in",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("raw-filename",
|
||||
"raw filename",
|
||||
"The name as entered by the user",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -715,7 +715,7 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The name of the file that owns the thumbnail to load",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -767,7 +767,7 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The name of the file the thumbnail belongs to",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -790,14 +790,14 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("extension",
|
||||
"extension",
|
||||
"The extension the file will have",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The new temp filename",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -820,28 +820,28 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("procedure-name",
|
||||
"procedure name",
|
||||
"The name of the procedure to be used for loading",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("extensions",
|
||||
"extensions",
|
||||
"comma separated list of extensions this handler can load (i.e. \"jpg,jpeg\")",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("prefixes",
|
||||
"prefixes",
|
||||
"comma separated list of prefixes this handler can load (i.e. \"http:,ftp:\")",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("magics",
|
||||
"magics",
|
||||
"comma separated list of magic file information this handler can load (i.e. \"0,string,GIF\")",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -864,21 +864,21 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("procedure-name",
|
||||
"procedure name",
|
||||
"The name of the procedure to be used for loading",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("extensions",
|
||||
"extensions",
|
||||
"comma separated list of extensions this handler can load (i.e. \"jpg,jpeg\")",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("prefixes",
|
||||
"prefixes",
|
||||
"comma separated list of prefixes this handler can load (i.e. \"http:,ftp:\")",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -901,21 +901,21 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("procedure-name",
|
||||
"procedure name",
|
||||
"The name of the procedure to be used for saving",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("extensions",
|
||||
"extensions",
|
||||
"comma separated list of extensions this handler can save (i.e. \"jpg,jpeg\")",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("prefixes",
|
||||
"prefixes",
|
||||
"comma separated list of prefixes this handler can save (i.e. \"http:,ftp:\")",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -938,14 +938,14 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("procedure-name",
|
||||
"procedure name",
|
||||
"The name of the procedure to associate a MIME type with.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("mime-type",
|
||||
"mime type",
|
||||
"A single MIME type, like for example \"image/jpeg\".",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -968,14 +968,14 @@ register_fileops_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("load-proc",
|
||||
"load proc",
|
||||
"The name of the procedure the thumbnail loader with.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("thumb-proc",
|
||||
"thumb proc",
|
||||
"The name of the thumbnail load procedure.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -133,21 +133,21 @@ register_font_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("font-callback",
|
||||
"font callback",
|
||||
"The callback PDB proc to call when font selection is made",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("popup-title",
|
||||
"popup title",
|
||||
"Title of the font selection dialog",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("initial-font",
|
||||
"initial font",
|
||||
"The name of the font to set as the first selected",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -170,7 +170,7 @@ register_font_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("font-callback",
|
||||
"font callback",
|
||||
"The name of the callback registered for this pop-up",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -193,14 +193,14 @@ register_font_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("font-callback",
|
||||
"font callback",
|
||||
"The name of the callback registered for this pop-up",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("font-name",
|
||||
"font name",
|
||||
"The name of the font to set as selected",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -117,7 +117,7 @@ register_fonts_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filter",
|
||||
"filter",
|
||||
"An optional regular expression used to filter the list",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -73,7 +73,7 @@ gimp_pdb_compat_param_spec (Gimp *gimp,
|
|||
|
||||
case GIMP_PDB_STRING:
|
||||
pspec = gimp_param_spec_string (name, name, desc,
|
||||
TRUE, TRUE,
|
||||
TRUE, TRUE, FALSE,
|
||||
NULL,
|
||||
G_PARAM_READWRITE);
|
||||
break;
|
||||
|
|
|
@ -239,14 +239,14 @@ register_gimprc_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("token",
|
||||
"token",
|
||||
"The token to query for",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("value",
|
||||
"value",
|
||||
"The value associated with the queried token",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -269,14 +269,14 @@ register_gimprc_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("token",
|
||||
"token",
|
||||
"The token to add or modify",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("value",
|
||||
"value",
|
||||
"The value to set the token to",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -299,7 +299,7 @@ register_gimprc_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("comment",
|
||||
"comment",
|
||||
"Default image comment",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -374,7 +374,7 @@ register_gimprc_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("theme-dir",
|
||||
"theme dir",
|
||||
"The GUI theme dir",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -397,7 +397,7 @@ register_gimprc_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("config",
|
||||
"config",
|
||||
"Serialized color management configuration",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -420,7 +420,7 @@ register_gimprc_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("load-inhibit",
|
||||
"load inhibit",
|
||||
"The list of modules",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -105,15 +105,10 @@ gradient_new_invoker (GimpProcedure *procedure,
|
|||
|
||||
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);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -222,7 +217,7 @@ gradient_rename_invoker (GimpProcedure *procedure,
|
|||
GimpGradient *gradient = (GimpGradient *)
|
||||
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);
|
||||
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",
|
||||
"name",
|
||||
"The requested name of the new gradient",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("actual-name",
|
||||
"actual name",
|
||||
"The actual new gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1386,14 +1381,14 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("copy-name",
|
||||
"copy name",
|
||||
"The name of the gradient's copy",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1416,7 +1411,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1445,21 +1440,21 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("new-name",
|
||||
"new name",
|
||||
"The new name of the gradient",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("actual-name",
|
||||
"actual name",
|
||||
"The actual new name of the gradient",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1482,7 +1477,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1505,7 +1500,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1551,7 +1546,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1602,7 +1597,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1644,7 +1639,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1686,7 +1681,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1728,7 +1723,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1770,7 +1765,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1805,7 +1800,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1846,7 +1841,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1881,7 +1876,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1922,7 +1917,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1957,7 +1952,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1998,7 +1993,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2034,7 +2029,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2070,7 +2065,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2112,7 +2107,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2154,7 +2149,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2189,7 +2184,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2230,7 +2225,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2265,7 +2260,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2306,7 +2301,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2341,7 +2336,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2376,7 +2371,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2411,7 +2406,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2446,7 +2441,7 @@ register_gradient_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
|
|
@ -144,21 +144,21 @@ register_gradient_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("gradient-callback",
|
||||
"gradient callback",
|
||||
"The callback PDB proc to call when gradient selection is made",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("popup-title",
|
||||
"popup title",
|
||||
"Title of the gradient selection dialog",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("initial-gradient",
|
||||
"initial gradient",
|
||||
"The name of the gradient to set as the first selected",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -187,7 +187,7 @@ register_gradient_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("gradient-callback",
|
||||
"gradient callback",
|
||||
"The name of the callback registered for this pop-up",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -210,14 +210,14 @@ register_gradient_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("gradient-callback",
|
||||
"gradient callback",
|
||||
"The name of the callback registered for this pop-up",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("gradient-name",
|
||||
"gradient name",
|
||||
"The name of the gradient to set as selected",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -319,7 +319,7 @@ register_gradients_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filter",
|
||||
"filter",
|
||||
"An optional regular expression used to filter the list",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -436,7 +436,7 @@ register_gradients_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The gradient name (\"\" means current active gradient)",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -455,7 +455,7 @@ register_gradients_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("actual-name",
|
||||
"actual name",
|
||||
"The gradient name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -88,14 +88,14 @@ register_help_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("help-domain",
|
||||
"help domain",
|
||||
"The help domain in which help_id is registered",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("help-id",
|
||||
"help id",
|
||||
"The help page's ID",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -4325,7 +4325,7 @@ register_image_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The filename",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -4354,7 +4354,7 @@ register_image_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The new image filename",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -4383,7 +4383,7 @@ register_image_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -874,7 +874,7 @@ register_layer_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The layer name",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
|
|
@ -122,7 +122,7 @@ register_message_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("message",
|
||||
"message",
|
||||
"Message to display in the dialog",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -125,7 +125,7 @@ register_misc_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("version",
|
||||
"version",
|
||||
"GIMP version number",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -56,15 +56,10 @@ palette_new_invoker (GimpProcedure *procedure,
|
|||
|
||||
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);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -140,7 +135,7 @@ palette_rename_invoker (GimpProcedure *procedure,
|
|||
GimpPalette *palette = (GimpPalette *)
|
||||
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);
|
||||
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",
|
||||
"name",
|
||||
"The requested name of the new palette",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("actual-name",
|
||||
"actual name",
|
||||
"The actual new palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -625,14 +620,14 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("copy-name",
|
||||
"copy name",
|
||||
"The name of the palette's copy",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -655,21 +650,21 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("new-name",
|
||||
"new name",
|
||||
"The new name of the palette",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("actual-name",
|
||||
"actual name",
|
||||
"The actual new name of the palette",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -692,7 +687,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -715,7 +710,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -744,7 +739,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -773,7 +768,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -802,7 +797,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -831,14 +826,14 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("entry-name",
|
||||
"entry name",
|
||||
"The name of the entry",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -874,7 +869,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -903,7 +898,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -939,7 +934,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -975,7 +970,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -988,7 +983,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("entry-name",
|
||||
"entry name",
|
||||
"The name requested",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1011,7 +1006,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1024,7 +1019,7 @@ register_palette_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("entry-name",
|
||||
"entry name",
|
||||
"The new name",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -137,21 +137,21 @@ register_palette_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("palette-callback",
|
||||
"palette callback",
|
||||
"The callback PDB proc to call when palette selection is made",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("popup-title",
|
||||
"popup title",
|
||||
"Title of the palette selection dialog",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("initial-palette",
|
||||
"initial palette",
|
||||
"The name of the palette to set as the first selected",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -174,7 +174,7 @@ register_palette_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("palette-callback",
|
||||
"palette callback",
|
||||
"The name of the callback registered for this pop-up",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -197,14 +197,14 @@ register_palette_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("palette-callback",
|
||||
"palette callback",
|
||||
"The name of the callback registered for this pop-up",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("palette-name",
|
||||
"palette name",
|
||||
"The name of the palette to set as selected",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -217,7 +217,7 @@ register_palettes_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filter",
|
||||
"filter",
|
||||
"An optional regular expression used to filter the list",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -251,7 +251,7 @@ register_palettes_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -280,7 +280,7 @@ register_palettes_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The palette name (\"\" means currently active palette)",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -293,7 +293,7 @@ register_palettes_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("actual-name",
|
||||
"actual name",
|
||||
"The palette name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -474,7 +474,7 @@ register_parasite_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the parasite to find",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -523,7 +523,7 @@ register_parasite_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the parasite to detach.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -579,7 +579,7 @@ register_parasite_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the parasite to find",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -640,7 +640,7 @@ register_parasite_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the parasite to detach from an image.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -702,7 +702,7 @@ register_parasite_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the parasite to find",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -763,7 +763,7 @@ register_parasite_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the parasite to detach from a drawable.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -825,7 +825,7 @@ register_parasite_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the parasite to find",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -886,7 +886,7 @@ register_parasite_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the parasite to detach from a vectors object.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -712,7 +712,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the current path.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -741,7 +741,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the path to make current.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -770,7 +770,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the path to delete.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -799,7 +799,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the path whose points should be listed.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -851,7 +851,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("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.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -965,7 +965,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the path whose tattoo should be obtained.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1000,7 +1000,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"the name of the path whose tattoo should be set",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1041,7 +1041,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the path with the specified tattoo.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1070,7 +1070,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the path whose locked status should be obtained.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1105,7 +1105,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"the name of the path whose locked status should be set",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1140,7 +1140,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the path which should be made into selection.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -1200,7 +1200,7 @@ register_paths_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The name of the SVG file to import.",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
|
|
@ -155,7 +155,7 @@ register_pattern_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The pattern name.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -196,7 +196,7 @@ register_pattern_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The pattern name.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -137,21 +137,21 @@ register_pattern_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("pattern-callback",
|
||||
"pattern callback",
|
||||
"The callback PDB proc to call when pattern selection is made",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("popup-title",
|
||||
"popup title",
|
||||
"Title of the pattern selection dialog",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("initial-pattern",
|
||||
"initial pattern",
|
||||
"The name of the pattern to set as the first selected",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -174,7 +174,7 @@ register_pattern_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("pattern-callback",
|
||||
"pattern callback",
|
||||
"The name of the callback registered for this pop-up",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -197,14 +197,14 @@ register_pattern_select_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("pattern-callback",
|
||||
"pattern callback",
|
||||
"The name of the callback registered for this pop-up",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("pattern-name",
|
||||
"pattern name",
|
||||
"The name of the pattern to set as selected",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -220,7 +220,7 @@ register_patterns_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filter",
|
||||
"filter",
|
||||
"An optional regular expression used to filter the list",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -254,7 +254,7 @@ register_patterns_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The pattern name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -289,14 +289,14 @@ register_patterns_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The pattern name (\"\" means currently active pattern)",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("actual-name",
|
||||
"actual name",
|
||||
"The pattern name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -281,7 +281,7 @@ register_plug_in_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("search-string",
|
||||
"search string",
|
||||
"If not an empty string then use this as a search pattern",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -370,14 +370,14 @@ register_plug_in_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("domain-name",
|
||||
"domain name",
|
||||
"The name of the textdomain (must be unique)",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("domain-path",
|
||||
"domain path",
|
||||
"The absolute path to the compiled message catalog (may be NULL)",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE | GIMP_PARAM_NO_VALIDATE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -400,14 +400,14 @@ register_plug_in_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("domain-name",
|
||||
"domain name",
|
||||
"The XML namespace of the plug-in's help pages",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("domain-uri",
|
||||
"domain uri",
|
||||
"The root URI of the plug-in's help pages",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -430,14 +430,14 @@ register_plug_in_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("procedure-name",
|
||||
"procedure name",
|
||||
"The procedure for which to install the menu path",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("menu-path",
|
||||
"menu path",
|
||||
"The procedure's additional menu path",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -460,14 +460,14 @@ register_plug_in_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("menu-path",
|
||||
"menu path",
|
||||
"The sub-menu's menu path",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("menu-name",
|
||||
"menu name",
|
||||
"The name of the sub-menu",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -490,7 +490,7 @@ register_plug_in_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("procedure-name",
|
||||
"procedure name",
|
||||
"The procedure for which to install the icon",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
|
|
@ -431,7 +431,7 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("temp-name",
|
||||
"temp name",
|
||||
"A unique temporary name for a temporary PDB entry",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -454,7 +454,7 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The dump filename",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -477,49 +477,49 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The regex for procedure name",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("blurb",
|
||||
"blurb",
|
||||
"The regex for procedure blurb",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("help",
|
||||
"help",
|
||||
"The regex for procedure help",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("author",
|
||||
"author",
|
||||
"The regex for procedure author",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("copyright",
|
||||
"copyright",
|
||||
"The regex for procedure copyright",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("date",
|
||||
"date",
|
||||
"The regex for procedure date",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("proc-type",
|
||||
"proc type",
|
||||
"The regex for procedure type: { 'Internal GIMP procedure', 'GIMP Plug-In', 'GIMP Extension', 'Temporary Procedure' }",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -553,42 +553,42 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("procedure-name",
|
||||
"procedure name",
|
||||
"The procedure name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("blurb",
|
||||
"blurb",
|
||||
"A short blurb",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("help",
|
||||
"help",
|
||||
"Detailed procedure help",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("author",
|
||||
"author",
|
||||
"Author(s) of the procedure",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("copyright",
|
||||
"copyright",
|
||||
"The copyright",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("date",
|
||||
"date",
|
||||
"Copyright date",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -630,7 +630,7 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("procedure-name",
|
||||
"procedure name",
|
||||
"The procedure name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -652,14 +652,14 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("arg-name",
|
||||
"arg name",
|
||||
"The name of the argument",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("arg-desc",
|
||||
"arg desc",
|
||||
"A description of the argument",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -682,7 +682,7 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("procedure-name",
|
||||
"procedure name",
|
||||
"The procedure name",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -704,14 +704,14 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("val-name",
|
||||
"val name",
|
||||
"The name of the return value",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
gimp_param_spec_string ("val-desc",
|
||||
"val desc",
|
||||
"A description of the return value",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -734,7 +734,7 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("identifier",
|
||||
"identifier",
|
||||
"The identifier associated with data",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -768,7 +768,7 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("identifier",
|
||||
"identifier",
|
||||
"The identifier associated with data",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -797,7 +797,7 @@ register_procedural_db_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("identifier",
|
||||
"identifier",
|
||||
"The identifier associated with data",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
|
|
@ -269,7 +269,7 @@ register_progress_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("message",
|
||||
"message",
|
||||
"Message to use in the progress dialog",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -336,7 +336,7 @@ register_progress_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("message",
|
||||
"message",
|
||||
"Message to use in the progress dialog",
|
||||
FALSE, TRUE,
|
||||
FALSE, TRUE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -381,7 +381,7 @@ register_progress_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("progress-callback",
|
||||
"progress callback",
|
||||
"The callback PDB proc to call",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -404,7 +404,7 @@ register_progress_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("progress-callback",
|
||||
"progress callback",
|
||||
"The name of the callback registered for this progress",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -427,7 +427,7 @@ register_progress_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("progress-callback",
|
||||
"progress callback",
|
||||
"The name of the callback registered for this progress",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -320,7 +320,7 @@ register_text_tool_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("text",
|
||||
"text",
|
||||
"The text to generate (in UTF-8 encoding)",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -352,7 +352,7 @@ register_text_tool_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("fontname",
|
||||
"fontname",
|
||||
"The name of the font",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -381,7 +381,7 @@ register_text_tool_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("text",
|
||||
"text",
|
||||
"The text to generate (in UTF-8 encoding)",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -401,7 +401,7 @@ register_text_tool_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("fontname",
|
||||
"fontname",
|
||||
"The name of the font",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -472,7 +472,7 @@ register_text_tool_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("text",
|
||||
"text",
|
||||
"The text to generate (in UTF-8 encoding)",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -504,56 +504,56 @@ register_text_tool_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("foundry",
|
||||
"foundry",
|
||||
"The font foundry",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("family",
|
||||
"family",
|
||||
"The font family",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("weight",
|
||||
"weight",
|
||||
"The font weight",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("slant",
|
||||
"slant",
|
||||
"The font slant",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("set-width",
|
||||
"set width",
|
||||
"The font set-width",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("spacing",
|
||||
"spacing",
|
||||
"The font spacing",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("registry",
|
||||
"registry",
|
||||
"The font registry",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("encoding",
|
||||
"encoding",
|
||||
"The font encoding",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -582,7 +582,7 @@ register_text_tool_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("text",
|
||||
"text",
|
||||
"The text to generate (in UTF-8 encoding)",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -602,56 +602,56 @@ register_text_tool_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("foundry",
|
||||
"foundry",
|
||||
"The font foundry",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("family",
|
||||
"family",
|
||||
"The font family",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("weight",
|
||||
"weight",
|
||||
"The font weight",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("slant",
|
||||
"slant",
|
||||
"The font slant",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("set-width",
|
||||
"set width",
|
||||
"The font set-width",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("spacing",
|
||||
"spacing",
|
||||
"The font spacing",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("registry",
|
||||
"registry",
|
||||
"The font registry",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("encoding",
|
||||
"encoding",
|
||||
"The font encoding",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -415,7 +415,7 @@ register_unit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("identifier",
|
||||
"identifier",
|
||||
"The new unit's identifier",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -434,28 +434,28 @@ register_unit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("symbol",
|
||||
"symbol",
|
||||
"The new unit's symbol",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("abbreviation",
|
||||
"abbreviation",
|
||||
"The new unit's abbreviation",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("singular",
|
||||
"singular",
|
||||
"The new unit's singular form",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("plural",
|
||||
"plural",
|
||||
"The new unit's plural form",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -554,7 +554,7 @@ register_unit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("identifier",
|
||||
"identifier",
|
||||
"The unit's textual identifier",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -645,7 +645,7 @@ register_unit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("symbol",
|
||||
"symbol",
|
||||
"The unit's symbol",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -676,7 +676,7 @@ register_unit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("abbreviation",
|
||||
"abbreviation",
|
||||
"The unit's abbreviation",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -707,7 +707,7 @@ register_unit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("singular",
|
||||
"singular",
|
||||
"The unit's singular form",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -738,7 +738,7 @@ register_unit_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("plural",
|
||||
"plural",
|
||||
"The unit's plural form",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
|
|
@ -1307,7 +1307,7 @@ register_vectors_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"the name of the new vector object.",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
@ -1370,7 +1370,7 @@ register_vectors_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"The name of the vectors object",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -1399,7 +1399,7 @@ register_vectors_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("name",
|
||||
"name",
|
||||
"the new name of the path",
|
||||
FALSE, FALSE,
|
||||
FALSE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_pdb_register_procedure (pdb, procedure);
|
||||
|
@ -2472,7 +2472,7 @@ register_vectors_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("filename",
|
||||
"filename",
|
||||
"The name of the SVG file to import.",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
@ -2524,7 +2524,7 @@ register_vectors_procs (GimpPDB *pdb)
|
|||
gimp_param_spec_string ("string",
|
||||
"string",
|
||||
"A string that must be a complete and valid SVG document.",
|
||||
TRUE, FALSE,
|
||||
TRUE, FALSE, FALSE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
|
|
|
@ -141,14 +141,16 @@ xcf_init (Gimp *gimp)
|
|||
"in the on-disk "
|
||||
"character set and "
|
||||
"encoding",
|
||||
TRUE, FALSE, NULL,
|
||||
TRUE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("raw-filename",
|
||||
"Raw filename",
|
||||
"The basename of the "
|
||||
"file, in UTF-8",
|
||||
FALSE, FALSE, NULL,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_plug_in_manager_add_procedure (gimp->plug_in_manager, proc);
|
||||
g_object_unref (procedure);
|
||||
|
@ -195,14 +197,16 @@ xcf_init (Gimp *gimp)
|
|||
"to load, in the "
|
||||
"on-disk character "
|
||||
"set and encoding",
|
||||
TRUE, FALSE, NULL,
|
||||
TRUE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
gimp_procedure_add_argument (procedure,
|
||||
gimp_param_spec_string ("raw-filename",
|
||||
"Raw filename",
|
||||
"The basename of the "
|
||||
"file, in UTF-8",
|
||||
FALSE, FALSE, NULL,
|
||||
FALSE, FALSE, TRUE,
|
||||
NULL,
|
||||
GIMP_PARAM_READWRITE));
|
||||
|
||||
gimp_procedure_add_return_value (procedure,
|
||||
|
|
|
@ -360,12 +360,13 @@ CODE
|
|||
elsif ($pdbtype eq 'string') {
|
||||
$no_validate = exists $arg->{no_validate} ? '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;
|
||||
$pspec = <<CODE;
|
||||
gimp_param_spec_string ("$name",
|
||||
"$nick",
|
||||
"$blurb",
|
||||
$no_validate, $null_ok,
|
||||
$no_validate, $null_ok, $non_empty,
|
||||
$default,
|
||||
$flags)
|
||||
CODE
|
||||
|
|
|
@ -24,7 +24,7 @@ sub brush_new {
|
|||
&mitch_pdb_misc('2004', '2.2');
|
||||
|
||||
@inargs = (
|
||||
{ name => 'name', type => 'string',
|
||||
{ name => 'name', type => 'string', non_empty => 1,
|
||||
desc => 'The requested name of the new brush' }
|
||||
);
|
||||
|
||||
|
@ -36,15 +36,10 @@ sub brush_new {
|
|||
%invoke = (
|
||||
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);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -163,7 +158,7 @@ sub brush_rename {
|
|||
@inargs = (
|
||||
{ name => 'name', type => 'string',
|
||||
desc => 'The brush name' },
|
||||
{ name => 'new_name', type => 'string',
|
||||
{ name => 'new_name', type => 'string', non_empty => 1,
|
||||
desc => 'The new name of the brush' }
|
||||
);
|
||||
|
||||
|
@ -178,7 +173,7 @@ sub brush_rename {
|
|||
GimpBrush *brush = (GimpBrush *)
|
||||
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);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (brush)));
|
||||
|
|
|
@ -24,7 +24,7 @@ sub brushes_popup {
|
|||
&andy_pdb_misc('1998');
|
||||
|
||||
@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
|
||||
made' },
|
||||
{ name => 'popup_title', type => 'string',
|
||||
|
@ -66,7 +66,7 @@ sub brushes_close_popup {
|
|||
&andy_pdb_misc('1998');
|
||||
|
||||
@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' }
|
||||
);
|
||||
|
||||
|
@ -90,7 +90,7 @@ sub brushes_set_popup {
|
|||
&andy_pdb_misc('1998');
|
||||
|
||||
@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' },
|
||||
{ name => 'brush_name', type => 'string',
|
||||
desc => 'The name of the brush to set as selected' },
|
||||
|
|
|
@ -57,7 +57,7 @@ sub buffer_rename {
|
|||
@inargs = (
|
||||
{ name => 'buffer_name', type => 'string',
|
||||
desc => 'The buffer name' },
|
||||
{ name => 'new_name', type => 'string',
|
||||
{ name => 'new_name', type => 'string', non_empty => 1,
|
||||
desc => 'The buffer\'s new name' }
|
||||
);
|
||||
|
||||
|
@ -72,7 +72,7 @@ sub buffer_rename {
|
|||
GimpBuffer *buffer = (GimpBuffer *)
|
||||
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);
|
||||
real_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (buffer)));
|
||||
|
|
|
@ -232,7 +232,7 @@ HELP
|
|||
@inargs = (
|
||||
{ name => 'drawable', type => 'drawable',
|
||||
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' }
|
||||
);
|
||||
@outargs = (
|
||||
|
@ -244,7 +244,7 @@ HELP
|
|||
%invoke = (
|
||||
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));
|
||||
|
||||
|
@ -277,7 +277,7 @@ HELP
|
|||
@inargs = (
|
||||
{ name => 'drawable', type => 'drawable',
|
||||
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' }
|
||||
);
|
||||
@outargs = (
|
||||
|
@ -289,7 +289,7 @@ HELP
|
|||
%invoke = (
|
||||
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));
|
||||
|
||||
|
@ -323,7 +323,7 @@ HELP
|
|||
@inargs = (
|
||||
{ name => 'image', type => 'image',
|
||||
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' }
|
||||
);
|
||||
|
||||
|
@ -335,16 +335,11 @@ HELP
|
|||
%invoke = (
|
||||
code => <<CODE
|
||||
{
|
||||
if (strlen (buffer_name))
|
||||
{
|
||||
real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name,
|
||||
context);
|
||||
real_name = (gchar *) gimp_edit_named_copy_visible (image, buffer_name,
|
||||
context);
|
||||
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (real_name)
|
||||
real_name = g_strdup (real_name);
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
|
|
@ -421,7 +421,7 @@ HELP
|
|||
&std_pdb_misc;
|
||||
|
||||
@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' },
|
||||
{ name => 'extensions', type => 'string', no_success => 1,
|
||||
desc => 'comma separated list of extensions this handler
|
||||
|
@ -460,7 +460,7 @@ HELP
|
|||
&std_pdb_misc;
|
||||
|
||||
@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' },
|
||||
{ name => 'extensions', type => 'string', no_success => 1,
|
||||
desc => 'comma separated list of extensions this handler
|
||||
|
@ -497,7 +497,7 @@ HELP
|
|||
&std_pdb_misc;
|
||||
|
||||
@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' },
|
||||
{ name => 'extensions', type => 'string', no_success => 1,
|
||||
desc => 'comma separated list of extensions this handler
|
||||
|
@ -534,7 +534,7 @@ HELP
|
|||
&neo_pdb_misc('2004', '2.2');
|
||||
|
||||
@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." },
|
||||
{ name => 'mime_type', type => 'string',
|
||||
desc => "A single MIME type, like for example \"image/jpeg\"." }
|
||||
|
@ -569,9 +569,9 @@ HELP
|
|||
&neo_pdb_misc('2004', '2.2');
|
||||
|
||||
@inargs = (
|
||||
{ name => 'load_proc', type => 'string',
|
||||
{ name => 'load_proc', type => 'string', non_empty => 1,
|
||||
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." }
|
||||
);
|
||||
%invoke = (
|
||||
|
|
|
@ -24,7 +24,7 @@ sub fonts_popup {
|
|||
&neo_pdb_misc('2003');
|
||||
|
||||
@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' },
|
||||
{ name => 'popup_title', type => 'string',
|
||||
desc => 'Title of the font selection dialog' },
|
||||
|
@ -53,7 +53,7 @@ sub fonts_close_popup {
|
|||
&neo_pdb_misc('2003');
|
||||
|
||||
@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' }
|
||||
);
|
||||
|
||||
|
@ -76,7 +76,7 @@ sub fonts_set_popup {
|
|||
&neo_pdb_misc('2003');
|
||||
|
||||
@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' },
|
||||
{ name => 'font_name', type => 'string',
|
||||
desc => 'The name of the font to set as selected' }
|
||||
|
|
|
@ -22,7 +22,7 @@ sub gradient_new {
|
|||
&shlomi_pdb_misc('2003', '2.2');
|
||||
|
||||
@inargs = (
|
||||
{ name => 'name', type => 'string',
|
||||
{ name => 'name', type => 'string', non_empty => 1,
|
||||
desc => 'The requested name of the new gradient' }
|
||||
);
|
||||
|
||||
|
@ -34,15 +34,10 @@ sub gradient_new {
|
|||
%invoke = (
|
||||
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);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -130,7 +125,7 @@ sub gradient_rename {
|
|||
@inargs = (
|
||||
{ name => 'name', type => 'string',
|
||||
desc => 'The gradient name' },
|
||||
{ name => 'new_name', type => 'string',
|
||||
{ name => 'new_name', type => 'string', non_empty => 1,
|
||||
desc => 'The new name of the gradient' }
|
||||
);
|
||||
|
||||
|
@ -145,7 +140,7 @@ sub gradient_rename {
|
|||
GimpGradient *gradient = (GimpGradient *)
|
||||
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);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (gradient)));
|
||||
|
|
|
@ -24,7 +24,7 @@ sub gradients_popup {
|
|||
&andy_pdb_misc('1998');
|
||||
|
||||
@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
|
||||
made' },
|
||||
{ name => 'popup_title', type => 'string',
|
||||
|
@ -63,7 +63,7 @@ sub gradients_close_popup {
|
|||
&andy_pdb_misc('1998');
|
||||
|
||||
@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' }
|
||||
);
|
||||
|
||||
|
@ -87,7 +87,7 @@ sub gradients_set_popup {
|
|||
&andy_pdb_misc('1998');
|
||||
|
||||
@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' },
|
||||
{ name => 'gradient_name', type => 'string',
|
||||
desc => 'The name of the gradient to set as selected' }
|
||||
|
|
|
@ -24,7 +24,7 @@ sub palette_new {
|
|||
&mitch_pdb_misc('2004', '2.2');
|
||||
|
||||
@inargs = (
|
||||
{ name => 'name', type => 'string',
|
||||
{ name => 'name', type => 'string', non_empty => 1,
|
||||
desc => 'The requested name of the new palette' }
|
||||
);
|
||||
|
||||
|
@ -36,15 +36,10 @@ sub palette_new {
|
|||
%invoke = (
|
||||
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);
|
||||
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
if (data)
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (data)));
|
||||
else
|
||||
success = FALSE;
|
||||
}
|
||||
|
@ -132,7 +127,7 @@ sub palette_rename {
|
|||
@inargs = (
|
||||
{ name => 'name', type => 'string',
|
||||
desc => 'The palette name' },
|
||||
{ name => 'new_name', type => 'string',
|
||||
{ name => 'new_name', type => 'string', non_empty => 1,
|
||||
desc => "The new name of the palette" }
|
||||
);
|
||||
|
||||
|
@ -147,7 +142,7 @@ sub palette_rename {
|
|||
GimpPalette *palette = (GimpPalette *)
|
||||
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);
|
||||
actual_name = g_strdup (gimp_object_get_name (GIMP_OBJECT (palette)));
|
||||
|
|
|
@ -24,7 +24,7 @@ sub palettes_popup {
|
|||
&mitch_pdb_misc('2002');
|
||||
|
||||
@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
|
||||
made' },
|
||||
{ name => 'popup_title', type => 'string',
|
||||
|
@ -55,7 +55,7 @@ sub palettes_close_popup {
|
|||
&mitch_pdb_misc('2002');
|
||||
|
||||
@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' }
|
||||
);
|
||||
|
||||
|
@ -79,7 +79,7 @@ sub palettes_set_popup {
|
|||
&mitch_pdb_misc('2002');
|
||||
|
||||
@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' },
|
||||
{ name => 'palette_name', type => 'string',
|
||||
desc => 'The name of the palette to set as selected' },
|
||||
|
|
|
@ -24,7 +24,7 @@ sub patterns_popup {
|
|||
&andy_pdb_misc('1998');
|
||||
|
||||
@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
|
||||
made' },
|
||||
{ name => 'popup_title', type => 'string',
|
||||
|
@ -55,7 +55,7 @@ sub patterns_close_popup {
|
|||
&andy_pdb_misc('1998');
|
||||
|
||||
@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' }
|
||||
);
|
||||
|
||||
|
@ -79,7 +79,7 @@ sub patterns_set_popup {
|
|||
&andy_pdb_misc('1998');
|
||||
|
||||
@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' },
|
||||
{ name => 'pattern_name', type => 'string',
|
||||
desc => 'The name of the pattern to set as selected' }
|
||||
|
|
|
@ -158,7 +158,7 @@ HELP
|
|||
&mitch_pdb_misc('2004', '2.2');
|
||||
|
||||
@inargs = (
|
||||
{ name => 'procedure_name', type => 'string',
|
||||
{ name => 'procedure_name', type => 'string', non_empty => 1,
|
||||
desc => 'The procedure for which to install the menu path' },
|
||||
{ name => 'menu_path', type => 'string',
|
||||
desc => "The procedure's additional menu path" }
|
||||
|
@ -227,7 +227,7 @@ HELP
|
|||
&mitch_pdb_misc('2004', '2.2');
|
||||
|
||||
@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' },
|
||||
{ name => 'icon_type', type => 'enum GimpIconType',
|
||||
desc => 'The type of the icon' },
|
||||
|
|
|
@ -58,7 +58,7 @@ HELP
|
|||
$copyright = $author . ' & Peter Mattis';
|
||||
|
||||
@inargs = (
|
||||
{ name => 'filename', type => 'string', no_validate => 1,
|
||||
{ name => 'filename', type => 'string', no_validate => 1, non_empty => 1,
|
||||
desc => 'The dump filename' }
|
||||
);
|
||||
|
||||
|
@ -148,7 +148,7 @@ HELP
|
|||
$date = '1997';
|
||||
|
||||
@inargs = (
|
||||
{ name => 'procedure_name', type => 'string',
|
||||
{ name => 'procedure_name', type => 'string', non_empty => 1,
|
||||
desc => 'The procedure name' }
|
||||
);
|
||||
|
||||
|
@ -206,7 +206,7 @@ HELP
|
|||
$date = '1997';
|
||||
|
||||
@inargs = (
|
||||
{ name => 'procedure_name', type => 'string',
|
||||
{ name => 'procedure_name', type => 'string', non_empty => 1,
|
||||
desc => 'The procedure name' },
|
||||
{ name => 'arg_num', type => 'int32',
|
||||
desc => 'The argument number' }
|
||||
|
@ -273,7 +273,7 @@ HELP
|
|||
$date = '1997';
|
||||
|
||||
@inargs = (
|
||||
{ name => 'procedure_name', type => 'string',
|
||||
{ name => 'procedure_name', type => 'string', non_empty => 1,
|
||||
desc => 'The procedure name' },
|
||||
{ name => 'val_num', type => 'int32',
|
||||
desc => 'The return value number' }
|
||||
|
@ -338,7 +338,7 @@ HELP
|
|||
$date = '1997';
|
||||
|
||||
@inargs = (
|
||||
{ name => 'identifier', type => 'string',
|
||||
{ name => 'identifier', type => 'string', non_empty => 1,
|
||||
desc => 'The identifier associated with data' }
|
||||
);
|
||||
|
||||
|
@ -382,7 +382,7 @@ HELP
|
|||
&nick_pdb_misc('1998');
|
||||
|
||||
@inargs = (
|
||||
{ name => 'identifier', type => 'string',
|
||||
{ name => 'identifier', type => 'string', non_empty => 1,
|
||||
desc => 'The identifier associated with data' }
|
||||
);
|
||||
|
||||
|
@ -418,7 +418,7 @@ HELP
|
|||
$date = '1997';
|
||||
|
||||
@inargs = (
|
||||
{ name => 'identifier', type => 'string',
|
||||
{ name => 'identifier', type => 'string', non_empty => 1,
|
||||
desc => 'The identifier associated with data' },
|
||||
{ name => 'data', type => 'int8array',
|
||||
desc => 'A byte array containing data', wrap => 1,
|
||||
|
|
|
@ -191,7 +191,7 @@ HELP
|
|||
&mitch_pdb_misc('2004', '2.2');
|
||||
|
||||
@inargs = (
|
||||
{ name => 'progress_callback', type => 'string',
|
||||
{ name => 'progress_callback', type => 'string', non_empty => 1,
|
||||
desc => 'The callback PDB proc to call',
|
||||
wrap => 1 }
|
||||
);
|
||||
|
@ -221,7 +221,7 @@ HELP
|
|||
&mitch_pdb_misc('2004', '2.2');
|
||||
|
||||
@inargs = (
|
||||
{ name => 'progress_callback', type => 'string',
|
||||
{ name => 'progress_callback', type => 'string', non_empty => 1,
|
||||
desc => 'The name of the callback registered for this progress',
|
||||
wrap => 1 }
|
||||
);
|
||||
|
@ -250,7 +250,7 @@ HELP
|
|||
&mitch_pdb_misc('2004', '2.2');
|
||||
|
||||
@inargs = (
|
||||
{ name => 'progress_callback', type => 'string',
|
||||
{ name => 'progress_callback', type => 'string', non_empty => 1,
|
||||
desc => 'The name of the callback registered for this progress' }
|
||||
);
|
||||
|
||||
|
|
|
@ -73,19 +73,19 @@ HELP
|
|||
&mitch_pdb_misc('1999');
|
||||
|
||||
@inargs = (
|
||||
{ name => 'identifier', type => 'string', wrap => 1,
|
||||
{ name => 'identifier', type => 'string', wrap => 1, non_empty => 1,
|
||||
desc => "The new unit's identifier" },
|
||||
{ name => 'factor', type => 'float',
|
||||
desc => "The new unit's factor" },
|
||||
{ name => 'digits', type => 'int32',
|
||||
desc => "The new unit's digits" },
|
||||
{ name => 'symbol', type => 'string',
|
||||
{ name => 'symbol', type => 'string', non_empty => 1,
|
||||
desc => "The new unit's symbol" },
|
||||
{ name => 'abbreviation', type => 'string',
|
||||
{ name => 'abbreviation', type => 'string', non_empty => 1,
|
||||
desc => "The new unit's abbreviation" },
|
||||
{ name => 'singular', type => 'string',
|
||||
{ name => 'singular', type => 'string', non_empty => 1,
|
||||
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" }
|
||||
);
|
||||
|
||||
|
|
|
@ -1166,7 +1166,7 @@ HELP
|
|||
@inargs = (
|
||||
{ name => 'image', type => '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.' },
|
||||
{ name => 'merge', type => 'boolean',
|
||||
desc => 'Merge paths into a single vectors object.' },
|
||||
|
|
Loading…
Reference in New Issue