1. 12 Jul, 2010 1 commit
  2. 08 Jul, 2010 1 commit
  3. 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
  4. 29 Aug, 2009 1 commit
  5. 20 Aug, 2009 1 commit
    • Michael Natterer's avatar
      Don't modify locked items from PDB wrappers · 28061c23
      Michael Natterer authored
      * app/pdb/gimppdb-utils.[ch]: add "gboolean writable" parameter to
        gimp_pdb_item_is_attached() because this function is called on
        almost all items where a check for locked is needed.
      
      * tools/pdbgen/pdb/*.pdb: pass writable = TRUE in all checks for items
        that are modified. Add explicit calls to gimp_pdb_item_is_writable()
        in some rare cases.
      
      * app/pdb/*-cmds.c: regenerated.
      28061c23
  6. 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
  7. 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
  8. 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
  9. 21 May, 2008 1 commit
    • Sven Neumann's avatar
      app/core/Makefile.am new file holding code to apply a PixelProcessor to · a786d4de
      Sven Neumann authored
      2008-05-21  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-process.[ch]: new file holding code to
      	apply a PixelProcessor to the full drawable.
      
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-invert.c: use the new helper function.
      
      	* app/core/gimpdrawable-desaturate.[ch] 
      (gimp_drawable_desaturate):
      	take a GimpProgress parameter.
      
      	* tools/pdbgen/pdb/color.pdb: changed accordingly.
      
      	* app/pdb/color-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=25734
      a786d4de
  10. 20 Apr, 2008 1 commit
    • Michael Natterer's avatar
      replaced unused parameter "context" by "progress" and pass the progress on · 4c2a0f58
      Michael Natterer authored
      2008-04-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable-levels.[ch]: replaced unused parameter
      	"context" by "progress" and pass the progress on internally.
      	Factor common code out to gimp_drawable_levels_internal().
      
      	* tools/pdbgen/pdb/color.pdb: pass progress instead of context.
      
      	* app/pdb/color-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=25501
      4c2a0f58
  11. 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
  12. 09 Feb, 2008 1 commit
    • Michael Natterer's avatar
      don't include <gegl.h> · a0bcf5f0
      Michael Natterer authored
      2008-02-09  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/color.pdb: don't include <gegl.h>
      
      	* app/pdb/color_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24844
      a0bcf5f0
  13. 07 Feb, 2008 1 commit
    • 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
  14. 04 Feb, 2008 3 commits
    • Michael Natterer's avatar
      add refcounting and replace free() API by ref() and unref(). · 50ad5cfd
      Michael Natterer authored
      2008-02-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/gimphistogram.[ch]: add refcounting and replace free()
      	API by ref() and unref().
      
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-levels.c
      	* app/widgets/gimphistogrameditor.c
      	* tools/pdbgen/pdb/color.pdb: replace calls to
      	gimp_histogram_free() by gimp_histogram_unref().
      
      	* app/pdb/color_cmds.c: regenerated.
      
      	* app/widgets/gimphistogramview.c: reference the histograms so we
      	don't need the widget's users to keep them around while the widget
      	exists.
      
      	* app/tools/gimpcurvestool.[ch]: remove the histogram from the
      	tool struct and just create one locally to set it on the histogram
      	view widget.
      
      	Unrelated:
      
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpthresholdtool.[ch]: renamed "hist" members to
      	"histogram" plus some cleanup.
      
      
      svn path=/trunk/; revision=24792
      50ad5cfd
    • Michael Natterer's avatar
      add gimp_pdb_item_is_attached() which is a replacement for · 9d3850bc
      Michael Natterer authored
      2008-02-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/gimppdb-utils.[ch]: add gimp_pdb_item_is_attached()
      	which is a replacement for gimp_item_is_attached() and returns a
      	proper error message.
      
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: use it.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/drawable_transform_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24790
      9d3850bc
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/gimpdrawable-brightness-contrast.[ch] · 3a9f7d7c
      Michael Natterer authored
      2008-02-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-brightness-contrast.[ch]
      	* app/core/gimpdrawable-color-balance.[ch]
      	* app/core/gimpdrawable-colorize.[ch]
      	* app/core/gimpdrawable-curves.[ch]
      	* app/core/gimpdrawable-hue-saturation.[ch]
      	* app/core/gimpdrawable-posterize.[ch]
      	* app/core/gimpdrawable-threshold.[ch]: new files containing all
      	the code that was in pdb/color_cmds.c. Cleaned up and GEGL-enabled
      	everyting.
      
      	* tools/pdbgen/pdb/color.pdb: remove almost all code and simply call
      	the new functions.
      
      	* app/pdb/color_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24784
      3a9f7d7c
  15. 22 Jan, 2008 1 commit
    • Sven Neumann's avatar
      added new function gimp_use_gegl(). · 64880a81
      Sven Neumann authored
      2008-01-22  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp.[ch]: added new function gimp_use_gegl().
      
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-levels.c
      	* app/core/gimpdrawable-invert.c
      	* app/tools/gimpimagemaptool.c
      	* app/pdb/color_cmds.c
      	* tools/pdbgen/pdb/color.pdb: use it instead of accessing the
      	GimpCoreConfig struct directly.
      
      svn path=/trunk/; revision=24668
      64880a81
  16. 04 Jan, 2008 1 commit
    • Michael Natterer's avatar
      optionally use gegl where we already have operations (breaking the · 45b2a5e0
      Michael Natterer authored
      2008-01-04  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/color.pdb: optionally use gegl where we already
      	have operations (breaking the indentation to keep the diff small
      	and readable).
      
      	* app/pdb/Makefile.am: add GEGL_CFLAGS.
      
      	* app/pdb/color_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24531
      45b2a5e0
  17. 29 Dec, 2007 1 commit
    • Sven Neumann's avatar
      let gimp_drawable_invert() take a GimpProgress parameter. · ff768c52
      Sven Neumann authored
      2007-12-30  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-invert.[ch]: let gimp_drawable_invert()
      	take a GimpProgress parameter.
      
      	* tools/pdbgen/pdb/color.pdb
      	* app/pdb/color_cmds.c
      	* app/actions/drawable-commands.c: changed accordingly.
      
      
      svn path=/trunk/; revision=24473
      ff768c52
  18. 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
  19. 05 Nov, 2007 1 commit
    • Michael Natterer's avatar
      don't recalculate the curve if the data object is frozen. Recalculate on · 21b3675e
      Michael Natterer authored
      2007-11-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcurve.[ch]: don't recalculate the curve if the data
      	object is frozen. Recalculate on thaw instead. Made
      	gimp_curve_calculate() private and emit some GimpData::dirty
      	signals where appropriate.
      
      	* app/tools/gimpcurvestool.c
      	* app/widgets/gimpcurveview.c
      	* tools/pdbgen/pdb/color.pdb: changed accodingly (connect to "dirty"
      	instead of "notify" and added some freeze/thaw where approproate).
      
      	* app/pdb/color_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24063
      21b3675e
  20. 02 Nov, 2007 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h app/core/gimpcurve-save.[ch] · 5dd23ae1
      Michael Natterer authored
      2007-11-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpcurve-save.[ch]
      	* app/core/gimpcurve-load.[ch]
      	* app/core/gimpcurve.[ch]: new GimpData subclass which keeps a
      	curve as known from the curves tool. Pretty much unfinished, but
      	can do everything that used to be done by base/curves.c and more.
      
      	* app/base/curves.[ch]: stripped down to plain arrays of
      	uchar (the actual curve) and the LUT setup function. All the rest
      	is done by GimpCurve now.
      
      	* app/tools/gimpcurvestool.[ch]: use an array of GimpCurves
      	instead of the old Curves cruft. Use Curves only for the last step
      	of creating the LUT. Pretty much unfinished migration here too.
      
      	* tools/pdbgen/pdb/color.pdb: use a GimpCurve here too.
      
      	* app/pdb/color_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24041
      5dd23ae1
  21. 18 Jan, 2007 1 commit
    • Michael Natterer's avatar
      regenerated. · b2c47361
      Michael Natterer authored
      2007-01-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/color_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=21732
      b2c47361
  22. 09 Jan, 2007 2 commits
    • Sven Neumann's avatar
      regenerated · 354434bf
      Sven Neumann authored
      svn path=/trunk/; revision=21679
      354434bf
    • 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
  23. 09 Dec, 2006 1 commit
  24. 31 Oct, 2006 1 commit
  25. 13 Sep, 2006 1 commit
    • Sven Neumann's avatar
      tools/pdbgen/pdb/color.pdb tools/pdbgen/pdb/drawable.pdb · 1303b872
      Sven Neumann authored
      2006-09-13  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: use the canonical form
      when
      	refering to parameters in the procedure description.
      1303b872
  26. 14 Jun, 2006 1 commit
    • Michael Natterer's avatar
      in help texts, refer to other procedures using_c_syntax(). This way · e4e581cc
      Michael Natterer authored
      2006-06-14  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/[many].pdb: in help texts, refer to other
      	procedures using_c_syntax(). This way gtk-doc can cross-reference
      	them correctly in libgimp, and app.pl will transform them
      	'to-canonical-names' for PDB registering.
      
      	* app/pdb/[many]_cmds.c
      	* libgimp/[many]_pdb.c: regenerated.
      e4e581cc
  27. 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
  28. 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
  29. 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
  30. 26 Apr, 2006 1 commit
    • Michael Natterer's avatar
      app/pdb/Makefile.am app/pdb/pdb-types.h new object GimpPDB which keeps all · f65bd53e
      Michael Natterer authored
      2006-04-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/pdb-types.h
      	* app/pdb/gimppdb.[ch]: new object GimpPDB which keeps all
      	procedures and functions to register and run them. Renamed all
      	functions and did some cleanups.
      
      	* app/pdb/gimp-pdb.[ch]
      	* app/core/gimp.[ch]: removed the same stuff here.
      
      	* app/pdb/gimp-pdb-query.[ch]: removed these files...
      
      	* app/pdb/gimppdb-query.[ch]: ...added here as members of GimpPDB.
      
      	* app/pdb/gimp-pdb-compat.h: fix include guard.
      
      	* app/batch.c
      	* app/actions/vectors-commands.c
      	* app/dialogs/about-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimphelp.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed includes and function
      	calls accordingly.
      
      	* tools/pdbgen/app.pl: pass around GimpPDB instead of Gimp
      	pointers to register the internal procedures with. Changed some
      	newlines in the generated code.
      
      	* app/pdb/*_cmds.c
      	* app/pdb/internal_procs.[ch]: regenerated.
      
      	* app/core/gimppdbprogress.[ch]
      	* app/widgets/gimppdbdialog.[ch]: added "pdb" CONSTRUCT_ONLY
      	properties.
      
      	* app/plug-in/plug-in-progress.c
      	* app/gui/gui-vtable.c: pass gimp->pdb when creating them.
      
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c: use the new local pdb pointers
      	instead of some foo->bar->gimp->pdb overkill.
      f65bd53e
  31. 07 Apr, 2006 4 commits
    • Michael Natterer's avatar
      added flag "guint static_name : 1" and new APIs · c03c336c
      Michael Natterer authored
      2006-04-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpobject.[ch]: added flag "guint static_name : 1" and
      	new APIs gimp_object_set_static_name() and _take_name().
      
      	* app/pdb/gimpprocedure.[ch]: removed member "name". Use
      	GimpObject's name instead.
      
      	* app/actions/plug-in-actions.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/menus/plug-in-menus.c
      	* app/pdb/gimp-pdb-query.c
      	* app/pdb/gimp-pdb.c
      	* app/pdb/gimppluginprocedure.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-ins-query.c
      	* app/plug-in/plug-ins.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/fileops.pdb: use GimpObject API to set/get
      	a procedure's name.
      
      	* app/pdb/*_cmds.c: regenerated.
      c03c336c
    • Sven Neumann's avatar
      renamed gimp_drawable_shadow() to gimp_drawable_get_shadow_tiles(). · cfd7233b
      Sven Neumann authored
      2006-04-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: renamed gimp_drawable_shadow() to
      	gimp_drawable_get_shadow_tiles().
      
      	* app/core/gimpimage.[ch]: renamed gimp_image_shadow() to
      	gimp_image_get_shadow_tiles() and gimp_image_free_shadow() to
      	gimp_image_free_shadow_tiles().
      
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-levels.c
      	* app/core/gimpimagemap.c
      	* app/plug-in/plug-in-message.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      cfd7233b
    • Sven Neumann's avatar
      renamed gimp_drawable_data() to gimp_drawable_get_tiles(). · cef9db57
      Sven Neumann authored
      2006-04-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: renamed gimp_drawable_data() to
      	gimp_drawable_get_tiles().
      
      	[lots of files]: changed accordingly.
      cef9db57
    • Michael Natterer's avatar
      ref all registered procedures. · 5f211479
      Michael Natterer authored
      2006-04-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/gimp-pdb.c (gimp_pdb_register)
      	(gimp_pdb_unregister): ref all registered procedures.
      
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl: unref newly created procedures after
      	registering them.
      
      	* app/core/gimp.[ch]: renamed member "plug_in_proc_defs" to
      	"plug_in_procedures". Renamed "proc_def" variables to "procedure".
      
      	* app/actions/plug-in-actions.c
      	* app/menus/plug-in-menus.c: changed accordingly.
      
      	* app/plug-in/plug-ins.[ch]: keep a reference to all procs which
      	are in gimp->plug_in_procedures.
      
      	(plug_ins_exit): unref them all and free the list. Apparently we
      	were leaking them before on exit.
      
      	* app/plug-in/plug-in-def.[ch]: s/proc_defs/procedures/. Ref
      	procedures added with plug_in_def_add_procedure(). Added
      	plug_in_def_remove_procedure() which unrefs them again. Removed
      	"free_proc_defs" parameter from plug_in_def_free() and always
      	unref the procedures.
      
      	* app/plug-in/plug-in.[ch]: added plug_in_add_temp_proc() and
      	plug_in_remove_temp() proc. Ref the added procedures.
      
      	* app/plug-in/plug-in-message.c: use the new APIs instead of
      	adding/removing procs and temp procs from their lists manually.
      	Unref the newly created procedure after adding then to the
      	plug_in_def or plug_in.
      
      	* app/plug-in/plug-in-rc.[ch]
      	* app/plug-in/plug-ins-query.c
      	* tools/pdbgen/pdb/plug_in.pdb: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      5f211479
  32. 06 Apr, 2006 1 commit
    • Michael Natterer's avatar
      app/plug-in/Makefile.am app/plug-in/plug-in-types.h removed... · 7e258dfa
      Michael Natterer authored
      2006-04-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/Makefile.am
      	* app/plug-in/plug-in-types.h
      	* app/plug-in/plug-in-proc-def.[ch]: removed...
      
      	* app/pdb/Makefile.am
      	* app/pdb/pdb-types.h
      	* app/pdb/gimppluginprocedure.[ch]: ...and added here. Virtualized
      	get_progname().
      
      	* app/pdb/gimptemporaryprocedure.[ch]: new class derived from
      	GimpPlugInProcedure.
      
      	* app/pdb/gimpprocedure.[ch] (struct GimpProcedure): remove union
      	exec_method and all the structs it needed. Procedure execution is
      	properly virtualized now. Removed gimp_procedure_initialize() and
      	grow the args and values arrays dynamically in
      	gimp_procedure_add_argument()/return_value(). Added marshal_func
      	parameter to gimp_procedure_new().
      
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.c
      	* app/core/gimp-gui.c
      	* app/dialogs/file-save-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/file/file-utils.c
      	* app/gui/gui-vtable.c
      	* app/menus/plug-in-menus.c
      	* app/plug-in/plug-in-def.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.c
      	* app/plug-in/plug-in.c
      	* app/plug-in/plug-ins-query.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfileprocview.c
      	* app/widgets/gimppluginaction.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/app.pl: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      
      	* app/pdb/gimp-pdb.c: added uglyness to make the app link again.
      7e258dfa
  33. 04 Apr, 2006 1 commit
    • Michael Natterer's avatar
      made it a GObject. Removed member "static_proc". Renamed · ee0ebc09
      Michael Natterer authored
      2006-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/gimpprocedure.[ch]: made it a GObject. Removed member
      	"static_proc". Renamed gimp_procedure_init() to
      	gimp_procedure_initialize().
      
      	* app/pdb/gimp-pdb.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-proc-def.c
      	* app/plug-in/plug-in-rc.c
      	* app/xcf/xcf.c: changed accordingly.
      
      	* tools/pdbgen/app.pl: register all internal procs
      	dynamically. The static proc structs are gone.
      
      	* tools/pdbgen/pdb/fileops.pdb: cosmetic change.
      
      	* app/pdb/*_cmds.c: regenerated.
      ee0ebc09