1. 11 Jul, 2018 1 commit
  2. 03 Apr, 2018 1 commit
  3. 19 May, 2016 1 commit
  4. 08 May, 2016 1 commit
    • Ell's avatar
      app, pdb: Modify gimp_channel_border() to take a style parameter · 15d49080
      Ell authored
      isntead of the feather parameter, and pass it to
      gimp_gegl_apply_border().
      
      Make the necessary changes to the rest of the code to maintain the
      current behavior.
      
      Mass parameter alignment changes to gimpchannel.h. Sigh #2...
      15d49080
  5. 25 Jan, 2016 1 commit
  6. 03 Jul, 2015 1 commit
  7. 07 May, 2013 1 commit
  8. 02 May, 2012 1 commit
  9. 07 Feb, 2010 1 commit
  10. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      
      	* all files with a GPL header and all COPYING files:
      
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      
      
      svn path=/trunk/; revision=27913
      d9b5207a
  11. 14 Oct, 2008 1 commit
    • Michael Natterer's avatar
      add a default implementation of GimpDrawable::get_node() which contains a · 5fa6af0e
      Michael Natterer authored
      2008-10-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: add a default implementation of
      	GimpDrawable::get_node() which contains a layer mode node.
      	Implement GimpItem::visibility_changed() and turn the node into a
      	nop when the drawable is invisible. Added public function
      	gimp_drawable_get_mode_node() so subclasses can plug stuff
      	into its "aux" pad.
      
      	* app/core/gimplayer.[ch]
      	* app/core/gimpchannel.[ch]: changed accordingly (remove
      	duplicated member and code that is now in GimpDrawable).
      
      
      svn path=/trunk/; revision=27277
      5fa6af0e
  12. 11 Oct, 2008 1 commit
    • Michael Natterer's avatar
      add a projection node and implement GimpDrawable::get_node(). Reconfigure · 0e882395
      Michael Natterer authored
      2008-10-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.[ch]: add a projection node and
      	implement GimpDrawable::get_node(). Reconfigure the node in
      	visibility_changed(), set_color(), set_opacity() and
      	set_show_masked().
      
      	* app/core/gimpimage.c (gimp_image_get_graph): enable code that
      	projects the channels stack on top of the layer stack.
      
      	* app/core/gimpprojection-construct.c: remove the call to
      	gimp_projection_construct_channels() from the GEGL code path. Also
      	don't touch proj->construct_flag.
      
      
      svn path=/trunk/; revision=27230
      0e882395
  13. 05 Mar, 2007 1 commit
    • Michael Natterer's avatar
      Makes default Select -> Border behaviour consistent, and makes 'sticky · e6fb62d4
      Michael Natterer authored
      2007-03-05  Michael Natterer  <mitch@gimp.org>
      
      	Makes default Select -> Border behaviour consistent, and makes
      	'sticky image edges' optional by adding a checkbox in the Border
      	Selection dialog. Patch by Martin Nordholts. Fixes bug #350009.
      
      	* app/actions/select-commands.c (select_border_cmd_callback)
      	(select_border_callback): Added edge-lock checkbox to dialog and
      	modified calls accordingly.
      
      	* app/paint-funcs/paint-funcs.c (border_region)
      	(compute_transition): Fixed algorithm. (compute_transition is a
      	helper function to the algorithm). Also clarified many parts of
      	the algorithm with comments.
      
      	* app/paint-funcs/paint-funcs.h
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpselection.c: Added gboolean edge_lock to function
      	calls/signatures.
      
      	* app/pdb/selection_cmds.c: Regenerated. 
      
      
      svn path=/trunk/; revision=22047
      e6fb62d4
  14. 09 Dec, 2006 1 commit
  15. 05 Jun, 2006 2 commits
    • Sven Neumann's avatar
      app/paint-funcs/paint-funcs.[ch] app/core/gimpchannel.[ch] · 528a5a36
      Sven Neumann authored
      2006-06-05  Sven Neumann  <sven@gimp.org>
      
      	* app/paint-funcs/paint-funcs.[ch]
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpselection.c:
      	* app/actions/select-commands.c: further cleaned up the patch
      from
      	bug #88633.
      528a5a36
    • Michael Natterer's avatar
      Applied slightly modified patch from saulgoode which allows to border a · b3747855
      Michael Natterer authored
      2006-06-05  Michael Natterer  <mitch@gimp.org>
      
      	Applied slightly modified patch from saulgoode which allows to
      	border a selection without feathering. Fixes bug #88633.
      
      	* app/paint-funcs/paint-funcs.[ch] (border_region): added boolean
      	"feather_border" parameter.
      
      	* app/core/gimpchannel.[ch]: GimpChannel::border(): ditto.
      
      	* app/core/gimpselection.c: changed accordingly.
      
      	* app/actions/select-commands.c: added a toggle to the border
      	dialog and pass it to gimp_channel_border().
      
      	* tools/pdbgen/pdb/selection.pdb: pass TRUE here.
      
      	* app/pdb/selection_cmds.c: regenerated.
      b3747855
  16. 28 Mar, 2006 1 commit
  17. 21 Aug, 2005 1 commit
  18. 11 Jul, 2005 1 commit
    • Michael Natterer's avatar
      added GimpPickable::get_opacity_at() · d64bf356
      Michael Natterer authored
      2005-07-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimppickable.[ch]: added GimpPickable::get_opacity_at()
      
      	* app/core/gimpchannel.[ch]: removed gimp_channel_value() and
      	implement ::get_opacity_at() instead.
      
      	* app/core/gimplayer.[ch]: removed gimp_layer_pick_correlate()
      	and implement ::get_opacity_at() instead.
      
      	* app/core/gimpselection.c: GimpChannel::value() doesn't exist
      	any more.
      
      	* app/core/gimpprojection.c: implement ::get_opacity_at(), always
      	returns OPAQUE.
      
      	* app/core/gimpimage.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpnewrectselecttool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/selection_cmds.c: regenerated.
      d64bf356
  19. 05 Jul, 2004 1 commit
    • Michael Natterer's avatar
      added signal "color-changed" and emit it in gimp_channel_set_color() and · d476ee65
      Michael Natterer authored
      2004-07-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.[ch]: added signal "color-changed" and emit
      	it in gimp_channel_set_color() and gimp_channel_set_opacity().
      
      	* app/core/gimpimage-qmask.[ch]: added new functions
      	gimp_image_set,get_qmask_color().
      
      	* app/core/gimpimage.[ch]: install a "color-changed" handler on
      	gimage->channels and update gimage->qmask_color when the qmask's
      	color changes. Fixes bug #145361.
      
      	* app/actions/qmask-commands.c: use the new qmask color API.
      d476ee65
  20. 13 Apr, 2004 1 commit
    • Michael Natterer's avatar
      GimpItem undo group cleanup in preparation of fixing bug #138356: · 069489fb
      Michael Natterer authored
      2004-04-13  Michael Natterer  <mitch@gimp.org>
      
      	GimpItem undo group cleanup in preparation of fixing bug #138356:
      
      	* app/core/core-enums.[c]: renamed LAYER_SCALE and LAYER_RESIZE
      	undo groups to ITEM_SCALE and ITEM_RESIZE.
      
      	* app/core/gimpitem.[ch]: always push undo groups around
      	GimpItem::translate(), scale(), resize(), flip(), rotate() and
      	transform(). Added the resp. undo_desc strings to GimpItemClass.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimplayer.c: removed all undo groups from
      	implementations of the above methods. Removed the undo_desc
      	strings which were moved to GimpItemClass.
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpselection.c
      	* app/gui/layers-commands.c
      	* app/vectors/gimpvectors.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      069489fb
  21. 16 Mar, 2004 1 commit
    • Michael Natterer's avatar
      ref new tiles before unrefing the old ones. · 49238237
      Michael Natterer authored
      2004-03-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.c (gimp_drawable_set_tiles): ref new
      	tiles before unrefing the old ones.
      
      	* app/core/gimpimage-undo-push.c: keep undo memsize exact by
      	adjusting undo->size when the stored data changes.
      
      	* app/core/gimpchannel.[ch] (gimp_channel_new_from_alpha)
      	* app/core/gimpchannel-select.[ch] (gimp_channel_select_alpha):
      	replaced "layer" parameter by "drawable".
      
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.[ch]
      	* app/core/gimpselection.c: remdom cleanup & code review.
      49238237
  22. 04 Sep, 2003 4 commits
    • Michael Natterer's avatar
      removed gimp_channel_load(). · e2e04908
      Michael Natterer authored
      2003-09-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.[ch]: removed gimp_channel_load().
      
      	* app/core/gimpimage-mask.[ch]: removed gimp_image_mask_load()
      	and _save().
      
      	* app/core/gimpselection.[ch]: added gimp_selection_load() and
      	_save() since these functions are specific to the selection.
      
      	* app/core/gimpimage-qmask.c
      	* app/gui/select-commands.c
      	* app/widgets/gimpselectioneditor.c
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/selection_cmds.c: regenerated.
      e2e04908
    • Michael Natterer's avatar
      app/core/gimpchannel.[ch] reordered GimpChannel::is_empty() after · ce437b58
      Michael Natterer authored
      2003-09-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpselection.c: reordered GimpChannel::is_empty()
      	after GimpChannel::boudary() and GimpChannel::bounds() because it
      	belongs to that group of functions.
      ce437b58
    • Michael Natterer's avatar
      app/core/Makefile.am new files split out of gimpchannel.[ch]. · 3911d511
      Michael Natterer authored
      2003-09-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpchannel-combine.[ch]: new files split out of
      	gimpchannel.[ch].
      
      	* app/core/gimpchannel.[ch]: removed the combine functions here.
      
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpimage-mask-select.c
      	* tools/pdbgen/pdb/channel.pdb: changed #includes accordingly.
      
      	* app/pdb/channel_cmds.c: regenerated.
      3911d511
    • Michael Natterer's avatar
      added new pure virtual function GimpDrawable::invalidate_boundary(). · f9f5089f
      Michael Natterer authored
      2003-09-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added new pure virtual function
      	GimpDrawable::invalidate_boundary().
      
      	* app/core/gimplayer.[ch]: implement it and removed public
      	function gimp_layer_invalidate_boundary().
      
      	* app/core/gimpchannel.[ch]: implement it.
      
      	* app/core/gimpselection.[ch]: implement it and removed public
      	function gimp_selection_invalidate().
      
      	* app/core/gimpimage-mask.c (gimp_image_mask_invalidate)
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/text/gimptextlayer.c: changed accordingly.
      
      	* app/core/gimpchannel.[ch]: made gimp_channel_push_undo() a
      	public function and made it call
      	gimp_drawable_invalidate_boundary(). Added undo_desc strings for
      	all undo pushing functions to GimpChannelClass.
      
      	* app/core/gimpselection.[ch]: removed gimp_selection_push_undo()
      	since after the change above it was identical to
      	gimp_channel_push_undo().  Don't push any undo here since
      	upchaining does the right thing now.  Override GimpChannelClass'
      	undo_desc strings to say "Selection".
      
      	* app/core/gimpimage-mask.c (gimp_image_mask_push_undo): changed
      	accordingly.
      f9f5089f
  23. 02 Sep, 2003 1 commit
    • Michael Natterer's avatar
      made all functions which push an undo step virtual and added them all as · 420d17d2
      Michael Natterer authored
      2003-09-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.[ch]: made all functions which push an
      	undo step virtual and added them all as default implementations.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpselection.[ch]: new object which is a GimpChannel
      	subclass and implements all of its virtual functions, pushes
      	an image_mask undo and chains up with "push_undo = FALSE".
      
      	* app/core/gimpimage-mask.[ch]: made most functions simple
      	wrappers like gimp_channel_invert(gimp_image_get_mask(gimage));
      	so the API stays the same for now.
      
      	* app/core/gimpimage.[ch]: create a GimpSelection object
      	as gimage->selection_mask. Removed "gboolean mask_stroking"
      	since it is in GimpSelection now.
      
      	* app/xcf/xcf-load.c (xcf_load_channel_props): added an evil hack
      	which turns a GimpChannel into a GimpSelection once we figured the
      	loaded channel is the selection.
      
      	* app/core/gimplayer.c (gimp_layer_create_mask):
      	gimp_channel_clear() takes an additional "const gchar *undo_desc"
      	parameter now.
      
      	* app/core/gimpscanconvert.c (gimp_scan_convert_to_channel): set
      	mask->bounds_known to FALSE before returning the new channel
      
      	* app/tools/gimpiscissorstool.c (iscissors_convert): no need to
      	call gimp_channel_invalidate_boundary() on the channel returned by
      	the above function.
      
      	* app/core/gimpchannel.[ch]: removed
      	gimp_channel_invalidate_boundary() since it is no longer needed.
      420d17d2
  24. 30 Aug, 2003 1 commit
    • Michael Natterer's avatar
      app/core/gimpchannel.[ch] (gimp_channel_boundary) · 2da93d69
      Michael Natterer authored
      2003-08-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.[ch] (gimp_channel_boundary)
      	* app/core/gimpimage-mask.[ch] (gimp_image_mask_boundary)
      	* app/core/gimplayer-floating-sel.[ch] (floating_sel_boundary):
      	return const BoundSeg arrays because they are cached and not newly
      	allocated.
      
      	* app/base/boundary.[ch] (sort_boundary)
      	* app/tools/gimpdrawtool.[ch] (gimp_draw_tool_draw_boundary):
      	take const BoundSeg arrays.
      
      	* app/core/gimpimage-mask.c (gimp_image_mask_stroke)
      	* app/display/gimpdisplayshell-selection.c
      	* app/tools/gimpeditselectiontool.c (init_edit_selection):
      	changed accordingly.
      2da93d69
  25. 21 Aug, 2003 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am new file defining the available help topics. Work · a319c455
      Michael Natterer authored
      2003-08-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimphelp-ids.h: new file defining the available help
      	topics. Work in progress and totally unusable for matching to the
      	help system. Stay tuned...
      
      	* app/gui/about-dialog.c
      	* app/gui/brushes-menu.c
      	* app/gui/buffers-menu.c
      	* app/gui/channels-commands.[ch]
      	* app/gui/channels-menu.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/gradients-commands.c
      	* app/gui/gradients-menu.c
      	* app/gui/image-menu.c
      	* app/gui/layers-commands.[ch]
      	* app/gui/layers-menu.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palettes-menu.c
      	* app/gui/patterns-menu.c
      	* app/gui/resize-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/templates-menu.c
      	* app/gui/tips-dialog.c
      	* app/gui/toolbox-menu.c
      	* app/gui/vectors-commands.[ch]
      	* app/gui/vectors-menu.c: replaced literal HTML file paths by help
      	IDs from gimphelp-ids.h. Renamed some menu callbacks to be
      	consistent with similar ones. This is just an intermediate commit
      	and not finished.
      
      	While browsing all the menus, I noticed that our "x to selection"
      	functions are not consistent at all. They should all offer the
      	REPLACE,ADD,SUBTRACT,INTERSECT options:
      
      	* app/core/gimpchannel.[ch]: added new function
      	gimp_channel_new_from_alpha(). Removed gimp_channel_layer_alpha()
      	and gimp_channel_layer_mask().
      
      	* app/core/gimpimage-mask.[ch]: added
      	gimp_image_mask_select_alpha() and
      	gimp_image_mask_select_component() which offer the full set of
      	operation, feather and feather_radius parameters as the other
      	selection functions.
      
      	* app/core/gimpimage-mask-select.[ch]: removed
      	gimp_image_mask_layer_alpha() and gimp_image_mask_layer_mask().
      
      	* app/gui/channels-commands.c (channels_channel_to_selection): use
      	gimp_image_mask_select_component() instead of implementing it
      	here.
      
      	* app/gui/image-menu.c
      	* app/gui/layers-commands.[ch]: offer the full choice of
      	REPLACE,ADD,SUBTRACT,INTERSECT with "Alpha to Selection" and "Mask
      	to Selection".
      
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/selection_cmds.c: regenerated.
      a319c455
  26. 09 May, 2003 1 commit
    • Michael Natterer's avatar
      added "gboolean push_undo" to GimpItem::translate() and don't push and · 45736814
      Michael Natterer authored
      2003-05-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added "gboolean push_undo" to
      	GimpItem::translate() and don't push and undo in
      	gimp_item_translate().
      
      	* app/core/gimpchannel.[ch]: removed public function
      	gimp_channel_translate() and implement GimpItem::translate().
      
      	* app/core/gimpimage-mask.c
      	* app/core/gimplayer.c: changed accordingly.
      
      	* app/vectors/gimpvectors.c: actually translate the vectors
      	in translate().
      
      	* app/gui/channels-commands.c (channels_new_channel_query): removed
      	useless call to gimp_channel_translate().
      
      	* app/tools/gimpeditselectiontool.c
      	* tools/pdbgen/pdb/layer.pdb: when translating a linked layer,
      	also translate all linked channels and vectors. Cleanup.
      
      	Note that the "linked" behaviour has changed: before this change,
      	moving a layer moved all linked layers unconditionally. Now,
      	linked layers/channels/vectors are moved *only* if the moved layer
      	is also linked (the linked items behave as a group now and moving
      	something not in the group does not affect the group).
      
      	* app/pdb/layer_cmds.c: regenerated.
      45736814
  27. 07 May, 2003 2 commits
    • Michael Natterer's avatar
      More transform stuff virtualization: · 323ed50c
      Michael Natterer authored
      2003-05-07  Michael Natterer  <mitch@gimp.org>
      
      	More transform stuff virtualization:
      
      	* app/core/gimpitem.[ch]: added new virtual function
      	GimpItem::resize().
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]: removed public resize functions
      	and implement resize() instead.
      
      	* app/core/gimpdrawable.c: implement resize() which contains
      	the common parts of layer/channel resizing.
      
      	* app/vectors/gimpvectors.c: added empty resize() implementation.
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-resize.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      323ed50c
    • Michael Natterer's avatar
      Started to abstract item transformation so we can easily transform · 2a17435e
      Michael Natterer authored
      2003-05-07  Michael Natterer  <mitch@gimp.org>
      
      	Started to abstract item transformation so we can easily
      	transform multiple linked items later:
      
      	* app/core/gimpitem.[ch]: added new virtual function
      	GimpItem::scale() with the same signature as the former
      	gimp_layer_scale_lowlevel().
      
      	* app/core/gimpdrawable.c: implement scale() and do the
      	common parts of layer/channel scaling here.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]: implement scale() for the
      	channel/layer specific parts of scaling.
      
      	* app/core/gimplayer.[ch]: renamed gimp_layer_scale() to
      	gimp_layer_scale_by_origin().
      
      	* app/vectors/gimpvectors.c: added empty scale() implementation.
      
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo-push.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      
      	Unrelated:
      
      	* app/core/gimpimage-undo-push.c: fixed item rename undo to
      	take the size of the saved name into account. Removed old
      	path_undo stuff.
      2a17435e
  28. 15 Apr, 2003 1 commit
    • Sven Neumann's avatar
      Removed support for pluggable tools: · 0c399e5c
      Sven Neumann authored
      2003-04-15  Sven Neumann  <sven@gimp.org>
      
      	Removed support for pluggable tools:
      
      	* configure.in: bumped version number to 1.3.15.
      
      	* Makefile.am
      	* libgimpproxy
      	* libgimptool
      	* plug-ins/Makefile.am
      	* plug-ins/plugin-helper
      	* plug-ins/tools: removed libgimpproxy, libgimptool and plug-ins
      	that used it.
      
      	* tools/Makefile.am
      	* tools/gimp-mkproxy: removed tool that used to generate
      	libgimpproxy.
      
      	* app/core/core-enums.h
      	* app/core/gimpchannel.h
      	* app/display/display-types.h
      	* app/widgets/widgets-enums.h: removed proxy-skip/resume stuff.
      
      	* app/core/gimpobject.c: use gimp marshallers.
      
      	* app/tools/Makefile.am
      	* app/tools/gimptool.h
      	* app/tools/tools-enums.[ch]: moved these files back from
      	libgimptool.
      
      	* app/tools/gimptool.c
      	* app/tools/gimptoolcontrol.h: merged back functionality from
      	libgimptool.
      
      	* app/Makefile.am
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/tools-commands.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpbucketfilltool.h
      	* app/tools/gimpdrawtool.h
      	* app/tools/gimpimagemaptool.h
      	* app/tools/gimpinktool.h
      	* app/tools/gimptoolmodule.c
      	* app/tools/tool_manager.c
      	* app/tools/tools-types.h
      	* app/tools/tools.c
      	* tools/pdbgen/Makefile.am: changed accordingly.
      0c399e5c
  29. 17 Mar, 2003 2 commits
    • Michael Natterer's avatar
      Made drawable/layer properties (visibility, opacity etc.) undoable (fixes · 884b3aa7
      Michael Natterer authored
      2003-03-17  Michael Natterer  <mitch@gimp.org>
      
      	Made drawable/layer properties (visibility, opacity etc.)
      	undoable (fixes bug #73893).
      
      	* app/core/core-enums.[ch]: added undo types/groups for
      	visibility, mode, opacity, linked and preserve_trans.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitemundo.[ch]: new GimpUndo subclass which holds a
      	ref'ed GimpItem pointer so (1) this doesn't need to be done by all
      	undo steps related to an item and (2) the item the undo step is
      	for can be determined from outside the undo system.
      
      	* app/core/gimpimage-undo.[ch]: added gimp_image_undo_push_item()
      	which returns a new GimpItemUndo.
      
      	* app/core/gimpimage-undo-push.[ch]: use it for all item related
      	undo steps. Removed lots of GimpItem, GimpLayer, GimpDrawable
      	and GimpVectors pointers from the private undo structs. Added
      	undo push functions for the new undo types added above.
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_set_visible): added
      	"gboolean push_undo" parameter.
      
      	* app/core/gimplayer.[ch] (gimp_layer_set_opacity, _mode,
      	_preserve_trans, _linked): added "gboolean push_undo" parameters.
      
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimplayer-floating-sel.c
      	* app/tools/gimpmovetool.c
      	* app/xcf/xcf-load.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplayerlistview.c: changed accordingly.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: ditto. Added '$undo' paramaters to
      	the foo_accessors() functions. Removed $func from foo_accesors()
      	because we don't manipulate items without using getters/setters
      	any longer.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c: regenerated.
      
      	* app/widgets/gimpcellrenderertoggle.[ch]: added "clicked" signal
      	which carries an additional "GdkModifierType state" parameter as
      	in GimpCellRendererViewable .
      
      	* app/widgets/gimpcontainertreeview.c: emit "clicked" from
      	the toggle renderer, not "toggled" so the callbacks get the
      	modifier state.
      
      	* app/widgets/gimpdrawabletreeview.c: resurrected the "exclusive
      	visible by <shift>+click" feature as in 1.2.
      
      	* app/widgets/gimplayertreeview.c: compress layer opacity undos by
      	looking at the top of the undo stack and not pushing an undo if
      	there already is a GIMP_UNDO_DRAWABLE_OPACITY for the active
      	layer.
      884b3aa7
    • Michael Natterer's avatar
      added GIMP_UNDO_CHANNEL_COLOR. · b417203a
      Michael Natterer authored
      2003-03-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: added GIMP_UNDO_CHANNEL_COLOR.
      
      	* app/core/gimpchannel.[ch]: added "gboolean push_undo" to
      	gimp_channel_set_color().
      
      	* app/core/gimpimage-undo-push.[ch]: added
      	gimp_image_undo_push_channel_color().
      
      	* app/core/gimpimage-qmask.c
      	* app/gui/qmask-commands.c
      	* app/widgets/gimpchannellistitem.c
      	* tools/pdbgen/pdb/channel.pdb: changed accordingly.
      
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c: ditto. Use gimp_item_rename().
      
      	* app/pdb/channel_cmds.c: regenerated.
      b417203a
  30. 11 Mar, 2003 1 commit
    • Sven Neumann's avatar
      added gimp_channel_new_from_component() which creates a new GimpChannel · 3c30a90b
      Sven Neumann authored
      2003-03-12  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpchannel.[ch]: added gimp_channel_new_from_component()
      	which creates a new GimpChannel from an image's color component.
      
      	* app/gui/channels-commands.[ch]: added
      	channels_duplicate_component_cmd_callback().
      
      	* app/paint-funcs/paint-funcs-generic.h
      	* app/paint-funcs/paint-funcs.[ch]: added code to extract a color
      	component from a PixelRegion (untested!).
      
      	* plug-ins/common/checkerboard.c: cosmetics.
      3c30a90b
  31. 11 Feb, 2003 1 commit
    • Michael Natterer's avatar
      added new virtual function duplicate() as replacement for all · 436ed648
      Michael Natterer authored
      2003-02-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added new virtual function duplicate()
      	as replacement for all gimp_*_copy() functions.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimplayermask.[ch]
      	* app/vectors/gimpvectors.[ch]: replaced public copy() functions
      	by duplicate() implementations.
      
      	* app/text/gimptextlayer.c: added a duplicate() implementation.
      
      	* app/widgets/gimpitemlistview.[ch]: removed the "copy_item_func"
      	and simply call gimp_item_duplicate().
      
      	* app/undo.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-qmask.c
      	* app/gui/channels-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      436ed648
  32. 15 Jan, 2003 1 commit
    • Manish Singh's avatar
      app/core/gimpchannel.h app/core/gimpitem.c · 248dbd1e
      Manish Singh authored
      2003-01-14  Manish Singh  <yosh@gimp.org>
      
              * app/core/gimpchannel.h
              * app/core/gimpitem.c
              * app/display/gimpnavigationview.c
              * app/gui/paths-dialog.c
              * app/tools/gimphistogramtool.c
              * app/tools/gimpscaletool.c
              * app/widgets/gimplistitem.c
              * libgimp/gimppixelrgn.c
              * libgimpwidgets/gimpunitmenu.c
              * plug-ins/FractalExplorer/Dialogs.c
              * plug-ins/common/aa.c
              * plug-ins/common/despeckle.c
              * plug-ins/common/psd.c
              * plug-ins/common/sharpen.c
              * plug-ins/common/snoise.c
              * plug-ins/common/spread.c
              * plug-ins/ifscompose/ifscompose.c
              * plug-ins/xjt/xjt.c: some minor code cleanup
      
              * plug-ins/common/csource.c: 64-bit cleanliness
      248dbd1e
  33. 20 Aug, 2002 1 commit
    • Michael Natterer's avatar
      Make sure the selection (gimpimage-mask.c) functionality is really built · 33bba657
      Michael Natterer authored
      2002-08-20  Michael Natterer  <mitch@gimp.org>
      
      	Make sure the selection (gimpimage-mask.c) functionality is really
      	built *on top* of the GimpChannel functionality:
      
      	* app/undo.[ch]: renamed undo_push_image_mask() to
      	undo_push_mask() and generalized it's API to take a GimpChannel
      	param so undos can be pushed for channels which are not the
      	image's selection. Simplified the API and added code which copies
      	the region of interest instead of leaving this to callers.
      
      	* app/undo_types.h: s/IMAGE_MASK_UNDO/MASK_UNDO/
      
      	* app/undo_history.c: changed accordingly.
      
      	* app/core/gimpchannel.[ch]: don't #include "gimpimage-mask.h".
      	Changed gimp_channel_push_undo() to really push a channel undo,
      	not a selection undo. Added "gboolean push_undo" params to all
      	functions which are called from gimpimage-mask.c. Various cleanups
      	and optimizations. Added /*< proxy-foo >*/ stuff to the header so
      	we export just the struct itself to libgimpproxy. Added accessors
      	gimp_channel_[get|set]_show_masked().
      
      	* app/core/gimpimage-mask.[ch]: renamed gimp_image_mask_undo() to
      	gimp_image_mask_push_undo(). Call it before calling GimpChannel
      	functions which modify the mask, also call all GimpChannel
      	functions with push_undo = FALSE. Emit gimp_image_mask_changed()
      	after each operation instead of calling it in
      	gimp_image_mask_invalidate(). Removed gimp_image_mask_none()
      	because it is the same as gimp_image_mask_clear().
      	General cleanup.
      
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-qmask.c: changed accordingly.
      
      	* app/core/gimpedit.c: call gimp_image_mask_clear(), not
      	gimp_channel_clear (gimp_image_get_mask()).
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c: call gimp_image_mask_changed()
      
      	* app/gui/channels-commands.c
      	* app/gui/select-commands.c
      	* app/tools/gimptexttool.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/selection.pdb: follow GimpChannel and
      	gimp_image_mask* API changes.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/selection_cmds.c
      	* libgimpproxy/gimpchannel.h: regenerated.
      
      	Unrelated:
      
      	* app/core/gimpimage.c: call gimp_drawable_push_undo() instead of
      	undo_push_image() directly.
      33bba657
  34. 06 Jun, 2002 1 commit
    • Michael Natterer's avatar
      added a boolean "push_undo" parameter. · 8bfd02fa
      Michael Natterer authored
      2002-06-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.[ch] (gimp_channel_invert): added a boolean
      	"push_undo" parameter.
      
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-qmask.c: pass push_undo == TRUE.
      
      	* app/core/gimplayer.c (gimp_layer_create_mask): call
      	gimp_channel_invert(), not gimp_drawable_invert() because the
      	latter takes the current selection into accout (reported by Jimmac
      	on #gimp). Added g_return_if_fail() stuff to all public functions.
      	Cleanup.
      8bfd02fa