1. 25 Oct, 2008 2 commits
    • Michael Natterer's avatar
      More merging from SOC 2006's vector layer branch: · 39af762f
      Michael Natterer authored
      2008-10-25  Michael Natterer  <mitch@gimp.org>
      
      	More merging from SOC 2006's vector layer branch:
      
      	* app/core/gimpitem.[ch]: add "gboolean push_undo" to
      	GimpItem::stroke().
      
      	* app/core/gimpdrawable-stroke.[ch]
      	* app/paint/gimppaintcore-stroke.[ch]
      	* app/paint/gimppaintcore.[ch] (gimp_paint_core_finish): add
      	"push_undo" parameters here too.
      
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpchannel.c
      	* app/core/gimpselection.c
      	* app/dialogs/stroke-dialog.c
      	* app/tools/gimppainttool.c
      	* app/vectors/gimpvectors.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/paths.pdb: pass TRUE all over the place.
      
      	* app/pdb/edit-cmds.c
      	* app/pdb/paint-tools-cmds.c
      	* app/pdb/paths-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27398
      39af762f
    • Michael Natterer's avatar
      formatting. · f096382a
      Michael Natterer authored
      2008-10-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintoptions.h: formatting.
      
      
      svn path=/trunk/; revision=27395
      f096382a
  2. 19 Oct, 2008 1 commit
    • Martin Nordholts's avatar
      Rename the convenient channel offset defines from FOO_PIX to FOO as this · e38ca549
      Martin Nordholts authored
      * app/base/base-types.h: Rename the convenient channel offset
      defines from FOO_PIX to FOO as this increases readability.
      
      * app/base/color-balance.c
      * app/base/colorize.c
      * app/base/desaturate.c
      * app/base/hue-saturation.c
      * app/base/siox.c
      * app/base/threshold.c
      
      * app/core/gimp-edit.c
      * app/core/gimp-transform-region.c
      * app/core/gimpchannel.c
      * app/core/gimpdrawable-bucket-fill.c
      * app/core/gimpdrawable-convert.c
      * app/core/gimpdrawable-stroke.c
      * app/core/gimpdrawable.c
      * app/core/gimpimage-convert.c
      * app/core/gimpimage.c
      * app/core/gimppalette-import.c
      * app/core/gimppickable.c
      
      * app/gegl/gimpoperation*mode.c
      * app/gegl/gimpoperationcolorbalance.c
      * app/gegl/gimpoperationcolorize.c
      * app/gegl/gimpoperationhuesaturation.c
      * app/gegl/gimpoperationlevels.c
      * app/gegl/gimpoperationposterize.c
      * app/gegl/gimpoperationthreshold.c
      
      * app/paint-funcs/subsample-region.c
      
      * app/paint/gimpclone.c
      * app/paint/gimppaintbrush.c
      
      * app/widgets/gimpviewrenderer.c: Adapt.
      
      svn path=/trunk/; revision=27324
      e38ca549
  3. 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
  4. 07 Oct, 2008 1 commit
  5. 08 Sep, 2008 1 commit
  6. 04 Sep, 2008 1 commit
  7. 20 Aug, 2008 1 commit
    • Michael Natterer's avatar
      make gimp_perspective_clone_get_matrix() static and add · 4c356fe4
      Michael Natterer authored
      2008-08-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpperspectiveclone.[ch]: make
      	gimp_perspective_clone_get_matrix() static and add
      	gimp_perspective_clone_set_transform().
      
      	* app/tools/gimpperspectiveclonetool.c
      	(gimp_perspective_clone_tool_mode_notify): use above set_transform()
      	API instead of poking into the object.
      
      	(gimp_perspective_clone_tool_constructor): call
      	gimp_perspective_clone_tool_mode_notify() to set up things instead
      	of duplicating code.
      
      
      svn path=/trunk/; revision=26673
      4c356fe4
  8. 15 Aug, 2008 1 commit
    • Michael Natterer's avatar
      when stroking multiple segments, set paint_core->cur_coords to the start · d32b3255
      Michael Natterer authored
      2008-08-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore-stroke.c
      	(gimp_paint_core_stroke_boundary)
      	(gimp_paint_core_stroke_vectors): when stroking multiple segments,
      	set paint_core->cur_coords to the start of each segment. It
      	normally gets assigned by gimp_paint_core_start(), but that's not
      	called for subsequent segments. Fixes stroking multiple segments
      	with the ink tool. The other tools were not affected since they
      	plot individual brushes rather than a shape from the last to the
      	current coordinates. Spotted by Alexia.
      
      
      svn path=/trunk/; revision=26578
      d32b3255
  9. 13 Aug, 2008 1 commit
  10. 12 Aug, 2008 1 commit
  11. 07 Aug, 2008 1 commit
    • Sven Neumann's avatar
      added gimp_image_get_projection(). · 3b067cba
      Sven Neumann authored
      2008-08-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage.[ch]: added gimp_image_get_projection().
      
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-render.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsourcecore.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.c
      	* app/widgets/gimpsamplepointeditor.c
      	* tools/pdbgen/pdb/image.pdb: use the new accessor function.
      
      	* app/pdb/image-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=26413
      3b067cba
  12. 24 Jul, 2008 1 commit
    • Sven Neumann's avatar
      renamed variables. · 3ed10a56
      Sven Neumann authored
      2008-07-24  Sven Neumann  <sven@gimp.org>
      
              * app/paint/gimppaintcore-stroke.c
              (gimp_paint_core_stroke_emulate_dynamics): renamed variables.
      
      
      svn path=/trunk/; revision=26298
      3ed10a56
  13. 23 Jul, 2008 3 commits
    • Sven Neumann's avatar
      also implement brush dynamics emulation for stroking selections. · 5624a717
      Sven Neumann authored
      2008-07-23  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimppaintcore-stroke.[ch]: also implement brush
      	dynamics emulation for stroking selections.
      
      	* app/core/gimpchannel.c: pass the 'emulate-dynamics' parameter 
      to
      	gimp_paint_core_stroke_boundary().
      
      
      svn path=/trunk/; revision=26293
      5624a717
    • Sven Neumann's avatar
      Based on a patch from Alexia Death (bug #543706): · 2eea0183
      Sven Neumann authored
      2008-07-23  Sven Neumann  <sven@gimp.org>
      
      	Based on a patch from Alexia Death (bug #543706):
      	
      	* app/paint/gimppaintcore-stroke.[ch]
      	(gimp_paint_core_stroke_vectors): added code to emulate brush
      	dynamics by modifying pressure and velocity along the stroke.
      
      	* app/vectors/gimpvectors.c (gimp_vectors_stroke): pass the
      	'emulate-dynamics' parameter to 
      gimp_paint_core_stroke_vectors().
      
      
      svn path=/trunk/; revision=26291
      2eea0183
    • Sven Neumann's avatar
      app/core/gimpguideundo.c app/core/gimpitemundo.c · d77ee21b
      Sven Neumann authored
      2008-07-23  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpguideundo.c
      	* app/core/gimpitemundo.c
      	* app/core/gimplayermaskundo.c
      	* app/core/gimppdbprogress.c
      	* app/core/gimpstrokedesc.c
      	* app/core/gimptooloptions.c
      	* app/core/gimptoolpresets.c
      	* app/paint/gimppaintoptions.c
      	* app/text/gimpfont.c
      	* app/tools/gimptool.c
      	* app/widgets/gimpaction.c
      	* app/widgets/gimpcontrollereditor.c: no need to cast the return
      	value of g_value_dup_object().
      
      
      svn path=/trunk/; revision=26289
      d77ee21b
  14. 18 Jul, 2008 1 commit
    • Sven Neumann's avatar
      removed delta_time, delta_x, delta_y, distance and random from the · 92661af9
      Sven Neumann authored
      2008-07-18  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-types.h: removed delta_time, delta_x, delta_y,
      	distance and random from the GimpCoords struct. These don't need
      	to be kept here and they can't be properly interpolated.
      
      	* app/core/gimpcoords.c: changed accordingly.
      
      	* app/xcf/xcf-load.c (xcf_load_vector): the size of the 
      GimpCoords
      	struct changed.
      
      	* app/display/gimpdisplayshell.[ch] (struct _GimpDisplayShell):
      	added some members to store values from the last event that are
      	needed in gimp_display_shell_eval_event() and which are not any
      	longer part of GimpCoords.
      
      	* app/display/gimpdisplayshell-coords.c
      	(gimp_display_shell_eval_event): changed accordingly.
      	
      	* app/paint/gimppaintoptions.c: calculate a random number when 
      one
      	is needed.
      
      	* app/paint/gimpbrushcore.c (gimp_brush_core_interpolate):
      	GimpCoords doesn't have a "random" field any longer.
      
      
      svn path=/trunk/; revision=26232
      92661af9
  15. 17 Jul, 2008 1 commit
    • Sven Neumann's avatar
      removed 'use_pressure' field from GimpPaintCore. · caa4c529
      Sven Neumann authored
      2008-07-17  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: removed 'use_pressure' field 
      from
      	GimpPaintCore.
      	
      	* app/paint/gimppaintoptions.[ch]: removed 'use_pressure' 
      parameter.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimpheal.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimppainttool.c: changed accordingly.
      
      
      svn path=/trunk/; revision=26225
      caa4c529
  16. 07 Jul, 2008 1 commit
  17. 09 Jun, 2008 1 commit
  18. 04 Jun, 2008 1 commit
    • Sven Neumann's avatar
      removed trailing whitespace. · 1cc664d7
      Sven Neumann authored
      2008-06-04  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimpairbrushoptions.c: removed trailing whitespace.
      
      svn path=/trunk/; revision=25889
      1cc664d7
  19. 27 May, 2008 1 commit
  20. 26 May, 2008 2 commits
    • Michael Natterer's avatar
      Applied modified patch from Alexia Death. Addresses bug #534770: · b8196025
      Michael Natterer authored
      2008-05-26  Michael Natterer  <mitch@gimp.org>
      
      	Applied modified patch from Alexia Death. Addresses bug #534770:
      
      	* app/paint/gimppaintoptions.[ch]: add properties for scaling
      	the effects of pressure, velocity and hardness and honor them
      	in the various get_dynamic_foo() functions.
      
      	(gimp_paint_options_get_dynamic_size): look at
      	pressure_options->size again, that code got lost in one of the
      	earlier patches.
      
      	* app/tools/gimppaintoptions-gui.c: add GimpScaleButtons to the
      	table for the new properties.
      
      	* app/display/gimpdisplayshell-coords.c: don't let "velocity"
      	reach 1.0, use 0.9999 instead.
      
      
      svn path=/trunk/; revision=25816
      b8196025
    • Michael Natterer's avatar
      replace the identical GimpPressureOptions, GimpVelocityOptions and · cd2c6fee
      Michael Natterer authored
      2008-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintoptions.[ch]: replace the identical
      	GimpPressureOptions, GimpVelocityOptions and GimpRandomOptions
      	struct by a single GimpDynamicOptions struct.
      
      	* app/tools/gimppaintoptions-gui.c: don't pass the various
      	sub-structs to the _options_gui() function because they are not
      	needed.
      
      
      svn path=/trunk/; revision=25814
      cd2c6fee
  21. 22 May, 2008 4 commits
    • Michael Natterer's avatar
      move generating the random axis to the right place. · bbbc6375
      Michael Natterer authored
      2008-05-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.c (gimp_brush_core_interpolate): move
      	generating the random axis to the right place.
      
      
      svn path=/trunk/; revision=25766
      bbbc6375
    • Michael Natterer's avatar
      replace the pressure-expanded, velocity-expanded and random-expanded · d66828c8
      Michael Natterer authored
      2008-05-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintoptions.[ch]: replace the pressure-expanded,
      	velocity-expanded and random-expanded properties by a single
      	dynamics-expanded property.
      
      	* app/tools/gimppaintoptions-gui.c: pack the toggle matrix into an
      	expander, some cleanup.
      
      
      svn path=/trunk/; revision=25765
      d66828c8
    • Martin Nordholts's avatar
      app/core/gimpcurve-load.c (gimp_curve_load) Remove unused variables. · 74e037bf
      Martin Nordholts authored
      2008-05-22  Martin Nordholts  <martinn@svn.gnome.org>
      
      	* app/core/gimpcurve-load.c (gimp_curve_load)
      	* app/paint/gimppaintbrush.c (_gimp_paintbrush_motion): Remove
      	unused variables.
      
      svn path=/trunk/; revision=25760
      74e037bf
    • Michael Natterer's avatar
      Applied slightly modified and fixed patch from Alexia Death which adds a · fe70064f
      Michael Natterer authored
      2008-05-22  Michael Natterer  <mitch@gimp.org>
      
      	Applied slightly modified and fixed patch from Alexia Death which
      	adds a "random" axis to the paint dynamics and fixes some issues
      	in the previous paint dynamics commits. Fixes bug #529431.
      
      	* app/core/core-types.h: add a "random" axis to GimpCoords.
      
      	* app/display/gimpdisplayshell-coords.c: set it to a random value.
      
      	* app/display/gimpdisplayshell-callbacks.c: on button_press,
      	use the dynamics from the last motion event to avoid blotches
      	at the beginning of paint strokes.
      
      	* app/paint/gimppaintoptions.[ch]: add random properties the same
      	way we do pressure and velocity. Add get_dynamic_size(),
      	get_dynamic_color() and get_dynamic_hardness() functions which
      	look at all dynamic parameters of the passed coords.
      
      	* app/tools/gimppaintoptions-gui.c: add gui for the random options.
      
      	* app/paint/gimpbrushcore.[ch]: remove calc_brush_scale() and use
      	gimp_paint_options_get_dynamic_size_instead().
      	Add "dynamic_hardness" parameters to paste_canvas(),
      	replace_canvas() and get_brush_mask().
      
      	* app/paint/gimpairbrushoptions.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimpheal.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimpsmudge.c: calculate the dynamic hardness and pass
      	it to above brush core functions. Use the get_dynamic_color() to
      	calculate the gradient color.
      
      
      svn path=/trunk/; revision=25758
      fe70064f
  22. 19 May, 2008 1 commit
    • Sven Neumann's avatar
      removed unused import. · 0c915afb
      Sven Neumann authored
      2008-05-19  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimpperspectiveclone.c: removed unused import.
      
      svn path=/trunk/; revision=25710
      0c915afb
  23. 18 May, 2008 2 commits
    • Michael Natterer's avatar
      clean up last patch. · 330376d7
      Michael Natterer authored
      2008-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.c: clean up last patch.
      
      
      svn path=/trunk/; revision=25698
      330376d7
    • Martin Nordholts's avatar
      Applied patch from Alexia Death that makes velocity dynamics controlled · 267462eb
      Martin Nordholts authored
      2008-05-18  Martin Nordholts  <martinn@svn.gnome.org>
      
      	Applied patch from Alexia Death that makes velocity dynamics
      	controlled scale properly recalculate the brush mask when
      	necessary (bug #533618).
      
      	* app/paint/gimpbrushcore.[ch] (gimp_brush_core_scale_mask): A
      	change in scale requires a recalculation of the cached brush mask.
      
      svn path=/trunk/; revision=25696
      267462eb
  24. 10 May, 2008 1 commit
    • Michael Natterer's avatar
      Applied modified patch from Alexia Death which adds velocity support to · 82c2616f
      Michael Natterer authored
      2008-05-10  Michael Natterer  <mitch@gimp.org>
      
      	Applied modified patch from Alexia Death which adds velocity
      	support to paint tools in the spirit of the pressure support we
      	already have. Fixes bug #529431.
      
      	* app/display/gimpdisplayshell-coords.c
      	(gimp_display_shell_eval_event): tweak velocity calculation to
      	work in screen coordinates.
      
      	* app/paint/gimppaintoptions.[ch]: add velocity options in the
      	same way as there are pressure options. Add utility functions
      	which return dynamic opatity and dynamic rate according to the the
      	option's settings and some GimpCoords' pressure and velocity.
      
      	* app/tools/gimppaintoptions-gui.c: add GUI for the velocity
      	options.
      
      	* app/paint/gimpbrushcore.h: remove PRESSURE_SCALE define, it's
      	now in gimppaintoptions.h.
      
      	* app/paint/gimpbrushcore.c (gimp_brush_core_interpolate):
      	inerpolate velocity too.
      
      	(gimp_brush_core_calc_brush_scale): take velocity into account.
      
      	(gimp_brush_core_get_brush_mask): always pressurize the mask in
      	the GIMP_BRUSH_PRESSURE because there always is velocity (unlike
      	pressure which is only there on tablets).
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimpheal.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimpsmudge.c: get opacity and rate from the new paint
      	options utility functions which take both pressure and velocity
      	into account.
      
      	* app/paint/gimppaintbrush.c: take velocity into account when
      	calculating the gradient color offset.
      
      	* app/paint/gimpairbrush.c: do some additional fiddling with
      	velocity in the asynchronous airbrush timeout.
      
      	* app/paint/gimpairbrushoptions.c: override the velocity-size
      	property and have it default to FALSE.
      
      
      svn path=/trunk/; revision=25604
      82c2616f
  25. 25 Apr, 2008 2 commits
    • Michael Natterer's avatar
      add g_return_if_fail(). · f532e425
      Michael Natterer authored
      2008-04-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintoptions.c (gimp_paint_options_get_jitter):
      	add g_return_if_fail().
      
      	* app/paint/gimpheal.c (gimp_heal_motion)
      	* app/paint/gimpdodgeburn.c (gimp_dodge_burn_motion): free stuff
      	right after it's not used any longer, instead of at the end of the
      	function.
      
      	* app/paint/gimppaintbrush.c (_gimp_paintbrush_motion): move a
      	statement to improve consistency with other motion() functions.
      
      
      svn path=/trunk/; revision=25526
      f532e425
    • Michael Natterer's avatar
      reorder jitter options stuff to be consistently ordered all over the · 7ee6ebca
      Michael Natterer authored
      2008-04-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintoptions.[ch]: reorder jitter options stuff to
      	be consistently ordered all over the place.
      
      
      svn path=/trunk/; revision=25523
      7ee6ebca
  26. 30 Mar, 2008 1 commit
  27. 10 Mar, 2008 1 commit
    • Sven Neumann's avatar
      formatting. · aec9ef26
      Sven Neumann authored
      2008-03-10  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimpink.c (gimp_ink_motion): formatting.
      
      svn path=/trunk/; revision=25081
      aec9ef26
  28. 06 Feb, 2008 1 commit
  29. 04 Feb, 2008 2 commits
  30. 22 Jan, 2008 1 commit
    • Sven Neumann's avatar
      smooth the mask instead of dilating. · 80191e35
      Sven Neumann authored
      2008-01-22  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimpbrushcore.c (gimp_brush_core_create_bound_segs):
      	smooth the mask instead of dilating.
      
      
      svn path=/trunk/; revision=24678
      80191e35