1. 21 Jul, 2018 1 commit
    • Michael Natterer's avatar
      Initial space invasion commit in GIMP · e09e563a
      Michael Natterer authored
      All babl formats now have a space equivalent to a color profile,
      determining the format's primaries and TRCs. This commit makes GIMP
      aware of this.
      
      libgimp:
      
      - enum GimpPrecision: rename GAMMA values to NON_LINEAR and keep GAMMA
        as deprecated aliases, add PERCEPTUAL values so we now have LINEAR,
        NON_LINEAR and PERCPTUAL for each encoding, matching the babl
        encoding variants RGB, R'G'B' and R~G~B~.
      
      - gimp_color_transform_can_gegl_copy() now returns TRUE if both
        profiles can return a babl space, increasing the amount of fast babl
        color conversions significantly.
      
      - TODO: no solution yet for getting libgimp drawable proxy buffers in
        the right format with space.
      
      plug-ins:
      
      - follow the GimpPrecision change.
      
      - TODO: everything else unchanged and partly broken or sub-optimal,
        like setting a new image's color profile too late.
      
      app:
      
      - add enum GimpTRCType { LINEAR, NON_LINEAR, PERCEPTUAL } as
        replacement for all "linear" booleans.
      
      - change gimp-babl functions to take babl spaces and GimpTRCType
        parameters and support all sorts of new perceptual ~ formats.
      
      - a lot of places changed in the early days of goat invasion didn't
        take advantage of gimp-babl utility functions and constructed
        formats manually. They all needed revisiting and many now use much
        simpler code calling gimp-babl API.
      
      - change gimp_babl_format_get_color_profile() to really extract a
        newly allocated color profile from the format, and add
        gimp_babl_get_builtin_color_profile() which does the same as
        gimp_babl_format_get_color_profile() did before. Visited all callers
        to decide whether they are looking for the format's actual profile,
        or for one of the builtin profiles, simplifying code that only needs
        builtin profiles.
      
      - drawables have a new get_space_api(), get_linear() is now get_trc().
      
      - images now have a "layer space" and an API to get it,
        gimp_image_get_layer_format() returns formats in that space.
      
      - an image's layer space is created from the image's color profile,
        change gimpimage-color-profile to deal with that correctly
      
      - change many babl_format() calls to babl_format_with_space() and take
        the space from passed formats or drawables
      
      - add function gimp_layer_fix_format_space() which replaces the
        layer's buffer with one that has the image's layer format, but
        doesn't change pixel values
      
      - use gimp_layer_fix_format_space() to make sure layers loaded from
        XCF and created by plug-ins have the right space when added to the
        image, because it's impossible to always assign the right space upon
        layer creation
      
      - "assign color profile" and "discard color profile" now require use
        of gimp_layer_fix_format_space() too because the profile is now
        embedded in all formats via the space.  Add
        gimp_image_assign_color_profile() which does all that and call it
        instead of a simple gimp_image_set_color_profile(), also from the
        PDB set-color-profile functions, which are essentially "assign" and
        "discard" calls.
      
      - generally, make sure a new image's color profile is set before
        adding layers to it, gimp_image_set_color_profile() is more than
        before considered know-what-you-are-doing API.
      
      - take special precaution in all places that call
        gimp_drawable_convert_type(), we now must pass a new_profile from
        all callers that convert layers within the same image (such as
        image_convert_type, image_convert_precision), because the layer's
        new space can't be determined from the image's layer format during
        the call.
      
      - change all "linear" properties to "trc", in all config objects like
        for levels and curves, in the histogram, in the widgets. This results
        in some GUI that now has three choices instead of two.
        TODO: we might want to reduce that back to two later.
      
      - keep "linear" boolean properties around as compat if needed for file
        pasring, but always convert the parsed parsed boolean to
        GimpTRCType.
      
      - TODO: the image's "enable color management" switch is currently
        broken, will fix that in another commit.
      e09e563a
  2. 11 Jul, 2018 1 commit
  3. 20 May, 2018 1 commit
  4. 20 May, 2016 1 commit
  5. 27 Jan, 2013 1 commit
  6. 08 Nov, 2012 1 commit
  7. 28 May, 2012 1 commit
  8. 03 May, 2012 2 commits
  9. 05 Mar, 2012 1 commit
  10. 08 Oct, 2011 2 commits
  11. 12 Jul, 2010 1 commit
  12. 08 Jul, 2010 1 commit
  13. 29 Aug, 2009 1 commit
  14. 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
  15. 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
  16. 09 Nov, 2008 2 commits
    • Michael Natterer's avatar
      remove floating_sel_remove() and reorder one function. · 1cdf6c5b
      Michael Natterer authored
      2008-11-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer-floating-sel.[ch]: remove
      	floating_sel_remove() and reorder one function.
      
      	* app/core/gimpimage.c (gimp_image_remove_layer): add the single
      	line of special code that needs to be done when removing a
      	floating selection.
      
      	* app/core/gimpselection.c
      	* app/actions/layers-commands.c
      	* tools/pdbgen/pdb/floating_sel.pdb: changed accordingly.
      
      	* app/pdb/floating-sel-cmds.c: regenerated.
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo.c: remove enum value
      	GIMP_UNDO_GROUP_FS_REMOVE.
      
      
      svn path=/trunk/; revision=27583
      1cdf6c5b
    • Michael Natterer's avatar
      Bye bye floating_sel_rigor() and floating_sel_relax(): · 855b114f
      Michael Natterer authored
      2008-11-09  Michael Natterer  <mitch@gimp.org>
      
      	Bye bye floating_sel_rigor() and floating_sel_relax():
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_init_src_region):
      	implement compositing the floating selection on the fly. Add
      	return parameter "TileManager **temp_tiles" which returns the temp
      	buffer used for compositing; the caller has to unref the tiles.
      
      	* app/core/gimpchannel-project.c
      	* app/core/gimplayer-project.c: unref the temp_tiles.
      
      	* app/core/gimplayer.[ch]: remove members fs.backing_store and
      	fs.initial.
      
      	* app/core/gimplayer-floating-sel.[ch]: remove functions rigor(),
      	relax(), store() and restore(), they are not needed any longer.
      	Some minor cleanup, more to come.
      
      	* app/core/gimpprojection-construct.c: don't composite the
      	floating selection before projecting because that happens on the
      	fly now.
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpfloatingselundo.c
      	* app/core/gimpimage-undo-push.[ch]: remove the rigor and relax
      	undos.
      
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/xcf/xcf-save.c: remove all calls to rigor and relax and all
      	implementations of virtual functions that were just there to
      	rigor/releax around chaining up.
      
      	* tools/pdbgen/pdb/floating_sel.pdb: remove all code from the
      	rigor and relax wrappers and deprecate the API.
      
      	* app/pdb/floating-sel-cmds.c
      	* libgimp/gimpfloatingsel_pdb.[ch]: regenerated.
      
      	* plug-ins/file-xjt/xjt.c: don't call rigor and relax.
      
      
      svn path=/trunk/; revision=27579
      855b114f
  17. 04 Nov, 2008 1 commit
    • Sven Neumann's avatar
      bumped minimum required version of GLib to 2.18.0. · 4762b734
      Sven Neumann authored
      2008-11-04  Sven Neumann  <sven@sven>
      
      	* configure.in: bumped minimum required version of GLib to 
      2.18.0.
      
      	* INSTALL: document the updated dependency.
      
      	* app/core/gimp.[ch]: introduced gimp_message_literal(), a 
      variant
      	of gimp_message() that takes a literal string.
      
      	* app/errors.[ch]: removed format arguments from 
      gimp_fatal_error()
      	and gimp_terminate() and let them take a literal string instead.
      
      	* app/tools/gimptool.[ch]: introduced 
      gimp_tool_message_literal(),
      	a variant of gimp_tool_message() that takes a literal string.
      
      	* app/actions/documents-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/error-console-commands.c
      	* app/actions/file-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/config/gimprc.c
      	* app/core/gimp-modules.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/core/gimp-units.c
      	* app/core/gimpchannel.c
      	* app/core/gimpcontainer-filter.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/dialogs/convert-dialog.c
      	* app/dialogs/dialogs.c
      	* app/dialogs/palette-import-dialog.c
      	* app/dialogs/preferences-dialog.c
      	* app/dialogs/quit-dialog.c
      	* app/dialogs/stroke-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/file/file-procedure.c
      	* app/file/file-save.c
      	* app/file/file-utils.c
      	* app/gegl/gimpcurvesconfig.c
      	* app/gegl/gimplevelsconfig.c
      	* app/gui/gui-message.c
      	* app/gui/gui.c
      	* app/gui/session.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpheal.c
      	* app/paint/gimpperspectiveclone.c
      	* app/paint/gimpsourcecore.c
      	* app/pdb/gimppdb-utils.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/gimpplugin-message.c
      	* app/plug-in/gimpplugin.c
      	* app/plug-in/gimppluginmanager-restore.c
      	* app/plug-in/gimppluginprocedure.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimp-tools.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdesaturatetool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpgegltool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpimagemaptool-settings.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsourcetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpactionview.c
      	* app/widgets/gimpcontrollerlist.c
      	* app/widgets/gimpcontrollers.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdevices.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimperrordialog.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppdbdialog.c
      	* app/widgets/gimpsettingsbox.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/image.pdb: use the _literal variants for
      	g_set_error(), gimp_message() and gimp_tool_message().
      
      	* app/pdb/convert-cmds.c
      	* app/pdb/edit-cmds.c
      	* app/pdb/floating-sel-cmds.c
      	* app/pdb/image-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27548
      4762b734
  18. 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
  19. 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
  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. 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
  23. 04 Feb, 2008 1 commit
    • 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
  24. 06 Dec, 2007 1 commit
    • Michael Natterer's avatar
      Move some gimp_message() calls where they belong: · 543302f5
      Michael Natterer authored
      2007-12-06  Michael Natterer  <mitch@gimp.org>
      
      	Move some gimp_message() calls where they belong:
      
      	* app/core/gimplayer-floating-sel.[ch]: removed unreachable
      	gimp_message() in floating_sel_anchor() and added GError parameter
      	to floating_sel_to_layer().
      
      	* app/core/gimplayer.c
      	* app/core/gimpimage-quick-mask.c
      	* app/actions/layers-commands.c: pass NULL or an error as
      	appropriate and show the error message.
      
      	* tools/pdbgen/pdb/floating_sel.pdb: set the error when the passed
      	layer was no floating selection.
      
      	* app/pdb/floating_sel_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24272
      543302f5
  25. 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
  26. 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
  27. 09 Dec, 2006 1 commit
  28. 31 Oct, 2006 1 commit
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 04 Apr, 2006 2 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