1. 11 Jul, 2018 1 commit
  2. 15 Apr, 2018 1 commit
    • Michael Natterer's avatar
      pdb: improve docs of deprecated functions · ef3edece
      Michael Natterer authored
      Don't unconditionally overwrite all the proc's description, author
      etc.  Instead, try to preserve them and append the "Deprecated" notes
      to the help texts and generated comments.
      
      Only affects one procedure because we killed the meta info of all
      other deprecated procs so far, but now we don't have to do that any
      longer.
      ef3edece
  3. 17 Mar, 2018 1 commit
  4. 17 Dec, 2017 5 commits
  5. 04 Jan, 2016 1 commit
  6. 27 Sep, 2013 1 commit
    • Jehan's avatar
      Bug 708033 - Add paragraph support for the long description in pdbgen · 9563a614
      Jehan authored
      Single newlines in procedure descriptions are still considered normal
      spaces. But 2 newlines are transformed into 1 newline. 3 newlines into
      2 newlines. And so on.
      This allows for a start of nicer output in the procedure browser or C
      file comments (and consequently in generated html doc).
      9563a614
  7. 26 Sep, 2013 1 commit
  8. 28 May, 2012 1 commit
  9. 03 May, 2012 2 commits
  10. 02 May, 2012 1 commit
  11. 06 Nov, 2011 1 commit
    • Michael Natterer's avatar
      pdbgen: make it work with a read-only srcdir · 44752a0f
      Michael Natterer authored
      Pass srcdir *and* builddir to all pdbgen scripts, and generate all
      temp files in $builddir. They get copied for $srcdir only if they have
      actually changed, which should never happen on distcheck.
      44752a0f
  12. 08 Oct, 2011 1 commit
  13. 04 Sep, 2010 1 commit
  14. 09 Jul, 2010 1 commit
    • Michael Natterer's avatar
      pdb: add a new PDB group "item" and move lots of functions to it · 2d6f808f
      Michael Natterer authored
      The item groups has all the duplicated functionality from drawable
      and vectors (name, visible, linked etc).
      
      Hijack the unused GIMP_PDB_REGION and turn it into GIMP_PDB_ITEM;
      change all protocol aware files accordingly and bump the protocol
      version number. Change script-fu to handle the new type.
      2d6f808f
  15. 05 Jun, 2010 1 commit
    • Michael Natterer's avatar
      Bug 620604 - Description of "histogram" procedure is slightly inaccurate · 9dd373d8
      Michael Natterer authored
      Fix totally broken value ranges of integer PDB parameters. Magically,
      the bug was affecting only exactly the two cases mentioned in above
      bug report.
      
      * tools/pdbgen/pdb.pl (arg_parse): return <, <=, > and >= literally
        instead of applying a mapping that was originally meant for
        generated C code that would e.g. transform "0 <= int32 < 10" into
        "if (value < 0 || value >= 10) fail". This inversion of all
        operators is now wrong because PDB parameters have been turned into
        GParamSpecs which always need inclusive ranges as min and max
        values.
      
      * tools/pdbgen/pdbgen.pl (arrayexpand): generated array length type
        specs must be "0 <= int32", not "0 < int32".
      
      * tools/pdbgen/app.pl: when generating integer param specs, check if
        the value range is specified in terms of < instead of <=, and
        add/subtract 1, resuting in the inclusive range needed for integer
        GParamSpecs.
      
      * app/pdb/color-cmds.c: regenerated, fixing the two broken ranges
        mentioned in the bug report.
      9dd373d8
  16. 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
  17. 09 Oct, 2008 1 commit
    • Michael Natterer's avatar
      Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a · 5503e6a0
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h
      	had a GEGL dependency (they will have in the next commit, but I
      	wanted to keep the commit separate).
      
      	* app/dialogs/Makefile.am
      	* app/file/Makefile.am
      	* app/gui/Makefile.am
      	* app/menus/Makefile.am
      	* app/paint/Makefile.am
      	* app/plug-in/Makefile.am
      	* app/text/Makefile.am
      	* app/vectors/Makefile.am
      	* app/widgets/Makefile.am
      	* app/xcf/Makefile.am: add GEGL_CFLAGS.
      
      	* app/actions/*.c
      	* app/core/*.c
      	* app/dialogs/*.c
      	* app/display/*.c
      	* app/file/*.c
      	* app/gui/*.c
      	* app/menus/*.c
      	* app/paint/*.c
      	* app/pdb/gimppdb-utils.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/*.c
      	* app/text/*.c
      	* app/tools/*.c
      	* app/vectors/*.c
      	* app/widgets/*.c
      	* app/xcf/*.c: add <gegl.h> or replace <glib-object.h> by <gegl.h>
      	to all files which include a drawable subclass or gimpimage.h
      
      	* tools/pdbgen/app.pl: include <gegl.h> instead of <glib-object.h>
      	in all generated files.
      
      	* app/pdb/*-cmds.c: regenerated.
      
      	* data/images/gimp-splash.png: the goat is still sleeping.
      	By Aurore Derriennic.
      
      
      svn path=/trunk/; revision=27202
      5503e6a0
  18. 16 Aug, 2008 1 commit
    • Sven Neumann's avatar
      If a procedure call fails, pass a string describing the error as the · f84608d5
      Sven Neumann authored
      2008-08-16  Sven Neumann  <sven@gimp.org>
      
      	If a procedure call fails, pass a string describing the error as
      	the second return value. First step towars fixing bug #344818.
      
      	* app/pdb/gimpprocedure.[ch] (gimp_procedure_get_return_values):
      	added a GError parameter. If it is set, pass the error message 
      to
      	the return values.
      
      	* app/pdb/gimppdberror.h: added some more error codes.
      
      	* app/pdb/gimppdb.c
      	* app/xcf/xcf.c: pass errors to 
      gimp_procedure_get_return_values().
      
      	* app/plug-in/gimpplugin-message.c 
      (gimp_plug_in_handle_proc_run):
      	show a different error message for execution vs. calling errors.
      
      	* app/plug-in/gimpplugin-progress.c
      	(gimp_plug_in_progress_cancel_callback): pass the error
      	GIMP_PDB_CANCELLED to gimp_procedure_get_return_values().
      
      	* app/plug-in/gimppluginmanager-call.[ch]
      	(gimp_plug_in_manager_call_run): removed the 
      'destroy_return_vals'
      	parameter.
      
      	* app/plug-in/gimppluginprocedure.c: destroy the return values 
      here.
      
      	* app/plug-in/gimppluginprocframe.c: pass an error to
      	gimp_procedure_get_return_values().
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/fileops.pdb: generate code that passes the
      	error to gimp_procedure_get_return_values().
      
      	* app/pdb/*-cmds.c: regenerated.
      	
      	* plug-ins/pygimp/pygimp-pdb.c: extract the error message from 
      the
      	return values and pass it to the exception that is thrown.
      
      
      svn path=/trunk/; revision=26593
      f84608d5
  19. 14 Jul, 2008 1 commit
    • Sven Neumann's avatar
      added support for color arrays. · bad4568f
      Sven Neumann authored
      2008-07-14  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/app.pl: added support for color arrays.
      
      
      svn path=/trunk/; revision=26191
      bad4568f
  20. 04 Apr, 2008 2 commits
    • Sven Neumann's avatar
      changed the names of the generated files. · b8e46959
      Sven Neumann authored
      2008-04-04  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/app.pl: changed the names of the generated files.
      
      	* app/pdb/Makefile.am
      	* app/pdb/*cmds.c: renamed.
      
      svn path=/trunk/; revision=25359
      b8e46959
    • Sven Neumann's avatar
      cosmetic change in the generated code. · ccce5a29
      Sven Neumann authored
      2008-04-04  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/app.pl: cosmetic change in the generated code.
      
      	* app/pdb/*_cmds.c: regenerated.
      
      svn path=/trunk/; revision=25358
      ccce5a29
  21. 02 Apr, 2008 1 commit
  22. 21 Feb, 2008 1 commit
    • Sven Neumann's avatar
      insert a missing newline for procedures without additional return values. · 698810f4
      Sven Neumann authored
      2008-02-21  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/app.pl (marshal_outargs): insert a missing newline
      	for procedures without additional return values.
      
      	* tools/pdbgen/pdb/display.pdb: cosmetics.
      
      	* app/pdb/brushes_cmds.c
      	* app/pdb/context_cmds.c
      	* app/pdb/display_cmds.c
      	* app/pdb/fonts_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/patterns_cmds.c: regenerated.
      
      svn path=/trunk/; revision=24933
      698810f4
  23. 07 Feb, 2008 2 commits
    • Michael Natterer's avatar
      add some perl evilness to make the includes in the generated files look · dc490d3b
      Michael Natterer authored
      2008-02-07  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/app.pl: add some perl evilness to make the includes
      	in the generated files look almost like they should.
      
      	* tools/pdbgen/pdb/*.pdb: remove inclusion of "core/gimp.h" where
      	not needed, clean up lists of includes and functions and reorder
      	some functions to make more sense. Zero logic changed.
      
      	* app/pdb/*_cmds.c
      	* libgimp/gimpcontext_pdb.[ch]
      	* libgimp/gimpbrush_pdb.[ch]: regenerated.
      
      
      svn path=/trunk/; revision=24829
      dc490d3b
    • Michael Natterer's avatar
      add get_pid() which returns getpid(). · 3a66deae
      Michael Natterer authored
      2008-02-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/base-utils.[ch]: add get_pid() which returns getpid().
      
      	* app/base/base.c
      	* app/base/tile-swap.c
      	* app/core/gimp-utils.c
      	* app/plug-in/gimppluginshm.c
      	* app/widgets/gimpselectiondata.c
      	* tools/pdbgen/pdb/misc.pdb: use it instead of getpid() and remove
      	all the #ifdef'ed includes getpid() needs.
      
      	* tools/pdbgen/app.pl: remove support for these includes. Also
      	remove some perl cruft in the include handling which is not needed
      	any longer.
      
      	* app/pdb/misc_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24827
      3a66deae
  24. 02 Dec, 2007 1 commit
    • Sven Neumann's avatar
      use GError for error reporting in PDB invoker methods. · 915ac64a
      Sven Neumann authored
      2007-12-02  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/app.pl: use GError for error reporting in PDB
      	invoker methods.
      
      	* tools/pdbgen/pdb/vectors.pdb: use the GError for the 
      procedures
      	introduced for bug #497159.
      
      	* tools/pdbgen/pdb/fileops.pdb: use the GError from file-load 
      and
      	file-save procedures.
      
      	* app/pdb/*_cmds.c: regenerated.
      
      	* app/pdb/Makefile.am
      
      	* app/pdb/gimppdberror.[ch]: new file introducing the
      	GIMP_PDB_ERROR domain.
      
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/batch.c
      	* app/core/gimpimagefile.c
      	* app/core/gimppdbprogress.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.c
      	* app/plug-in/gimpplugin-message.c
      	* app/plug-in/gimppluginmanager-restore.c
      	* app/plug-in/gimppluginprocedure.c
      	* app/plug-in/gimptemporaryprocedure.c
      	* app/plug-in/plug-in-icc-profile.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
      	* app/widgets/gimppdbdialog.[ch]: changed accordingly.
      
      
      svn path=/trunk/; revision=24255
      915ac64a
  25. 01 Nov, 2007 1 commit
    • Manish Singh's avatar
      app/core/gimpcontainer-filter.c app/pdb/gimppdb-query.c replace usage of · a8fb4f0c
      Manish Singh authored
      2007-11-01  Manish Singh  <yosh@gimp.org>
      
              * app/core/gimpcontainer-filter.c
              * app/pdb/gimppdb-query.c
              * app/plug-in/gimppluginmanager-query.c: replace usage of POSIX
              regex API with GRegex.
      
              * configure.in: remove check for regex support in glibc.
      
              * app/Makefile.am
              * plug-ins/script-fu/Makefile.am: remove REGEXREPL references.
      
              * tools/pdbgen/app.pl: remove code that references HAVE_GLIBC_REGEX.
      
              * regexrepl/*
              * makefile.msc
              * Makefile.am: remove regexrepl directory.
      
      svn path=/trunk/; revision=24024
      a8fb4f0c
  26. 05 May, 2007 1 commit
  27. 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
  28. 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
  29. 09 Jan, 2007 1 commit
    • Sven Neumann's avatar
      HACKING tools/pdbgen/lib.pl fixed spelling of "auto-generated". · dcc6ebd1
      Sven Neumann authored
      2007-01-09  Sven Neumann  <sven@gimp.org>
      
      	* HACKING
      	* tools/pdbgen/lib.pl
      	* tools/pdbgen/app.pl: fixed spelling of "auto-generated".
      
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb: improved wording and fixed
      	spelling errors.
      	
      	* libgimp/gimp.c: fixed spelling errors.
      
      	* app/pdb/*.h: 
      	* libgimp/gimp*_pdb.[ch]: regenerated.
      
      
      svn path=/trunk/; revision=21676
      dcc6ebd1
  30. 09 Dec, 2006 1 commit
  31. 31 Oct, 2006 1 commit
  32. 19 May, 2006 1 commit
    • Michael Natterer's avatar
      turn c_style_procedure_names() in $proc->{help} into · ca1fb7b7
      Michael Natterer authored
      2006-05-19  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/app.pl: turn c_style_procedure_names() in
      	$proc->{help} into 'canonical-procedure-names'.
      
      	* tools/pdbgen/pdb/color.pdb: std_pdb_deprecated() expects
      	canonical procedure names.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/drawable_transform_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/progress_cmds.c: regenerated.
      ca1fb7b7
  33. 18 May, 2006 1 commit
    • Sven Neumann's avatar
      tools/pdbgen/app.pl removed code that used to fiddles with the argument · fae8657c
      Sven Neumann authored
      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.
      fae8657c