1. 16 Dec, 2005 1 commit
  2. 07 Dec, 2005 3 commits
  3. 29 Oct, 2005 1 commit
  4. 28 Oct, 2005 1 commit
  5. 04 Oct, 2005 1 commit
    • Michael Natterer's avatar
      set core->jitter here for all brush-based paint tools. · 6cdf44d6
      Michael Natterer authored
      2005-10-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.c (gimp_brush_core_start): set
      	core->jitter here for all brush-based paint tools.
      
      	(gimp_brush_core_interpolate): cleanup.
      
      	* app/paint/gimpbrushcore.h: removed trailing whitespace.
      
      	* app/paint/gimpclone.c (gimp_clone_motion)
      	* app/paint/gimppaintbrush.c (_gimp_paintbrush_motion): removed
      	jitter stuff here.
      6cdf44d6
  6. 03 Oct, 2005 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · d4529424
      William Skaggs authored
      	* gimp/app/paint/gimpbrushcore.c
      	* gimp/app/paint/gimpbrushcore.h
      	* gimp/app/paint/gimpclone.c
      	* gimp/app/paint/gimppaintbrush.c
      	* gimp/app/paint/gimppaintoptions.c
      	* gimp/app/paint/gimppaintoptions.h
      	* gimp/app/tools/gimppaintoptions-gui.c: Apply patch from
      	Adrian Likins to add "jitter" to paint tools (bug #163049),
      	with small fixes for coding style and default jitter set
      	to 0.2 instead of 0.0.
      d4529424
  7. 24 Sep, 2005 1 commit
  8. 03 Sep, 2005 2 commits
    • Michael Natterer's avatar
      replaced manual calculation of the offset of a pixel in a tile (marked as · 8dcebeaa
      Michael Natterer authored
      2005-09-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.c (gimp_paint_core_get_orig_image)
      	(gimp_paint_core_get_orig_proj): replaced manual calculation of
      	the offset of a pixel in a tile (marked as /* dubious... */ for a
      	reason) by simply using the offset parameters of tile_data_pointer().
      8dcebeaa
    • Michael Natterer's avatar
      some general cleanup. · 09454fb2
      Michael Natterer authored
      2005-09-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/pixel-region.[ch]: some general cleanup.
      
      	(pixel_region_init_temp_buf)
      	(pixel_region_init_data): new functions which initialize pixel
      	regions on TempBufs and on raw contiguous arrays of pixel data.
      
      	(pixel_region_configure): fixed a bug that has probably been there
      	forever: when processing contiguous (non-tiled) data, interpret
      	the original x and y coordinates of the region as offsets into
      	the data. Before this fix, the initial x and y were simply ignored
      	(by using them in a broken way), thus always forcing the upper
      	left corner of the region being the beginning of the passed data.
      
      	Lots of code was working around this problem by setting the
      	pixel_region's data pointer to the proper starting pixel of the
      	region in the middle the buffer.
      
      	* libgimp/gimppixelrgn.c: some general cleanup.
      
      	(gimp_pixel_rgn_configure): same fix as above. Fortunately, nobody
      	seems to know that libgimp pixel regions can be used on arrays of
      	data, just as core ones. Only two plug-ins were using this
      	feature, and they are antique and written by spencer and federico,
      	respectively. They both don't use offsets into the buffers and are
      	not affected by this change. It's highly unlikely that anybody out
      	there knows/uses this feature, so it can IMHO be safely changed.
      
      	* app/base/temp-buf.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-combine.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimplayer.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.c: use the pixel_region_init_foo()
      	functions instead of initializing regions of TempBufs and raw data
      	manually. Removed lots of workarounds for the broken offset
      	handling. The changed places of code are much more readable now.
      09454fb2
  9. 29 Aug, 2005 1 commit
    • Michael Natterer's avatar
      The previous commit added tons of code just to completely break clone · c32827a7
      Michael Natterer authored
      2005-08-29  Michael Natterer  <mitch@gimp.org>
      
      	The previous commit added tons of code just to completely break
      	clone align behavior. Reverted lots of the changes and do the
      	sample-merged stuff at the innermost place (gimp_clone_motion).
      	This change also enables changing sample-merged between paint
      	strokes.
      
      	* app/paint/gimpclone.[ch] (struct GimpClone): changed member
      	"src_pickable" back to "src_drawable".
      
      	(gimp_clone_paint): completely reverted.
      
      	(gimp_clone_motion): do the drawable/projection -> pickable
      	stuff and drawable offset handling here.
      
      	Fixed signal handling to connect to the drawable's "removed"
      	signal (not "disconnect", eek). Disconnect from the signal once
      	the drawable has been removed.
      
      	* app/tools/gimpclonetool.c: changed accordingly.
      c32827a7
  10. 28 Aug, 2005 1 commit
    • Michael Natterer's avatar
      Immplement "Sample Merged" for the clone tool. Fixes bug #123627. · 26374e81
      Michael Natterer authored
      2005-08-28  Michael Natterer  <mitch@gimp.org>
      
      	Immplement "Sample Merged" for the clone tool. Fixes bug #123627.
      
      	* app/paint/gimppaintcore.[ch] (struct GimpPaintCore): added
      	members "saved_proj_tiles" which stores the unmodified projection,
      	"orig_proj_buf" which stores the unmodified temp paint application
      	buf and "use_saved_proj" which controls if all the additional
      	stuff should be allocated and managed.
      
      	(gimp_paint_core_start): allocate the saved_proj_tiles if needed.
      
      	(gimp_paint_core_get_orig_proj): new function like
      	gimp_paint_core_get_orig_image() which returns unmodified
      	projection pixels for paint application.
      
      	(gimp_paint_core_validate_saved_proj_tiles): new function like
      	gimp_paint_core_validate_undo_tiles() which copies the tiles that
      	will be dirtied to saved_proj_tiles.
      
      	(gimp_paint_core_paste): call above save_proj_tiles() so
      	projection tiles are saved before dirtying them.
      
      	* app/paint/gimpclone.[ch]: replaced member src_drawable by
      	src_pickable and use the image's projection if sample_merged it
      	TRUE. Adjust src offsets accordingly and use GimpPaintCore's new
      	get_orig_proj() API to get the src pixels.
      
      	* app/paint/gimpcloneoptions.[ch]: added boolean "sample_merged"
      	property.
      
      	* app/tools/gimpclonetool.c: follow GimpClone's src_drawable ->
      	src_pickable change.
      
      	(gimp_clone_tool_button_press): set the paint_core's
      	"use_saved_proj" boolean before chaining up.
      
      	(gimp_clone_options_gui): add a "Sample Merged" toggle button.
      26374e81
  11. 21 Aug, 2005 3 commits
    • Jens Seidel's avatar
      fixed a typo: s/occured/occurred/g · d08ae844
      Jens Seidel authored
      d08ae844
    • Michael Natterer's avatar
      app/paint/gimppencil.h app/paint/gimppenciloptions.[ch] · 6c7027a6
      Michael Natterer authored
      2005-08-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppencil.h
      	* app/paint/gimppenciloptions.[ch]
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptooldialog.h: don't simply typedef object
      	instance structs which add no members as their parent instance
      	structs. Give them their own instance structs.  Fixes gtk-doc
      	confusion.
      6c7027a6
    • Michael Natterer's avatar
      app/paint/gimppencil.h app/paint/gimppenciloptions.h · 6dbac4fa
      Michael Natterer authored
      2005-08-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppencil.h
      	* app/paint/gimppenciloptions.h
      	* app/widgets/widgets-types.h
      	* app/widgets/gimptooldialog.h: don't simply typedef object
      	instance structs which add no members as their parent instance
      	structs. Give them their own instance structs.  Fixes gtk-doc
      	confusion.
      6dbac4fa
  12. 20 Aug, 2005 1 commit
    • Michael Natterer's avatar
      renamed puclic functions, defines and enums to live in a proper "boundary" · 4fb1743f
      Michael Natterer authored
      2005-08-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/boundary.[ch]: renamed puclic functions, defines and
      	enums to live in a proper "boundary" namespace. Cleaned up and
      	simplified internal code even more.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-stroke.c
      	* app/core/gimplayer-floating-sel.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimppainttool.c: changed accordingly.
      4fb1743f
  13. 27 May, 2005 1 commit
  14. 21 Mar, 2005 1 commit
  15. 26 Feb, 2005 1 commit
    • Sven Neumann's avatar
      removed the "last_visited" field from GimpGradient. Instead added the new · 8de1e94b
      Sven Neumann authored
      2005-02-27  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpgradient.[ch]: removed the "last_visited" field
      	from GimpGradient. Instead added the new function
      	gimp_gradient_get_color_at_segment() that allows the caller to do
      	the same optimization.
      
      	* app/actions/gradient-editor-commands.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimppalette-import.c
      	* app/paint/gimppaintoptions.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimpviewrenderergradient.c: changed accordingly.
      
      	* app/pdb/gradient_cmds.c
      	* app/pdb/gradients_cmds.c: regenerated.
      8de1e94b
  16. 19 Feb, 2005 1 commit
    • Hans Breuer's avatar
      TILE_WIDTH is used unconditionally so always include "tile.h" WIN32 needs · c6f63ea4
      Hans Breuer authored
      2005-02-19  Hans Breuer  <hans@breuer.org>
      
      	* app/base/pixel-processor.c : TILE_WIDTH is used unconditionally
      	so always include "tile.h"
      	* app/base/tile-swap.c : WIN32 needs <process.h> for _getpid()
      
      	* app/dialogs/user-install-dialog.c : include gimpwin32-io.h
      	* libgimpbase/gimpwin32-io.h : there are no group or other
      	flags in msvcrt, define S_IGRP etc in terms of _S_IREAD etc
      
      	* plug-ins/script-fu/script-fu.c plug-ins/script-fu/siod-wrapper.c :
      	no script-fu server on win32, make respective function calls conditional
      
      	* libgimpconfig/makefile.msc : new file
      	* **/makefile.msc app/gimpcore.def : updated, gimp builds
      	and runs once more with ms toolchain
      c6f63ea4
  17. 13 Feb, 2005 1 commit
    • Sven Neumann's avatar
      check for gthread-2.0 unless the --disable-mp option is given. · 9511753a
      Sven Neumann authored
      2005-02-13  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: check for gthread-2.0 unless the --disable-mp
      	option is given.
      
      	* app/app_procs.c (app_libs_init): call g_thread_init().
      
      	* app/base/pixel-processor.c: ported to GThread.
      
      	* app/Makefile.am
      	* app/*/Makefile.am: use @GTHREAD_CFLAGS@.
      9511753a
  18. 25 Jan, 2005 1 commit
  19. 23 Jan, 2005 1 commit
    • Sven Neumann's avatar
      app/paint/paint-enums.h moved enums to libgimpbase (from app/paint and · 98f48f2c
      Sven Neumann authored
      2005-01-23  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/paint-enums.h
      	* libgimpbase/gimpbaseenums.h: moved enums to libgimpbase (from
      	app/paint and libgimp). The remaining enums in
      	app/paint/paint-enums.h need special treatment.
      
      	* app/paint/paint-enums.c:
      	* libgimp/gimpenums.h
      	* libgimpbase/gimpbaseenums.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimpbase/gimpbase.def
      	* libgimp/gimp.def: updated.
      98f48f2c
  20. 22 Jan, 2005 1 commit
    • Sven Neumann's avatar
      added gimp_prop_expander_new(). · 24786d2b
      Sven Neumann authored
      2005-01-22  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimppropwidgets.[ch]: added gimp_prop_expander_new().
      
      	* app/paint/gimppaintoptions.[ch]: added a property to track the
      	state of the "Pressure sensitivity" expander.
      
      	* app/tools/gimppaintoptions-gui.c: use gimp_prop_expander_new()
      	to create the "Pressure sensitivity" expander.
      24786d2b
  21. 14 Jan, 2005 3 commits
    • Michael Natterer's avatar
      doesn't need "gimp-intl.h" either. · 9e690da7
      Michael Natterer authored
      2005-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore-undo.c: doesn't need "gimp-intl.h" either.
      9e690da7
    • Sven Neumann's avatar
      doesn't need to include "gimp-intl.h". · b9acc24b
      Sven Neumann authored
      2005-01-14  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimpink-undo.c: doesn't need to include "gimp-intl.h".
      b9acc24b
    • Michael Natterer's avatar
      added GIMP_UNDO_INK. · d4177c88
      Michael Natterer authored
      2005-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): added GIMP_UNDO_INK.
      
      	* app/paint/gimppaintcore.[ch]: added virtual function
      	GimpPaintCore::push_undo() and call it.
      
      	* app/paint/gimppaintcore-undo.[ch]: made it the default
      	implementation.
      
      	* app/paint/gimpink-blob.[ch]: added blob_duplicate().
      
      	* app/paint/gimpink.[ch]: added a "start_blob" (just like
      	GimpPaintCore::start_coords) which gets set whenever we start a
      	new stroke or line. Removed ink->lastx and ink->lasty because
      	they are the same as paint_core->last_coords.
      
      	* app/paint/Makefile.am
      	* app/paint/gimpink-undo.[ch]: new files implementing an
      	undo step for ink which restores the last blob used along
      	with the whole ink state. Fixes bug #163670.
      d4177c88
  22. 03 Jan, 2005 1 commit
  23. 02 Jan, 2005 1 commit
  24. 01 Jan, 2005 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 7a3eee51
      William Skaggs authored
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimppaintoptions.c
      	* app/paint/gimppaintoptions.h
      	* app/tools/gimppaintoptions-gui.c: reverted last change, and
      	applied full patch from Dave Ahlswede in bug #149576.
      7a3eee51
  25. 31 Dec, 2004 3 commits
  26. 28 Dec, 2004 1 commit
  27. 27 Dec, 2004 1 commit
  28. 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
  29. 25 Oct, 2004 1 commit
    • Michael Natterer's avatar
      Don't store human readable and translatable enum/flag strings in · 67116466
      Michael Natterer authored
      2004-10-25  Michael Natterer  <mitch@gimp.org>
      
      	Don't store human readable and translatable enum/flag strings in
      	GEnumValue's and GTypeValue's fields but attach them to their
      	GType using separate structs and utility functions:
      
      	* tools/gimp-mkenums: added params and perl voodoo to support
      	generating a second array of values, which is used by the
      	Makefiles below to create and register arrays of value
      	descriptions.
      
      	* libgimpbase/gimpbasetypes.[ch]: added API to attach/retreive
      	arrays of translatable strings to/from enum and flags types. Added
      	structs GimpEnumDesc and GimpFlagsDesc for that purpose.
      
      	* libgimpbase/gimputils.[ch]: changed existing enum utility
      	functions, added new ones and added a symmetric API for flags.
      
      	* app/base/Makefile.am
      	* app/core/Makefile.am
      	* app/display/Makefile.am
      	* app/paint/Makefile.am
      	* app/text/Makefile.am
      	* app/tools/Makefile.am
      	* app/widgets/Makefile.am
      	* libgimp/Makefile.am
      	* libgimpbase/Makefile.am: changed *-enums.c generation rules
      	accordingly.
      
      	* app/base/base-enums.c
      	* app/core/core-enums.c
      	* app/display/display-enums.c
      	* app/paint/paint-enums.c
      	* app/text/text-enums.c
      	* app/tools/tools-enums.c
      	* app/widgets/widgets-enums.c
      	* libgimpbase/gimpbaseenums.c: regenerated.
      
      	* app/widgets/gimpenumstore.c
      	* app/widgets/gimpenumwidgets.c
      	* app/widgets/gimptemplateeditor.c
      	* libgimpwidgets/gimppreviewarea.c: follow the enum utility
      	function API changes.
      67116466
  30. 24 Sep, 2004 1 commit
    • Michael Natterer's avatar
      app/paint/gimpairbrushoptions.c app/paint/gimpcloneoptions.c · ff68106b
      Michael Natterer authored
      2004-09-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpairbrushoptions.c
      	* app/paint/gimpcloneoptions.c
      	* app/paint/gimpconvolveoptions.c
      	* app/paint/gimpdodgeburnoptions.c
      	* app/paint/gimperaseroptions.c
      	* app/paint/gimpinkoptions.c
      	* app/paint/gimppaintoptions.c
      	* app/paint/gimppenciloptions.c
      	* app/paint/gimpsmudgeoptions.c
      	* app/tools/gimpblendoptions.c
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpcoloroptions.c
      	* app/tools/gimpcolorpickeroptions.c
      	* app/tools/gimpcropoptions.c
      	* app/tools/gimpflipoptions.c
      	* app/tools/gimphistogramoptions.c
      	* app/tools/gimpimagemapoptions.c
      	* app/tools/gimpmagnifyoptions.c
      	* app/tools/gimpmeasureoptions.c
      	* app/tools/gimpmoveoptions.c
      	* app/tools/gimppaintoptions-gui.c
      	* app/tools/gimpselectionoptions.c
      	* app/tools/gimptextoptions.c
      	* app/tools/gimptransformoptions.c
      	* app/tools/gimpvectoroptions.c: code cleanup: untabified and
      	trailing whitespace removal, removed empty instance_init()
      	funcions, cleaned up variable declarations/initializations.
      ff68106b
  31. 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