1. 11 Jul, 2018 1 commit
  2. 08 Jul, 2010 1 commit
  3. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      
      	* all files with a GPL header and all COPYING files:
      
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      
      
      svn path=/trunk/; revision=27913
      d9b5207a
  4. 12 Jul, 2008 1 commit
  5. 31 Oct, 2007 1 commit
  6. 26 Apr, 2007 1 commit
    • Michael Natterer's avatar
      renamed GimpParamSpecString's flag "no_validate" to "allow_non_utf8". · ff8ba7ea
      Michael Natterer authored
      2007-04-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: renamed GimpParamSpecString's
      	flag "no_validate" to "allow_non_utf8".
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/*.pdb: renamed argument flag
      	"no_validate" (which turns off utf8-validation for strings) to
      	"allow_non_utf8" and renamed "no_success" (which turns off
      	argument validation alltogether) to "no_validate".
      	Doesn't affect generated code.
      
      
      svn path=/trunk/; revision=22350
      ff8ba7ea
  7. 25 Apr, 2007 1 commit
    • Michael Natterer's avatar
      added "gboolean non_empty" to require the string being non-empty. Changed · d6fd5506
      Michael Natterer authored
      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
      d6fd5506
  8. 09 Dec, 2006 1 commit
  9. 06 May, 2006 1 commit
    • Michael Natterer's avatar
      added "gboolean none_ok" members to GimpParamSpecImageID, · 66a66b32
      Michael Natterer authored
      2006-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: added "gboolean none_ok" members
      	to GimpParamSpecImageID, GimpParamSpecItemID and
      	GimpParamSpecDisplayID.  If none_ok is set, allow '0' and '-1' as
      	valid IDs. Added "none_ok" parameter to all ID param spec
      	constructors.
      
      	* app/pdb/gimp-pdb-compat.c: set none_ok to TRUE in all compat
      	param specs, so only IDs that are really random garbage don't pass
      	validation. Fixes validation errors with 0 and -1 IDs.
      
      	* tools/pdbgen/app.pl: set none_ok to FALSE by default. Added
      	support for $arg->{none_ok} to control it.
      
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/progress.pdb
      	* tools/pdbgen/pdb/text_tool.pdb: use none_ok instead of
      	no_success (which disables validation entirely).
      
      	* app/pdb/[many]_cmds.c: regenerated.
      66a66b32
  10. 03 Apr, 2006 1 commit
    • Michael Natterer's avatar
      added a shitload of new GTypes and corresponding GParamSpecs to use them · 070a3625
      Michael Natterer authored
      2006-04-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: added a shitload of new GTypes and
      	corresponding GParamSpecs to use them as PDB arguments.
      	Each GimpPDBArgType has one or more corresponding GTypes in the
      	core now.
      
      	* app/pdb/gimpargument.[ch] (struct GimpArgument)
      	(struct GimpArgumentSpec): removed "value" member because the
      	GValue's/GParamSpec's GType carries just as much information now.
      
      	(gimp_argument_type_to_pdb_arg_type): new function which maps
      	GTypes to GimpPDBArgType.
      
      	(gimp_pdb_arg_type_to_string): formerly known as
      	procedural_db_type_name().
      
      	* app/pdb/gimpprocedure.[ch]
      	* app/pdb/procedural_db.[ch]: completely switch to GValue. Use the
      	new GParamSpecs for procedure arguments. GimpPDBArgType is only
      	used for adding compat args/values of plug-in procedures.
      
      	(procedural_db_run_proc): the va_list expects a sequence of
      	(GType, value, GType, value, ..., G_TYPE_NONE) now.
      
      	* app/plug-in/plug-in-params.[ch]: changed accordingly.
      
      	(plug_in_param_defs_check): removed this function.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install): use
      	plug_in_proc_args_check() instead and initialize the GimpProcedure
      	before doing so.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb.pl: use the new param spec types and their
      	utility functions. Changed argument/value registration
      	accordingly.
      
      	* app/pdb/procedural-db-query.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/dialogs/about-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      070a3625
  11. 02 Apr, 2006 1 commit
    • Michael Natterer's avatar
      removed GIMP_TYPE_PARASITE, GIMP_TYPE_PARAM_PARASITE and the GimpRGB · 8a856045
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: removed GIMP_TYPE_PARASITE,
      	GIMP_TYPE_PARAM_PARASITE and the GimpRGB utility functions. Some
      	fixes/cleanup in the new array and string array code.
      
      	* libgimpbase/gimpbase.def
      	* libgimpbase/gimpparasite.[ch]
      	* libgimpcolor/gimpcolor.def
      	* libgimpcolor/gimprgb.[ch]: added the parasite and rgb stuff here.
      
      	* app/pdb/gimpargument.c: #include "libgimpbase/gimpbase.h"
      
      	* app/pdb/procedural_db.c: removed unused variable.
      8a856045
  12. 01 Apr, 2006 1 commit
    • Michael Natterer's avatar
      added struct GimpArray which can keep static or allocated data. Added · d05d512d
      Michael Natterer authored
      2006-04-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch]: added struct GimpArray which can
      	keep static or allocated data. Added boxed types GIMP_TYPE_ARRAY
      	and GIMP_TYPE_STRING_ARRAY. Added GParamSpecs for PDB int32,
      	int16, int8, float and string arrays. Added functions to get, dup,
      	set and set_static the various arrays from/to GValues.
      
      	* app/pdb/gimpprocedure.c
      	* app/pdb/procedural_db.c
      	* app/plug-in/plug-in-params.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb.pl: use the new param pspecs and gimp_value
      	functions to keep arrays in GimpArguments.
      
      	* app/pdb/gimpargument.[ch] (gimp_arguments_destroy): removed
      	parameter "gboolean full_destroy". It's not needed any longer
      	because the GValues fully memory-manage all their data now.
      
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/dialogs/about-dialog.c
      	* app/dialogs/print-size-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppdbdialog.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/buffer_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/fonts_cmds.c
      	* app/pdb/gimpargument.c
      	* app/pdb/gimpargument.h
      	* app/pdb/gimpprocedure.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/pattern_cmds.c
      	* app/pdb/patterns_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/procedural_db.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/vectors_cmds.c: regenerated.
      
      	... and ported everything to perl btw...
      d05d512d
  13. 29 Mar, 2006 1 commit
  14. 28 Mar, 2006 1 commit
    • Michael Natterer's avatar
      reordered params to be consistent with other param specs. · aead1803
      Michael Natterer authored
      2006-03-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpparamspecs.[ch] (gimp_param_spec_string): reordered
      	params to be consistent with other param specs.
      
      	(gimp_value_get_rgb): utility function which reads the value
      	into a GimpRGB struct, instead of returning a pointer.
      
      	(gimp_value_set_rgb): added for symmetry. Just calls
      	g_value_set_boxed().
      aead1803
  15. 27 Mar, 2006 1 commit