Michael Natterer
d6fd55064b
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
2007-04-25 14:23:05 +00:00
Sven Neumann
41237259c9
In all files, changed the standard copyright notice to say "GIMP - The GNU
...
2006-12-09 Sven Neumann <sven@gimp.org>
* In all files, changed the standard copyright notice to say
"GIMP - The GNU Image Manipulation Program".
2006-12-09 21:33:38 +00:00
Sven Neumann
fae8657c21
tools/pdbgen/app.pl removed code that used to fiddles with the argument
...
2006-05-18 Sven Neumann <sven@gimp.org>
* tools/pdbgen/app.pl
* tools/pdbgen/lib.pl: removed code that used to fiddles with
the
argument descriptions.
* tools/pdbgen/pdb/*.pdb: removed %%desc%% placeholder, added
some
missing argument descriptions.
* app/pdb/*_cmds.c
* libgimp/gimpdrawabletransform_pdb.c
* libgimp/gimpfloatingsel_pdb.c
* libgimp/gimpgradient_pdb.c
* libgimp/gimppainttools_pdb.c: regenerated.
* app/core/Makefile.am
* app/core/gimpparamspecs-desc.[ch] (gimp_param_spec_get_desc):
new function that creates a parameter description for the PDB.
* app/pdb/gimppdb-query.c
* app/pdb/procedural_db_cmds.c: use the new function to create
the
descriptions on the fly.
2006-05-18 17:25:15 +00:00
Michael Natterer
328345dc92
tools/pdbgen/pdb/brush.pdb tools/pdbgen/pdb/brushes.pdb
...
2006-03-24 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/brush.pdb
* tools/pdbgen/pdb/brushes.pdb
* tools/pdbgen/pdb/channel.pdb
* tools/pdbgen/pdb/color.pdb
* tools/pdbgen/pdb/display.pdb
* tools/pdbgen/pdb/drawable.pdb
* tools/pdbgen/pdb/drawable_transform.pdb
* tools/pdbgen/pdb/edit.pdb
* tools/pdbgen/pdb/fileops.pdb
* tools/pdbgen/pdb/floating_sel.pdb
* tools/pdbgen/pdb/gradient.pdb
* tools/pdbgen/pdb/gradient_select.pdb
* tools/pdbgen/pdb/gradients.pdb
* tools/pdbgen/pdb/image.pdb
* tools/pdbgen/pdb/layer.pdb
* tools/pdbgen/pdb/paint_tools.pdb
* tools/pdbgen/pdb/palette.pdb
* tools/pdbgen/pdb/palettes.pdb
* tools/pdbgen/pdb/patterns.pdb
* tools/pdbgen/pdb/plug_in.pdb
* tools/pdbgen/pdb/procedural_db.pdb
* tools/pdbgen/pdb/selection.pdb
* tools/pdbgen/pdb/selection_tools.pdb
* tools/pdbgen/pdb/text_tool.pdb
* tools/pdbgen/pdb/transform_tools.pdb
* tools/pdbgen/pdb/undo.pdb
* tools/pdbgen/pdb/vectors.pdb: replaced 'True', 'true' and
'non-zero' by 'TRUE' where appropriate. Added %%desc%% to enum arg
descriptions where missing. Get object names using
gimp_object_get_name(). Set 'success' more consistently. Removed
{ } from all enum arg descriptions...
* tools/pdbgen/app.pl (make_arg_recs): ...and add the { }
generically here. Removed some code that replaced the ',' by 'or'
for enums without { } so all enums are now documented the same.
* app/pdb/<some>_cmds.c
* libgimp/<some>_pdb.c: regenerated.
2006-03-24 21:57:47 +00:00
Michael Natterer
cfa086788a
removed std_image_arg(), std_antialias_arg() and std_orientation_enum().
...
2006-03-23 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/stddefs.pdb: removed std_image_arg(),
std_antialias_arg() and std_orientation_enum().
* tools/pdbgen/pdb/*.pdb: changed accordingly. Did a global
s/gimage/image/. Some more cleanup.
* tools/pdbgen/pdb/grid.pdb
* tools/pdbgen/pdb/guides.pdb: removed utility functions.
* tools/pdbgen/pdb/vectors.pdb: reordered procedures. Removed
obsolete procedure.
* app/pdb/channel_cmds.c
* app/pdb/convert_cmds.c
* app/pdb/display_cmds.c
* app/pdb/drawable_cmds.c
* app/pdb/fileops_cmds.c
* app/pdb/grid_cmds.c
* app/pdb/guides_cmds.c
* app/pdb/image_cmds.c
* app/pdb/layer_cmds.c
* app/pdb/parasite_cmds.c
* app/pdb/paths_cmds.c
* app/pdb/selection_cmds.c
* app/pdb/selection_tools_cmds.c
* app/pdb/text_tool_cmds.c
* app/pdb/undo_cmds.c
* app/pdb/vectors_cmds.c
* libgimp/gimpdrawable_pdb.c
* libgimp/gimpimage_pdb.[ch]
* libgimp/gimpvectors_pdb.[ch]: regenerated.
2006-03-23 21:17:16 +00:00
Michael Natterer
dfc1fbde62
tools/pdbgen/pdb/buffer.pdb tools/pdbgen/pdb/color.pdb
...
2006-03-22 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/buffer.pdb
* tools/pdbgen/pdb/color.pdb
* tools/pdbgen/pdb/display.pdb
* tools/pdbgen/pdb/drawable.pdb
* tools/pdbgen/pdb/drawable_transform.pdb
* tools/pdbgen/pdb/fileops.pdb
* tools/pdbgen/pdb/font_select.pdb
* tools/pdbgen/pdb/gimprc.pdb
* tools/pdbgen/pdb/layer.pdb
* tools/pdbgen/pdb/selection.pdb
* tools/pdbgen/pdb/text_tool.pdb
* tools/pdbgen/pdb/transform_tools.pdb: more perl stuff flattened,
cleanup, nitpickyness.
* app/pdb/buffer_cmds.c
* app/pdb/color_cmds.c
* app/pdb/display_cmds.c
* app/pdb/drawable_cmds.c
* app/pdb/layer_cmds.c
* app/pdb/selection_cmds.c
* libgimp/gimpselection_pdb.[ch]: regenerated.
2006-03-22 17:19:14 +00:00
Michael Natterer
04bf6d04f4
define init values for all pdb types.
...
2006-03-15 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb.pl: define init values for all pdb types.
* tools/pdbgen/app.pl: unconditionally initialize all return
values, and no parameter.
* tools/pdbgen/pdb/*.pdb: removed init => 1 from all arguments
and return values.
* app/pdb/*_cmds.c: regenerated.
2006-03-15 15:32:39 +00:00
Michael Natterer
2ff56f8dee
remove lots of perl crack: - create almost all parameter arrays manually
...
2006-03-14 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/*.pdb: remove lots of perl crack:
- create almost all parameter arrays manually instead of
generating them from utility functions
- removed lots of other utility functions
- moved variable declarations into the enclosed code snippets
where possible
- some cleanup and API doc fixes
* tools/pdbgen/stddefs.pdb: added some perl crack:
define utility functions for all contributors which own more than
some functions, so they can change their names and email addresses
at a central place.
* app/pdb/[many].c: regenerated.
* libgimp/gimpcolor_pdb.c
* libgimp/gimpdrawabletransform_pdb.c
* libgimp/gimptransformtools_pdb.c
* libgimp/gimpvectors_pdb.c: ditto. Changed affect only API docs.
2006-03-14 21:35:50 +00:00
Raphael Quinet
3f02051fb6
tools/pdbgen/pdb/buffer.pdb tools/pdbgen/pdb/color.pdb
...
2006-01-17 Raphael Quinet <raphael@gimp.org>
* tools/pdbgen/pdb/buffer.pdb
* tools/pdbgen/pdb/color.pdb
* tools/pdbgen/pdb/fileops.pdb
* tools/pdbgen/pdb/guides.pdb
* tools/pdbgen/pdb/palettes.pdb
* tools/pdbgen/pdb/paths.pdb
* tools/pdbgen/pdb/selection.pdb
* tools/pdbgen/pdb/selection_tools.pdb: removed trailing
whitespace in the parts of these files generating C code.
2006-01-17 13:35:20 +00:00
Michael Natterer
4503b4a217
added gimp-buffers-get-list, should probably get its own PDB group.
...
2005-09-27 Michael Natterer <mitch@gimp.org>
* tools/pdbgen/pdb/buffer.pdb: added gimp-buffers-get-list,
should probably get its own PDB group.
* libgimp/gimp.def: changed accordingly.
* app/pdb/buffer_cmds.c
* app/pdb/internal_procs.c
* libgimp/gimpbuffer_pdb.[ch]: regenerated.
2005-09-27 18:29:27 +00:00
Michael Natterer
30f1e8efc1
added gimp_buffer_get_bytes() and gimp_buffer_get_image_type().
...
2005-09-27 Michael Natterer <mitch@gimp.org>
* app/core/gimpbuffer.[ch]: added gimp_buffer_get_bytes()
and gimp_buffer_get_image_type().
* tools/pdbgen/pdb/edit.pdb: removed edit_named_rename() and
edit_named_delete().
* tools/pdbgen/Makefile.am
* tools/pdbgen/groups.pl
* tools/pdbgen/pdb/buffer.pdb: new PDB group featuring
buffer_rename(), delete(), get_width(), get_height(), get_bytes(),
get_image_type().
* app/pdb/Makefile.am
* libgimp/Makefile.am
* libgimp/gimp.def: changed accordingly.
* app/pdb/buffer_cmds.c
* app/pdb/edit_cmds.c
* app/pdb/internal_procs.c
* libgimp/gimp_pdb.h
* libgimp/gimpbuffer_pdb.[ch]
* libgimp/gimpedit_pdb.[ch]: (re)generated.
2005-09-27 09:05:55 +00:00