1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 05 Jul, 2007 1 commit
    • Sven Neumann's avatar
      allow the use of constants when specifying limits for a PDB type. · 933be6a8
      Sven Neumann authored
      2007-07-05  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb.pl (arg_parse): allow the use of constants when
      	specifying limits for a PDB type.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: use GIMP_MAX_IMAGE_SIZE as limit for
      	image and drawable sizes.
      
      	* tools/pdbgen/pdb/selection_tools.pdb: added missing include.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      
      svn path=/trunk/; revision=22870
      933be6a8
  8. 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
  9. 09 Dec, 2006 1 commit
  10. 31 Oct, 2006 1 commit
  11. 20 Oct, 2006 1 commit
    • Michael Natterer's avatar
      tools/pdbgen/stddefs.pdb added wrapper for gimp-round-rect-select. Added · 046fa38b
      Michael Natterer authored
      2006-10-20  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/stddefs.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: added wrapper for
      	gimp-round-rect-select. Added feather_radius_x and _y to
      	gimp-by-color-select-full and gimp-fuzzy-select-full.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/selection_tools_cmds.c
      	* libgimp/gimpselectiontools_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: changed accordingly.
      046fa38b
  12. 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
  13. 25 Aug, 2006 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 1d03a22c
      William Skaggs authored
      	* app/core/gimpchannel-select.[ch]: add push_undo arguments
      	to several gimp_channel_select_foo functions.
      
      	* app/actions/vectors-commands.c
      	* app/core/gimpchannel-select.c
      	* app/core/gimpchannel-select.h
      	* app/pdb/paths_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/vectors_cmds.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimprectangleselecttool.c
      	* app/tools/gimpvectortool.c
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb
      	* tools/pdbgen/pdb/vectors.pdb:  add push_undo argument
      	to function calls where needed.
      1d03a22c
  14. 15 Aug, 2006 1 commit
    • Sven Neumann's avatar
      app/core/core-enums.h tools/pdbgen/pdb/edit.pdb applied patch from David · 0b5a30d1
      Sven Neumann authored
      2006-08-15  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.h
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: applied patch from David
      	Gowers that adds extended PDB interface for gimp-edit-bucket-fill,
      	gimp-by-color-select and gimp-fuzzy-select. Fixes bugs #348291 and
      	#347499.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/internal_procs.c
      	* app/pdb/selection_tools_cmds.c
      	* libgimp/gimpedit_pdb.[ch]
      	* libgimp/gimpenums.c.tail
      	* libgimp/gimpenums.h
      	* libgimp/gimpselectiontools_pdb.[ch]
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimp/gimp.def: updated.
      0b5a30d1
  15. 05 Aug, 2006 1 commit
    • Michael Natterer's avatar
      Applied (modified and enhanced) patch from Chris Moller which allows tools · 9dabd23e
      Michael Natterer authored
      2006-08-05  Michael Natterer  <mitch@gimp.org>
      
      	Applied (modified and enhanced) patch from Chris Moller which allows
      	tools to distinguish similar colors not only by composite, but also
      	by R, G, B, H, S and V. Fixes bug #348291.
      
      	* app/core/core-enums.[ch]: added new enum GimpSelectCriterion
      	which can be one of { COMPOSITE, R, G, B, H, S, V }.
      
      	* app/core/gimpimage-contiguous-region.[ch]: added
      	select_criterion params and create the region based on difference
      	by the selected criterion.
      
      	* app/core/gimpchannel-select.[ch]
      	* app/core/gimpdrawable-bucket-fill.[ch]: take criterion params and
      	pass them through to the contiguous region functions.
      
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpselectionoptions.[ch]: added criterion properties
      	and GUI to select it.
      
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpfuzzyselecttool.c: pass the selected criterion to
      	the resp. core functions.
      
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimpselectioneditor.c
      	* app/display/gimpdisplayshell-dnd.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly
      	(simply pass GIMP_SELECT_CRITERION_COMPOSITE in most cases).
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      9dabd23e
  16. 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
  17. 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
  18. 27 Apr, 2006 1 commit
    • Sven Neumann's avatar
      added "has_alpha" to GimpParamSpecRGB. Made the GimpParamSpecRGB struct · e779cf0b
      Sven Neumann authored
      2006-04-27  Sven Neumann  <sven@gimp.org>
      
      	* libgimpcolor/gimprgb.[ch]: added "has_alpha" to GimpParamSpecRGB.
      	Made the GimpParamSpecRGB struct public. When validating a color,
      	only look at the alpha channel if has_alpha is set.
      
      	* libgimpconfig/gimpconfig-params.h: added "has_alpha" to
      	GIMP_CONFIG_INSTALL_PROP_RGB macro definition.
      
      	* libgimpconfig/gimpconfig-serialize.c: serialize color values as
      	"(rgb r g b)" if the param-spec indicates that the alpha channel
      	is meaningless.
      
      	* app/config/gimpconfig-dump.c: take "has_alpha" into account when
      	documenting color properties.
      
      	* app/core/gimpcontext.c
      	* app/core/gimpgrid.c
      	* app/display/gimpdisplayoptions.c
      	* app/text/gimptext.c
      	* app/widgets/gimpaction.c
      	* app/widgets/gimpcolorbar.c
      	* libgimpwidgets/gimpcolorarea.c
      	* libgimpwidgets/gimpcolorbutton.c: specify whether color properties
      	have an alpha channel.
      
      	* tools/pdbgen/app.pl: handle "has_alpha" for color paramaters.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/grid.pdb
      	* tools/pdbgen/pdb/image.pdb: set the "has_alpha" flag where
      	appropriate.
      
      	* app/pdb/gimp-pdb-compat.c (gimp_pdb_compat_param_spec): set
      	"has_alpha" to TRUE for GIMP_PDB_COLOR.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/context_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/grid_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      
      	* app/config/gimpdisplayconfig.c (gimp_display_config_class_init):
      	removed unused code.
      e779cf0b
  19. 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
  20. 07 Apr, 2006 2 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
    • 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
  21. 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
  22. 04 Apr, 2006 3 commits
    • 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
    • Michael Natterer's avatar
      app/pdb/Makefile.am app/pdb/procedural_db.[ch] removed... · a184c909
      Michael Natterer authored
      2006-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/procedural_db.[ch]
      	* app/pdb/procedural-db-query.[ch]: removed...
      
      	* app/pdb/gimp-pdb.[ch]
      	* app/pdb/gimp-pdb-query.[ch]: ...and added namespacefied.
      
      	* app/batch.c
      	* app/actions/vectors-commands.c
      	* app/core/gimp.c
      	* app/core/gimppdbprogress.c
      	* app/dialogs/about-dialog.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/file/file-utils.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-params.c
      	* app/plug-in/plug-in-proc-def.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-ins-query.c
      	* app/plug-in/plug-ins.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c
      	* app/widgets/gimppdbdialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* 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 accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      a184c909
    • Michael Natterer's avatar
      app/pdb/pdb-types.h removed struct GimpArgument, struct GimpArgumentSpec, · 17aada11
      Michael Natterer authored
      2006-04-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/pdb-types.h
      	* app/pdb/gimpargument.[ch]: removed struct GimpArgument, struct
      	GimpArgumentSpec, gimp_argument_init() and
      	gimp_arguments_destroy().
      
      	* app/pdb/gimpprocedure.h (struct GimpProcedure): use arrays of
      	GParamSpec* for kepping proc inargs/outargs.
      
      	* app/pdb/gimpprocedure.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-params.[ch]
      	* app/plug-in/plug-in-proc-frame.[ch]
      	* app/plug-in/plug-in-run.[ch]: use GValueArrays for procedure
      	arguments and return values. Removed all n_args and n_return_vals
      	parameters because GValueArrays know their length.
      
      	* app/batch.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/pdb/procedural-db-query.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-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
      	* app/widgets/gimppdbdialog.[ch]
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly. Also
      	removed #include "gimpargument.h" from most files.
      
      	* app/pdb/*_cmds.c: regenerated.
      17aada11
  23. 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
  24. 02 Apr, 2006 1 commit
    • Michael Natterer's avatar
      added a const_type member to all PDB types, Removed casts from all · 20946c66
      Michael Natterer authored
      2006-04-02  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb.pl: added a const_type member to all PDB types,
      	Removed casts from all get_value_funcs which return const
      	pointers, they can stay const now.
      
      	* tools/pdbgen/app.pl: use the const_type to declare input args.
      
      	* app/pdb/gimpprocedure.h: pass const arguments to the internal
      	marshallers.
      
      	* app/xcf/xcf.c: changed accordingly.
      
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/paths.pdb: added some const qualifiers.
      
      	* tools/pdbgen/lib.pl: use the const_type for input args instead
      	of adding the const qualifier based on the type.
      
      	* app/pdb/_cmds.c
      	* libgimp/gimpparasite_pdb.[ch]: regenerated.
      
      	Unrelated:
      
      	* app/pdb/gimpargument.c (gimp_arguments_destroy): no need any
      	more to destroy the argument array in reverse order (we don't need
      	access to the previous element because arrays in GValues memory
      	manage themselves now).
      20946c66
  25. 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
  26. 31 Mar, 2006 6 commits
    • Michael Natterer's avatar
      app/pdb/pdb-types.h renamed struct Argument to GimpArgument and struct · 03c28ec7
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/pdb-types.h
      	* app/pdb/gimpargument.h: renamed struct Argument to GimpArgument
      	and struct ProcArg to GimpArgumentSpec.
      
      	* app/batch.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/pdb/gimpargument.c
      	* app/pdb/gimpprocedure.[ch]
      	* app/pdb/procedural-db-query.c
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-params.[ch]
      	* app/plug-in/plug-in-proc-frame.h
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.[ch]
      	* 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
      	* app/widgets/gimppdbdialog.[ch]
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      03c28ec7
    • Michael Natterer's avatar
      app/pdb/Makefile.am moved Argument and ProcArg structs and functions to · 46a50b7e
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/gimpargument.[ch]: moved Argument and ProcArg structs
      	and functions to these new files. Renamed functions to
      	gimp_argument_foo().
      
      	* app/pdb/procedural_db.[ch]: removed them here.
      
      	* app/batch.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/pdb/gimpprocedure.c
      	* app/pdb/procedural_db_cmds.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-params.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-ins.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppdbdialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/fileops.pdb: changed #includes and function
      	calls accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      46a50b7e
    • Michael Natterer's avatar
      app/pdb/pdb-types.h renamed struct ProcRecord to GimpProcedure. Added · fe90ae76
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/pdb-types.h
      	* app/pdb/gimpprocedure.h: renamed struct ProcRecord to
      	GimpProcedure. Added GIMP_IS_PROCEDURE() which checks for != NULL.
      
      	* app/pdb/gimpprocedure.c
      	* app/pdb/procedural-db-query.c
      	* app/pdb/procedural_db.[ch]
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/file/file-open.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-proc-def.h
      	* app/plug-in/plug-in-proc-frame.[ch]
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-rc.c
      	* app/plug-in/plug-in-run.[ch]
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins-query.c
      	* app/plug-in/plug-ins.[ch]
      	* app/widgets/gimphelp.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/app.pl: changed accordingly. Renamed 'proc_rec' and
      	similarily named variables and parameters to 'procedure'.
      
      	* tools/pdbgen/pdb/procedural_db.pdb: changed 'procedure'
      	parameters to 'procedure_name'.
      
      	* app/pdb/*_cmds.c
      	* libgimp/gimpproceduraldb_pdb.[ch]: regenerated.
      fe90ae76
    • Michael Natterer's avatar
      added new member "gboolean static_strings", so the ProcRecord struct and · 3cb83051
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/gimpprocedure.h (struct ProcRecord): added new member
      	"gboolean static_strings", so the ProcRecord struct and its
      	strings can be marked as static separately.
      
      	* app/pdb/gimpprocedure.[ch] (gimp_procedure_dispose): removed.
      
      	(gimp_procedure_free): don't free the struct if it's static.
      
      	(gimp_procedure_set_strings)
      	(gimp_procedure_set_static_strings)
      	(gimp_procedure_take_strings): new functions to set a procedure's
      	strings.
      
      	* app/pdb/procedural_db.c (procedural_db_free_entry): simply call
      	gimp_procedure_free() on all procedures, the memory-manage
      	themselves now.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_install): use
      	gimp_procedure_set_strings() instead of setting them manually.
      
      	* app/xcf/xcf.c: register gimp-xcf-load and gimp-xcf-save
      	dynamically so further ProcRecord struct changes don't affect this
      	file.
      
      	* tools/pdbgen/app.pl: set "static_proc" to TRUE for static procs.
      
      	* app/pdb/*_cmds.c: regenerated.
      3cb83051
    • Michael Natterer's avatar
      added new member "gboolean static_proc" which indicates whether a · 8cffac44
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/gimpprocedure.[ch] (struct ProcRecord): added new member
      	"gboolean static_proc" which indicates whether a ProcRecord struct
      	and its strings are static.
      
      	(gimp_procedure_dispose): new function which frees the procedure's
      	args and values, and its strings if it is not static.
      
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl: set "static_proc" to TRUE for static procs.
      
      	* app/pdb/procedural_db.c (procedural_db_free): call
      	gimp_procedure_free() or gimp_procedure_dispose(), depending on
      	procedure->static_proc.
      
      	* app/pdb/procedural_db.h: removed #if 0'ed cruft.
      
      	* app/plug-in/plug-in-proc-def.[ch]: removed
      	plug_in_proc_def_get_proc().
      
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* tools/pdbgen/pdb/fileops.pdb: access proc_def->procedure directly.
      
      	* app/pdb/*_cmds.c: regenerated.
      8cffac44
    • Michael Natterer's avatar
      app/pdb/Makefile.am new files containing the functions operating on *one* · 1dac2783
      Michael Natterer authored
      2006-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/gimpprocedure.[ch]: new files containing the functions
      	operating on *one* procedure. Factored out of procedural_db.[ch]
      	and renamed to gimp_procedure_foo().
      
      	* app/pdb/procedural_db.[ch]: removed them here.
      
      	* app/pdb/procedural-db-query.c
      	* app/batch.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimppdbprogress.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-proc-def.[ch]
      	* 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-ins.c
      	* app/widgets/gimpfiledialog.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppdbdialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/app.pl: changed #includes and function calls
      	accordingly. No logic changed.
      
      	* app/pdb/*_cmds.c: regenerated.
      1dac2783
  27. 29 Mar, 2006 2 commits
    • Michael Natterer's avatar
      replace the value union by a GValue. · afd88f0b
      Michael Natterer authored
      2006-03-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.[ch] (struct Argument): replace the value
      	union by a GValue.
      
      	(procedural_db_argument_init)
      	(procedural_db_compat_arg_init): new functions to initialize
      	an Argument. They call g_value_init() on the Argument's value.
      
      	(procedural_db_arguments)
      	(procedural_db_return_values): initialize the returned Argument
      	arrays so their GValues are ready to use. Allow to get the
      	(unsuccessful) return values of a NULL ProcRecord.
      
      	(procedural_db_destroy_args): g_value_unset() the values. Added a
      	"gboolean full_destroy" parameter. Its only effect is to destroy
      	PDB arrays, everything else is nicely memory managed by GValue.
      
      	(procedural_db_execute)
      	(procedural_db_run_proc): do GValue stuff. Added n_args and
      	n_return_vals parameters to execute().
      
      	(procedural_db_execute_proc): private function to execute a
      	procedure. Validates the passed in arguments using the registered
      	GParamSpecs before passing them to the resp. exec method.
      
      	* app/plug-in/plug-in-params.[ch] (plug_in_params_to_args): needs
      	an array of ProcArgs now in order to initialize the Arguments'
      	GValues correctly. Passing NULL ProcArgs uses
      	procedural_db_compat_arg_init(), so procedures (plug-ins)
      	returning more values than expected work.
      
      	(plug_in_args_to_params): do GValue stuff here too.
      
      	(plug_in_args_destroy): removed this function,
      	procedural_db_destroy_args() does the same now.
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run):
      	simplified quite a bit because everything returns n_return_values
      	now. Call plug_in_params_to_args() only of the procedure was found.
      
      	(plug_in_handle_proc_return_priv): pass ProcRecs to
      	plug_in_params_to_args().
      
      	* app/batch.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-ins.c
      	* app/plug-in/plug-in-progress.c
      	* app/plug-in/plug-in-run.[ch]
      	* app/widgets/gimphelp.c
      	* app/widgets/gimppdbdialog.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly: don't
      	g_new/g_free Argument arrays, always use procedural_db_foo()
      	functions. Use GValue functions to get/set Arguments.
      
      	* tools/pdbgen/pdb.pl: added get_value_func and set_value_func to
      	all PDB types. Removed id_func, id_ret_func and check_func. Added
      	flags which indicated that a type is an ID. Removed unused utility
      	functions.
      
      	* tools/pdbgen/lib.pl: use the flag instead of looking at
      	functions and value types.
      
      	* tools/pdbgen/app.pl: use the get_value_func and set_value_func
      	to marshal inargs and outargs. Removed all checks performed on
      	inargs because that's done by GParamSpec validation now. Added the
      	missing bits to register excluded values with GimpParamSpecEnum.
      
      	* app/pdb/*_cmds.c: regenerated.
      afd88f0b
    • Michael Natterer's avatar
      return the procedure. · 396f92b8
      Michael Natterer authored
      2006-03-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.[ch] (procedural_db_init_proc): return the
      	procedure.
      
      	* tools/pdbgen/app.pl: use a local ProcRecord* variable so the
      	generated code becomes more readable.
      
      	* app/pdb/*_cmds.c: regenerated.
      396f92b8
  28. 28 Mar, 2006 1 commit
    • Michael Natterer's avatar
      replace "name" and "description" by a GParamSpec. · 7d180818
      Michael Natterer authored
      2006-03-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.[ch] (struct ProcArg): replace "name"
      	and "description" by a GParamSpec.
      
      	(procedural_db_init_proc)
      	(procedural_db_add_argument)
      	(procedural_db_add_return_value)
      	(procedural_db_add_compat_arg)
      	(procedural_db_add_compat_val): new functions which dynamically
      	allocate and register arguments and return value arrays based on
      	GParamSpecs.
      
      	* app/pdb/procedural-db-query.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
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly.
      
      	* tools/pdbgen/app.pl: get rid of all ProcArg arrays and generate
      	code that registers args and values with the procedures.
      
      	* app/pdb/*_cmds.c: regenerated.
      7d180818
  29. 27 Mar, 2006 2 commits
    • Michael Natterer's avatar
      renamed procedural_db_return_args() to procedural_db_return_values() and · 169faefb
      Michael Natterer authored
      2006-03-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.[ch]: renamed procedural_db_return_args()
      	to procedural_db_return_values() and added
      	procedural_db_arguments(), which returns a newly allocated,
      	initialized array of the procedure's arguments.
      
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* app/plug-in/plug-in-run.c
      	* app/widgets/gimphelp.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly, some cleanup.
      
      	* app/pdb/*_cmds.c: regenerated.
      169faefb
    • Michael Natterer's avatar
      pass the ProcRecord as first parameter, so marshallers have access to · 2c083495
      Michael Natterer authored
      2006-03-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.h (ArgMarshal): pass the ProcRecord as
      	first parameter, so marshallers have access to their ProcRecord
      	without the need for global variables.
      
      	* app/pdb/procedural_db.c
      	* tools/pdbgen/app.pl: changed addordingly.
      
      	* tools/pdbgen/app.pl: removed support for invoke->proc. Introduce
      	invoke->no_marshalling instead which indicates that invoke->code
      	should be used literally as marshaller code, without any
      	substitutions or generated variables.
      
      	* tools/pdbgen/pdb/fileops.pdb: changed accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      2c083495