1. 09 Dec, 2006 1 commit
  2. 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
  3. 03 Sep, 2006 1 commit
    • Sven Neumann's avatar
      added construct-only property "undo-desc". Use this when pushing an undo · a44d24cc
      Sven Neumann authored
      2006-09-03  Sven Neumann  <sven@gimp.org>
      
              * app/paint/gimppaintcore.[ch]: added construct-only property
              "undo-desc". Use this when pushing an undo instead of attempting
              an unsuccessful lookup of the GimpPaintInfo object.
      
              * tools/pdbgen/pdb/paint_tools.pdb
              * app/tools/gimppainttool.c: use paint_info->blurb as undo
              description when constructing the paint core.
      
              * app/pdb/paint_tools_cmds.c: regenerated.
      a44d24cc
  4. 02 Sep, 2006 1 commit
    • Michael Natterer's avatar
      Merged the "soc-2006-healing-brush" branch. That branch is now officially · db526795
      Michael Natterer authored
      2006-09-02  Michael Natterer  <mitch@gimp.org>
      
      	Merged the "soc-2006-healing-brush" branch. That branch is now
      	officially closed and all further fixes and changes have to be
      	applied to HEAD.
      
      	Did some minor adjustments, mostly small indentation and spacing
      	fixes. Derive the tool from the newly introduced GimpBrushTool
      	which did not exist when the branch was created.
      
      	Thanks a lot to Kevin Sookocheff for this nice contribution!
      
      	* app/paint/paint-enums.[ch]: new enum GimpHealAlignMode.
      
      	* app/paint/Makefile.am
      	* app/paint/makefile.msc
      	* app/paint/gimpheal.[ch]
      	* app/paint/gimphealoptions.[ch]: the heal core and its options.
      
      	* app/paint/gimp-paint.c: register the heal core.
      
      	* app/tools/Makefile.am
      	* app/tools/makefile.msc
      	* app/tools/gimphealtool.[ch]: the heal tool.
      
      	* app/tools/gimp-tools.c: register the heal tool.
      
      	* app/tools/gimppaintoptions-gui.c: show the widgets that are used
      	by heal.
      
      	* app/widgets/gimphelp-ids.h: the heal help ID.
      
      	* tools/pdbgen/stddefs.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb: the heal PDB wrappers.
      
      	* app/widgets/widgets-enums.h
      	* app/widgets/gimpcursor.c
      	* cursors/Makefile.am
      	* cursors/makefile.msc
      	* cursors/tool-heal.png
      	* cursors/xbm/tool-heal.xbm
      	* cursors/xbm/tool-heal-mask.xbm: a new cursor for the heal tool.
      
      	* libgimpwidgets/gimpstock.[ch]
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/makefile.msc
      	* themes/Default/images/tools/stock-tool-heal-16.png
      	* themes/Default/images/tools/stock-tool-heal-22.png: new stock
      	icons for the heal tool.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/paint_tools_cmds.c
      	* libgimp/gimppainttools_pdb.[ch]: regenerated.
      db526795
  5. 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
  6. 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
  7. 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
  8. 30 Mar, 2006 1 commit
    • Sven Neumann's avatar
      use doubles for src coordinates. Added properties for "src-drawable", · 0b12c776
      Sven Neumann authored
      2006-03-30  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimpclone.[ch]: use doubles for src coordinates. Added
      	properties for "src-drawable", "src-x" and "src-y".
      
      	* tools/pdbgen/pdb/paint_tools.pdb: resurrected cloning from
      	drawables over the PDB. This used to be broken for quite a while.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      0b12c776
  9. 24 Mar, 2006 2 commits
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush.pdb tools/pdbgen/pdb/brushes.pdb · 0de4f680
      Michael Natterer authored
      2006-03-25  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/context.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb
      	* tools/pdbgen/pdb/text_tool.pdb: removed all ':' before and all
      	'()' around %%desc%%.
      
      	* tools/pdbgen/app.pl: add () to int32, float and boolean
      	descriptions automatically. They all look the same now.
      
      	* tools/pdbgen/lib.pl: tweaked regex so %%desc%% doesn't appear in
      	libgimp API docs.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/context_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/plug_in_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* libgimp/gimpedit_pdb.c
      	* libgimp/gimpplugin_pdb.c: regenerated.
      0de4f680
    • Michael Natterer's avatar
      tools/pdbgen/pdb/brush.pdb tools/pdbgen/pdb/brushes.pdb · 328345dc
      Michael Natterer authored
      2006-03-24  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb
      	* tools/pdbgen/pdb/undo.pdb
      	* tools/pdbgen/pdb/vectors.pdb: replaced 'True', 'true' and
      	'non-zero' by 'TRUE' where appropriate. Added %%desc%% to enum arg
      	descriptions where missing. Get object names using
      	gimp_object_get_name(). Set 'success' more consistently. Removed
      	{ } from all enum arg descriptions...
      
      	* tools/pdbgen/app.pl (make_arg_recs): ...and add the { }
      	generically here. Removed some code that replaced the ',' by 'or'
      	for enums without { } so all enums are now documented the same.
      
      	* app/pdb/<some>_cmds.c
      	* libgimp/<some>_pdb.c: regenerated.
      328345dc
  10. 23 Mar, 2006 1 commit
    • Michael Natterer's avatar
      removed std_image_arg(), std_antialias_arg() and std_orientation_enum(). · cfa08678
      Michael Natterer authored
      2006-03-23  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/stddefs.pdb: removed std_image_arg(),
      	std_antialias_arg() and std_orientation_enum().
      
      	* tools/pdbgen/pdb/*.pdb: changed accordingly. Did a global
      	s/gimage/image/. Some more cleanup.
      
      	* tools/pdbgen/pdb/grid.pdb
      	* tools/pdbgen/pdb/guides.pdb: removed utility functions.
      
      	* tools/pdbgen/pdb/vectors.pdb: reordered procedures. Removed
      	obsolete procedure.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/display_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/grid_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/undo_cmds.c
      	* app/pdb/vectors_cmds.c
      	* libgimp/gimpdrawable_pdb.c
      	* libgimp/gimpimage_pdb.[ch]
      	* libgimp/gimpvectors_pdb.[ch]: regenerated.
      cfa08678
  11. 22 Mar, 2006 1 commit
    • Michael Natterer's avatar
      export GimpBrushGeneratedShape to the PDB. · 2368a6a3
      Michael Natterer authored
      2006-03-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.h: export GimpBrushGeneratedShape to the PDB.
      
      	* tools/pdbgen/pdb/brush.pdb: use it instead of int32.
      
      	* libgimp/gimp.def: add gimp_brush_generated_shape_get_type().
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/fonts.pdb
      	* tools/pdbgen/pdb/gimprc.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/misc.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/plug_in.pdb
      	* tools/pdbgen/pdb/text_tool.pdb: more perl/C code separation,
      	removed some more utility functions, cleanup.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/display_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fonts_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/palettes_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/patterns_cmds.c
      	* tools/pdbgen/enums.pl
      	* libgimp/gimpbrush_pdb.[ch]
      	* libgimp/gimpenums.c.tail
      	* libgimp/gimpenums.h: regenerated.
      2368a6a3
  12. 19 Mar, 2006 1 commit
    • Michael Natterer's avatar
      define GIMP_COORDS_DEFAULT_VALUES, a struct initializer for GimpCoords. · cc4badb8
      Michael Natterer authored
      2006-03-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-types.h: define GIMP_COORDS_DEFAULT_VALUES, a
      	struct initializer for GimpCoords.
      
      	* app/core/gimpimage-snap.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/vectors/gimpbezierstroke.c
      	* app/vectors/gimpvectors-compat.c
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/vectors.pdb: use it here.
      
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/vectors_cmds.c: regenerated.
      cc4badb8
  13. 18 Mar, 2006 1 commit
    • Michael Natterer's avatar
      removed support for arg->on_success and arg->on_fail. · bc951344
      Michael Natterer authored
      2006-03-18  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/app.pl: removed support for arg->on_success and
      	arg->on_fail.
      
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: moved their logic to the C
      	code.
      
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      bc951344
  14. 14 Mar, 2006 1 commit
    • Michael Natterer's avatar
      remove lots of perl crack: - create almost all parameter arrays manually · 2ff56f8d
      Michael Natterer authored
      2006-03-14  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/*.pdb: remove lots of perl crack:
      	- create almost	all parameter arrays manually instead of
      	  generating them from utility functions
      	- removed lots of other utility functions
      	- moved variable declarations into the enclosed code snippets
      	  where possible
      	- some cleanup and API doc fixes
      
      	* tools/pdbgen/stddefs.pdb: added some perl crack:
      	define utility functions for all contributors which own more than
      	some functions, so they can change their names and email addresses
      	at a central place.
      
      	* app/pdb/[many].c: regenerated.
      
      	* libgimp/gimpcolor_pdb.c
      	* libgimp/gimpdrawabletransform_pdb.c
      	* libgimp/gimptransformtools_pdb.c
      	* libgimp/gimpvectors_pdb.c: ditto. Changed affect only API docs.
      2ff56f8d
  15. 28 Dec, 2005 1 commit
    • Michael Natterer's avatar
      follow paint-info renaming. · fcc8df32
      Michael Natterer authored
      2005-12-28  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/paint_tools.pdb: follow paint-info renaming.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      fcc8df32
  16. 16 Nov, 2004 1 commit
    • Michael Natterer's avatar
      app/core/gimpchannel-select.c app/core/gimpchannel.c · 0d5df419
      Michael Natterer authored
      2004-11-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel-select.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-levels.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-stroke.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpitem-linked.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/text/gimptextlayer.c: in all functions which somehow
      	(explicitely or implicitely) touch undo, either g_return_if_fail()
      	on gimp_item_is_attached() or simply don't push an undo step if
      	feasible (e.g. for simple stuff like layer opacity).
      
      	* 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: let PDB wrappers fail
      	accordingly so they don't run into the assertions added above.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/paint_tools_cmds.c: regenerated.
      0d5df419
  17. 27 Sep, 2004 1 commit
    • Michael Natterer's avatar
      cleanup. · 24f8d7e7
      Michael Natterer authored
      2004-09-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/data-commands.c: cleanup.
      
      	* app/actions/vectors-commands.c
      	* app/display/gimpdisplayshell.c
      	* tools/pdbgen/pdb/paint_tools.pdb: removed unused #includes.
      
      	* app/text/gimptext-bitmap.c
      	* app/text/gimptext-parasite.c
      	* app/text/gimptext-vectors.c
      	* app/text/gimptext-xlfd.c
      	* app/text/gimptext.c
      	* app/text/gimptextlayer-xcf.c: include "text-types.h" instead
      	of "text/text-types.h".
      
      	* app/widgets/gimppatternselect.c: create a GimpPatternFactoryView
      	instead of GimpDataFactoryView.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      24f8d7e7
  18. 31 Aug, 2004 1 commit
    • Michael Natterer's avatar
      added "GimpPaintInfo *paint_info" member and construct property. Changed · 9e76c5a4
      Michael Natterer authored
      2004-08-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintoptions.[ch]: added "GimpPaintInfo *paint_info"
      	member and construct property. Changed gimp_paint_options_new()
      	to take only a GimpPaintInfo parameter.
      
      	* app/core/gimpitem.c (gimp_item_stroke)
      	* app/core/gimppaintinfo.c (gimp_paint_info_new): changed accordingly.
      
      	* app/core/gimpchannel.c (gimp_channel_stroke)
      	* app/vectors/gimpvectors.c (gimp_vectors_stroke): use
      	paint_options->paint_info->paint_type directly instead of casting
      	to GimpToolOptions and using
      	tool_options->tool_info->paint_info->paint_type (eek). Fixes crash
      	when stroking via the PDB because newly created GimpToolOptions
      	instances have no "tool_info" pointer yet.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: changed all paint PDB wrappers
      	accordingly.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      9e76c5a4
  19. 06 May, 2004 1 commit
  20. 14 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Get rid of the "current_context" which was in fact just a bunch of global · 18d9161e
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Get rid of the "current_context" which was in fact just a bunch of
      	global variables. Instead, pass the needed context all the way
      	from the GUI and the PDB to the core. This is a prerequisite for
      	macro recording and generally helps separating the various
      	subsystems from each other. Work in progress...
      
      	* app/core/gimp.[ch]: removed member "current_context" and
      	gimp_[get|set]_current_context().
      
      	* app/core/gimp-edit.[ch]
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable-offset.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimagefile.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimpselection.[ch]
      	* app/core/gimptemplate.[ch]
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/text/gimptext-compat.[ch]
      	* app/text/gimptextlayer-transform.[ch]
      	* app/gui/brush-select.[ch]
      	* app/gui/font-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
      	parameters and use the passed context instead of
      	gimp_get_current_context().
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors.c
      	* app/gui/convert-dialog.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
      	GIMP_CONTEXT(tool_options) or whatever is the right context
      	to the changed core functions.
      
      	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
      	generated PDB invokers.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
      	parameter to the changed core functions.
      
      	* app/pdb/*_cmds.c: regenerated.
      18d9161e
  21. 23 Feb, 2004 1 commit
    • Michael Natterer's avatar
      added #defines for GimpCoords' default pressure, tilt and wheel values. · eb7f99bb
      Michael Natterer authored
      2004-02-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-types.h: added #defines for GimpCoords' default
      	pressure, tilt and wheel values.
      
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/text/gimptext-vectors.c
      	* tools/pdbgen/pdb/paint_tools.pdb: use them. Fixes lots more
      	buggy default values for tilt (in fact all of them were wrong).
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      eb7f99bb
  22. 22 Jul, 2003 1 commit
    • Michael Natterer's avatar
      added "gboolean reverse" to gimp_gradient_get_color_at() so all gradients · 075195d1
      Michael Natterer authored
      2003-07-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpgradient.[ch]: added "gboolean reverse" to
      	gimp_gradient_get_color_at() so all gradients can be used
      	reversed.
      
      	* app/core/gimpdrawable-blend.[ch] (gimp_drawable_blend)
      	* app/core/gimppalette-import.[ch] (gimp_palette_import_from_gradient):
      	added "gboolean reverse".
      
      	* app/paint/paint-enums.[ch]: removed enum GimpGradientRepeatMode
      	since it is identical to GimpRepeatMode, except for the now
      	obsolete ONCE_BACKWARD value.
      
      	* app/paint/gimppaintcore.[ch]: removed
      	gimp_paint_core_get_color_from_gradient()...
      
      	* app/paint/gimppaintoptions.[ch]: ...and added
      	gimp_paint_options_get_gradient_color(), which is much more
      	general. Added a "reverse" property to GimpGradientOptions and
      	changed the type of the "repeat" property to GimpRepeatMode.
      
      	* app/paint/gimppaintbrush.c: use
      	gimp_paint_options_get_gradient_color().
      
      	* app/tools/gimpblendoptions.[ch]: removed the "repeat" property
      	since it is in the parent class now.
      
      	* app/gui/gradient-select.c
      	* app/gui/palette-import-dialog.c
      	* app/widgets/gimpgradienteditor.c
      	* app/tools/gimpblendtool.c
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb: changed accordingly.
      
      	* app/tools/gimppaintoptions-gui.c: added a "Reverse" toggle right
      	of the gradient preview.
      
      	* app/widgets/gimppreviewrenderergradient.[ch]: added "gboolean
      	reverse" member and gimp_preview_renderer_gradient_set_reverse()
      	API.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: fixed the paintbrush invoker
      	to set GimpPaintOption's "use-fade" and "use-gradient" properties
      	correctly.
      
      	* app/pdb/gradients_cmds.c
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* libgimp/gimpenums.h
      	* libgimp/gimpmisctools_pdb.[ch]
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimp/gimpcompat.h
      	* plug-ins/script-fu/siod-wrapper.c: removed GimpGradientPaintMode
      	here too since it was only exported accidentially (it's not used
      	by any external API).
      
      	* plug-ins/script-fu/scripts/3dTruchet.scm
      	* plug-ins/script-fu/scripts/alien-glow-arrow.scm
      	* plug-ins/script-fu/scripts/alien-glow-bar.scm
      	* plug-ins/script-fu/scripts/alien-glow-bullet.scm
      	* plug-ins/script-fu/scripts/alien-glow-button.scm
      	* plug-ins/script-fu/scripts/alien-glow-logo.scm
      	* plug-ins/script-fu/scripts/basic1-logo.scm
      	* plug-ins/script-fu/scripts/basic2-logo.scm
      	* plug-ins/script-fu/scripts/beveled-button.scm
      	* plug-ins/script-fu/scripts/blended-logo.scm
      	* plug-ins/script-fu/scripts/burn-in-anim.scm
      	* plug-ins/script-fu/scripts/coffee.scm
      	* plug-ins/script-fu/scripts/comic-logo.scm
      	* plug-ins/script-fu/scripts/coolmetal-logo.scm
      	* plug-ins/script-fu/scripts/glossy.scm
      	* plug-ins/script-fu/scripts/gradient-bevel-logo.scm
      	* plug-ins/script-fu/scripts/gradient-example.scm
      	* plug-ins/script-fu/scripts/pupi-button.scm
      	* plug-ins/script-fu/scripts/rendermap.scm
      	* plug-ins/script-fu/scripts/sphere.scm
      	* plug-ins/script-fu/scripts/starscape-logo.scm
      	* plug-ins/script-fu/scripts/test-sphere.scm
      	* plug-ins/script-fu/scripts/textured-logo.scm
      	* plug-ins/script-fu/scripts/title-header.scm
      	* plug-ins/script-fu/scripts/weave.scm: pass "reverse" to
      	gimp_blend(). Pass FALSE in most cases and added script
      	parameters were it makes sense.
      075195d1
  23. 14 Jul, 2003 2 commits
    • Michael Natterer's avatar
      Argh... · 070fafb5
      Michael Natterer authored
      2003-07-14  Michael Natterer  <mitch@gimp.org>
      
      	Argh...
      
      	* app/paint/Makefile.am
      	* app/paint/gimppencil.[ch]: added it again as GimpPaintbrush
      	subclass and override nothing but the user visible undo name and
      	the paint_options type.
      
      	* app/paint/paint.c
      	* app/tools/tool_manager.c
      	* app/tools/gimppenciltool.c
      	* tools/pdbgen/pdb/paint_tools.pdb: reverted my last changes.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      070fafb5
    • Michael Natterer's avatar
      app/paint/Makefile.am removed. · e1e943b9
      Michael Natterer authored
      2003-07-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/gimppencil.[ch]: removed.
      
      	* app/paint/gimppenciloptions.[ch]: new files. Does nothing except
      	setting the default value of "hard" to TRUE.
      
      	* app/paint/paint.c
      	* app/tools/tool_manager.c: changed accordingly.
      
      	* app/tools/gimppenciltool.c
      	* tools/pdbgen/pdb/paint_tools.pdb: use the pintbrush core for
      	pencil drawing.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/gimppaintoptions-gui.c: show all paintbrush options
      	except "Hardness" for the pencil tool.
      e1e943b9
  24. 24 Mar, 2003 1 commit
    • Michael Natterer's avatar
      register GimpPaintApplicationMode with the type system. · c40a6f99
      Michael Natterer authored
      2003-03-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/paint-enums.[ch]: register GimpPaintApplicationMode
      	with the type system.
      
      	* app/paint/gimppaintoptions.[ch]: replaced "gboolean incremental"
      	with "GimpPaintApplicationMode application_mode"
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppencil.c: changed accordingly.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: ditto. Set all paint options
      	values using g_object_set().
      
      	* app/widgets/gimppropwidgets.[ch]: added
      	gimp_prop_enum_check_button_new() which can represent two
      	specified enum values and renders itself "inconsistent" for all
      	other values.
      
      	* app/tools/paint_options.c: use it for the "Incremental" toggle.
      
      	* app/pdb/paint_tools_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      c40a6f99
  25. 14 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Fixed most of the bugs the Script-Fu logo scripts triggered: · a4a22458
      Michael Natterer authored
      2003-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Fixed most of the bugs the Script-Fu logo scripts triggered:
      
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	(gimp_drawable_bucket_fill): added "gboolean do_seed_fill"
      	parameter instead of assuming TRUE.
      	(gimp_drawable_bucket_fill_full): moved "color" and "pattern"
      	parameters to the end.
      
      	* app/tools/gimpbucketfilltool.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimpdrawablelistview.c: changed accordingly.
      
      	* tools/pdbgen/pdb/misc_tools.pdb: only pass TRUE if the selection
      	is empty. Restores old PDB behaviour.
      
      	* app/core/gimpimage-undo.c (gimp_image_undo_group_end): return
      	early if gimage->undo_on is FALSE. Fixes bogus criticals.
      
      	* app/core/gimpimage.c (gimp_image_add_[layer|channel|vectors]):
      	clamp the passed position to sane values before calling
      	gimp_container_insert() (Scripts adding layers at wrong indices
      	are broken but should not crash the core).
      
      	* tools/pdbgen/pdb/paint_tools.pdb: need to copy the relevant
      	paint parameters from the current context now that the paint
      	options are contexts themselves.
      
      	* tools/pdbgen/pdb/palette.pdb: removed useless includes.
      
      	(Mostly) fixed text PDB functions:
      
      	* app/text/gimptext-compat.[ch] (text_render): don't set
      	text->font_size = -1 but get the size from the PangoFontDescrition.
      	(text_get_extents): return the logical_rect, not the ink_rect
      	because the size of the created text layer will be the logical_rect.
      
      	* tools/pdbgen/pdb/text_tool.pdb: removed text_fontname_create()
      	utility function and the usage of pass_through and implement all
      	invokers in-place, using the correct parameters.
      
      	* plug-ins/script-fu/siod-wrapper.c: fixed BG-IMAGE-FILL compat
      	define so we can BG fill again. Cleaned up color handling code.
      
      	* plug-ins/script-fu/scripts/coolmetal-logo.scm
      	* plug-ins/script-fu/scripts/glossy.scm
      	* plug-ins/script-fu/scripts/land.scm
      	* plug-ins/script-fu/scripts/lava.scm
      	* plug-ins/script-fu/scripts/test-sphere.scm: use new gradient names.
      
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/text_tool_cmds.c: regenerated.
      a4a22458
  26. 07 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Added object properties for almost all tool_options values and registered · eeec3ced
      Michael Natterer authored
      2003-02-07  Michael Natterer  <mitch@gimp.org>
      
      	Added object properties for almost all tool_options values
      	and registered lots of enums with the type system:
      
      	Part I (enum and type cleanup):
      
      	* app/core/core-enums.[ch]
      	* app/core/core-types.h: removed InternalOrientaionType and
      	register GimpOrientationType. Register GimpChannelOps.
      	Removed GimpToolOptionsGUIFunc.
      
      	* app/xcf/xcf-private.h: added XcfOrientationType with the
      	same values as the old InternalOrientationType
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c: translate between GimpOrientationType and
      	XcfOrientationType.
      
      	* app/core/gimpdrawable-transform-utils.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.h
      	* app/display/gimpdisplayshell.c
      	* tools/pdbgen/stddefs.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: changed accordingly.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/transform_tools_cmds.c
      	* libgimp/gimpenums.h
      	* libgimpproxy/gimpproxytypes.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimptool/gimptoolenums.[ch]: added GimpTransformGridType.
      
      	* libgimptool/gimptooltypes.h: removed GimpToolOptionsResetFunc,
      	added GimpToolOptionsGUIFunc.
      
      	Part II (tool options changes):
      
      	* app/config/gimpconfig-utils.c (gimp_config_reset_properties):
      	don't reset object properties because they have NULL as default
      	value.
      
      	* app/widgets/gimppropwidgets.[ch]: added
      	gimp_prop_[enum|boolean]_radio_frame_new(),
      	gimp_prop_paint_mode_menu_new() and gimp_prop_scale_entry_new(),
      	which are all needed by the new tool options GUI code.
      
      	* app/tools/tool_options.[ch]: removed the "reset_func" since
      	the virtual reset() method is used now.
      
      	* app/paint/gimpairbrushoptions.[ch]
      	* app/paint/gimpcloneoptions.[ch]
      	* app/paint/gimpconvolveoptions.[ch]
      	* app/paint/gimpdodgeburnoptions.[ch]
      	* app/paint/gimperaseroptions.[ch]
      	* app/paint/gimppaintoptions.[ch]
      	* app/paint/gimpsmudgeoptions.[ch]: added properties all over the
      	place and removed the widget and default_value members from
      	the structs. Renamed some values (e.g. s/type/clone_type/).
      	Don't #include <gtk/gtk.h>.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint-types.h
      	* app/paint/paint.c: changed accordingly. Don't #include <gtk/gtk.h>.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: changed accordingly.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.c
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimptextoptions.c
      	* app/tools/paint_options.[ch]
      	* app/tools/selection_options.[ch]
      	* app/tools/transform_options.[ch]: ditto: added properties and
      	removed widget and default_value stuff. Removed most reset functions.
      	Use gimp_prop widgets all over the place, renamed some values
      	as above.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectoroptions.c: changed accordingly. Ported
      	the paint_options GUI constructors to gimp_prop widgets.
      
      	* app/widgets/gimpselectioneditor.c
      	* app/gui/tool-options-dialog.c: changed accordingly.
      eeec3ced
  27. 05 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Made GimpToolOptions a GimpContext subclass and objectified all tool · aa9f82d1
      Michael Natterer authored
      2003-02-05  Michael Natterer  <mitch@gimp.org>
      
      	Made GimpToolOptions a GimpContext subclass and objectified
      	all tool options types.
      
      	* app/core/core-types.h: replaced GimpToolOptionsNewFunc by
      	GimpToolOptionsGUIFunc.
      
      	* libgimpproxy/gimpproxytypes.h: regenerated.
      
      	* app/core/gimppaintinfo.[ch]: added "GType paint_options_type".
      
      	* app/core/gimptoolinfo.[ch]: added "GType tool_options_type",
      	removed tool_info->context since GimpToolOptions are a GimpContext
      	now. Added "gboolean use_context" as a temp_hack.
      
      	* libgimptool/gimptooltypes.h: added the tool_options_type to
      	the tool registering callback.
      
      	* app/tools/tool_options.[ch]: is a real GimpContext subclass now.
      
      	* app/paint/paint-types.h
      	* app/paint/paint.c: added the paint_options_type to the paint
      	registering stuff.
      
      	* app/paint/gimppaintoptions.[ch]: is a real GimpToolOptions
      	subclass now.
      
      	* app/paint/Makefile.am
      	* app/paint/gimpairbrushoptions.[ch]
      	* app/paint/gimpcloneoptions.[ch]
      	* app/paint/gimpconvolveoptions.[ch]
      	* app/paint/gimpdodgeburnoptions.[ch]
      	* app/paint/gimperaseroptions.[ch]
      	* app/paint/gimpsmudgeoptions.[ch]: new files holding
      	GimpPaintOptions subclasses.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: removed paint options stuff, lots
      	of related changed & cleanups.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: changed accordingly.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpblendoptions.[ch]
      	* app/tools/gimpbucketfilloptions.[ch]
      	* app/tools/gimpcolorpickeroptions.[ch]
      	* app/tools/gimpcropoptions.[ch]
      	* app/tools/gimpflipoptions.[ch]
      	* app/tools/gimpinkoptions.[ch]
      	* app/tools/gimpmagnifyoptions.[ch]
      	* app/tools/gimpmeasureoptions.[ch]
      	* app/tools/gimpmoveoptions.[ch]
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimpvectoroptions.[ch]: new files holding the various
      	tool options classes.
      
      	* app/tools/selection_options.[ch]
      	* app/tools/transform_options.[ch]: made them objects.
      
      	* app/tools/paint_options.[ch]: contains only the paint_options
      	GUI and reset stuff.
      
      	* app/tools/tools-types.h: removed SelectionOptions typedef for
      	now.
      
      	* app/tools/[all tools]: removed the tool options stuff except
      	some GUI constructors. Tons of related changes.
      
      	* app/tools/tool_manager.[ch]: changed tool registration / restore /
      	switching accordingly.
      
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c: changed accordingly.
      aa9f82d1
  28. 05 Jan, 2003 1 commit
  29. 27 Nov, 2002 1 commit
    • Michael Natterer's avatar
      app/paint/gimpairbrush.[ch] app/paint/gimpclone.[ch] · 4d2cc645
      Michael Natterer authored
      2002-11-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintoptions.[ch]
      	* app/paint/gimpsmudge.[ch]: it's hard to paint without a context
      	to get color, brush etc. from. Added "context" parameters to
      	all paint options constructors.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: pass gimp_get_current_context()
      	to the constructors. Fixes bug #99557.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpsmudgetool.c: changed accordingly.
      
      	* app/tools/paint_options.c: ditto. Don't set
      	paint_options->context here because we also need it in the
      	no-interface case above.
      4d2cc645
  30. 19 Mar, 2002 2 commits
    • Sven Neumann's avatar
      app/base/Makefile.am app/base/base-enums.c app/core/Makefile.am · 3db3dff4
      Sven Neumann authored
      2002-03-19  Sven Neumann  <sven@gimp.org>
      
      	* app/base/Makefile.am
      	* app/base/base-enums.c
      	* app/core/Makefile.am
      	* app/core/core-enums.c
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-enums.c: purely cosmetic change.
      
      	* app/paint/Makefile.am
      	* app/paint/paint-enums.[ch]: generate paint-enums.c with registered
      	enums. Skip GIMP_BRUSH_PRESSURE and GIMP_CUSTOM_CONVOLVE so they
      	don't get exported to libgimp and are not registered as enum values.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: removed special casing of
      	GimpBrushApplicationMode and GimpConvolveType since the forbidden
      	values are now skipped anyway.
      
      	* libgimp/gimpcompat.h: removed compat defines for the forbidden
      	enum values. They shouldn't have been used.
      
      	* app/tools/Makefile.am
      	* app/tools/tools-enums.[ch]: generate tools-enums.c with registered
      	enums.
      
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.h
      	* app/paint/gimpdodgeburn.h
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.[ch]
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/paint_options.c: changed accordingly. Added more enum
      	radio frames and enum option menus.
      3db3dff4
    • Sven Neumann's avatar
      app/paint/Makefile.am app/paint/paint-enums.h split enums into their own · 9ea91143
      Sven Neumann authored
      2002-03-19  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/paint-enums.h
      	* app/paint/paint-types.h: split enums into their own file and
      	namespacified them.
      
      	* app/tools/Makefile.am
      	* app/tools/tools-enums.h
      	* app/tools/tools-types.h: split enums into their own file.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.[ch]
      	* app/paint/gimppaintoptions.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/paint_options.c
      	* plug-ins/gfig/gfig.c: changed accordingly.
      
      	* libgimp/gimpcompat.h
      	* plug-ins/script-fu/siod-wrapper.c: added compatibility defines for
      	changed enums.
      
      	* tools/pdbgen/Makefile.am: updated list of headers to parse for enums.
      
      	* app/pdb/paint_tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/pdb/paint_tools.pdb: regenerated.
      9ea91143
  31. 26 Feb, 2002 1 commit
    • Michael Natterer's avatar
      Added some kind of paint core registry. It's ugly and will change... · a2bd2ac2
      Michael Natterer authored
      2002-02-26  Michael Natterer  <mitch@gimp.org>
      
      	Added some kind of paint core registry. It's ugly and will change...
      
      	* app/core/gimp.c: call paint_init() and paint_exit().
      
      	* app/core/gimptoolinfo.[ch]: added "gchar *paint_core_name" to
      	the GimpToolInfo structure and the contstructor.
      
      	* app/tools/tool_manager.c: pass the class names of the
      	GimpPaintCore subclasses to gimp_tool_info_new().
      
      	* app/paint/Makefile.am
      	* app/paint/paint.[ch]: new files. Simlply ref/unref all paint
      	core classes so we can find them using g_type_from_name().
      
      	* app/paint/gimppaintcore-stroke.[ch]: changed to take an array
      	of GimpCoords, not just gdouble.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: convert the stroke array here.
      
      	* app/gui/vectors-commands.c: ad-hoc implementation of vectors
      	stroking.  Double click now sets the active vectors in the vectors
      	tool.
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      a2bd2ac2
  32. 21 Feb, 2002 1 commit
    • Michael Natterer's avatar
      Made the paint tool PDB wrappers work again (a bit at least...) · 9c510759
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	Made the paint tool PDB wrappers work again (a bit at least...)
      
      	* app/Makefile.am: changed linking order. libtool sucks.
      
      	* app/undo.c: check if active_tool is a GimpPaintTool before
      	casting it.
      
      	* app/paint/Makefile.am
      	* app/paint/paint-types.h: added new files/types.
      
      	* app/paint/gimppaintoptions.[ch]: new files cut out of
      	tools/paint_options.h. Prefixed everything with "Gimp". There is
      	still GtkWidget* cruft hanging around in the structs...
      
      	* app/paint/gimppaintcore-stroke.[ch]: utility function
      	which paints a stroke array. Needed for the PDB wrappers.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.[ch]
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.[ch]: added *_options_new() functions which
      	create correctly initialized options structures without widgets.
      
      	* app/tools/paint_options.[ch]: removed the options struct
      	definitions and value initialisations.
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpsmudgetool.c: changed all paint_options functions
      	accordingly, s/PaintOptions/GimpPaintOptions/g etc., removed all
      	#if 0'ed non_gui functions.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: use gimp_paint_core_stroke().
      	We currently leak all paint_options structs created by the PDB
      	wrappers, more stuff to come...
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      9c510759
  33. 15 Feb, 2002 1 commit
    • Michael Natterer's avatar
      added back the handler which invalidates the display_title on dirty/clean. · 72284d38
      Michael Natterer authored
      2002-02-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-handlers.c: added back the handler
      	which invalidates the display_title on dirty/clean. Removing it
      	was simply wrong.
      
      	* app/display/gimpdisplayshell-scale.c: don't call
      	gimp_display_shell_update_title() directly but set
      	shell->title_dirty to TRUE before calling gdisplays_flush().
      
      	* app/paint/gimppaintcore.[ch]: added gimp_paint_core_constrain()
      	which does the "snap to 15 degrees" stuff formerly done in
      	GimpPaintTool. Call gimp_brush_select_brush() in
      	gimp_paint_core_paint() if paint_state == MOTION, not in several
      	other places.  Reordered functions, added some comments and
      	documentation.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c:
      	s/CORE_CAN_HANDLE_CHANGING_BRUSH/CORE_HANDLES_CHANGING_BRUSH/g,
      	minor cleanup.
      
      	* app/pdb/pdb-types.h: include "paint/paint-types.h"
      
      	* app/tools/gimppainttool.[ch]: use gimp_paint_core_constrain(),
      	removed paint_tool->state because it's not needed any more,
      	lots of cleanup.
      
      	* tools/pdbgen/app.pl: another eeky special case for "paint/".
      
      	* tools/pdbgen/pdb/paint_tools.pdb: include stuff from "paint/",
      	not "tools/".
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      72284d38
  34. 14 Feb, 2002 1 commit
    • Michael Natterer's avatar
      Core/UI separation for the paint tools: · dca988f7
      Michael Natterer authored
      2002-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Core/UI separation for the paint tools:
      
      	* configure.in
      	* app/Makefile.am
      	* app/paint/.cvsignore
      	* app/paint/Makefile.am: added new directory for the paint methods
      	without GUI and tools around them.
      
      	* app/paint/paint-types.h: typedefs for this module.
      
      	* app/paint/gimppaintcore-kernels.h
      	* app/paint/gimppaintcore.[ch]: the general paint logic taken
      	from GimpPaintTool.
      
      	* app/paint/gimpairbrush.[ch]
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpconvolve.[ch]
      	* app/paint/gimpdodgeburn.[ch]
      	* app/paint/gimperaser.[ch]
      	* app/paint/gimppaintbrush.[ch]
      	* app/paint/gimppencil.[ch]
      	* app/paint/gimpsmudge.[ch]: subclasses of GimpPaintCore,
      	implementing their own paint() methods.  Needs more hacking
      	to get the GtkWidget pointers out of the options structs.
      
      	* app/tools/gimppainttool_kernels.h: removed.
      
      	* app/tools/tools-types.h: removed the paint tool enums.
      
      	* app/tools/gimpairbrushtool.[ch]
      	* app/tools/gimpclonetool.[ch]
      	* app/tools/gimpconvolvetool.[ch]
      	* app/tools/gimpdodgeburntool.[ch]
      	* app/tools/gimperasertool.[ch]
      	* app/tools/gimppaintbrushtool.[ch]
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimppenciltool.[ch]
      	* app/tools/gimpsmudgetool.[ch]: all paint tools are pure GUI
      	things now.  PaintOptions and friends still need to be chopped up
      	though...
      
      	* app/undo.c: changed PaintUndo to GimpPaintCoreUndo, some minor
      	cleanup.
      
      	* tools/kernelgen.c: changed accordingly.
      
      	* tools/pdbgen/Makefile.am: scan paint/paint-types.h for enums.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: hardcode "success = FALSE" for
      	all paint PDB wrappers.  The non-gui stuff is completely broken.
      	More commits to come...
      
      	* app/pdb/paint_tools_cmds.c
      	* tools/pdbgen/enums.pl: regenerated.
      dca988f7
  35. 17 Dec, 2001 1 commit
    • Michael Natterer's avatar
      added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS. · be1215a2
      Michael Natterer authored
      2001-12-18  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: added -DGDK_PIXBUF_DISABLE_DEPRECATED to CPPFLAGS.
      
      	* app/core/gimpbuffer.[ch]: gimp_buffer_get_[width|height]:
      	added "const" to the GimpBuffer parameter.
      
      	* app/core/gimpchannel.c: indentation and comment changes.
      
      	* app/core/gimpdrawable-desaturate.c: don't include
      	"paint-funcs/paint-funcs.h".
      
      	* app/display/gimpdisplayshell.c: don't include "base/temp-buf.h".
      
      	* app/gui/gui.c: removed the image container's "name_changed"
      	handler.
      
      	* app/gui/palette-import-dialog.[ch]: use GimpPreview and
      	GimpContainerMenu instead of doing the same manually. Removed lots
      	of code. Not perfect yet.
      
      	* app/tools/gimpfuzzyselecttool.c: no need to include tile stuff.
      
      	* app/widgets/gimpcontainerview-utils.c: better g_warning() message.
      
      	* tools/pdbgen/pdb/paint_tools.pdb: don't include
      	"base/tile-manager.h".
      
      	* app/pdb/paint_tools_cmds.c: regenerated.
      
      	* data/images/Makefile.am
      	* data/images/gimp_logo.ppm: removed...
      	* data/images/gimp_logo.png: ...and added as PNG.
      
      	* app/gui/about-dialog.c: use gdk_pixbuf_new_from_file() to load
      	the PNG logo instead of manually parsing the PPM.
      be1215a2
  36. 10 Dec, 2001 1 commit
    • Michael Natterer's avatar
      removed, chopped... · 29ae6957
      Michael Natterer authored
      2001-12-10  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/tools.pdb: removed, chopped...
      
      	* tools/pdbgen/pdb/misc_tools.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb: ...and added here.
      
      	* app/pdb/tools_cmds.c
      	* libgimp/gimptools_pdb.[ch]: removed.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* libgimp/gimpmisctools_pdb.[ch]
      	* libgimp/gimppainttools_pdb.[ch]: generated files.
      
      	* app/pdb/Makefile.am
      	* libgimp/Makefile.am
      	* libgimp/gimp_pdb.h
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/groups.pl: changed accordingly.
      
      	* tools/pdbgen/pdb/selection_tools.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: cosmetic comment changes.
      29ae6957
  37. 08 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/core/Makefile.am new file that holds enums that are registered with · a65e1a39
      Sven Neumann authored
      2001-12-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-enums.h: new file that holds enums that are registered
      	with the type system and is used to generate core-enums.c.
      
      	* app/core/core-types.h: include core-enums.h
      
      	* app/base/base-types.h: namespace cleanup. Prefix all enumeration
      	types with Gimp and their values with GIMP. Moved GimpLayerModeEffects
      	enum ...
      
      	* app/base/base-enums.h: ... here.
      
      	* app/image_map.c
      	* app/base/temp-buf.c
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/brush-select.c
      	* app/gui/layers-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/paint-funcs/paint-funcs.[ch]
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimptexttool.c
      	* app/tools/paint_options.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimpwidgets-constructors.[ch]
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      
      	* libgimpbase/gimpbasetypes.h: no need to chop GIMP prefix off the
      	enums any longer.
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/gimprc.c: removed code to parse for "plug_in" keyword which was
      	left over from some very early gimp days.
      
      	* app/plug-in/plug-in.[ch]: removed now unused function plug_in_add().
      a65e1a39