1. 03 Nov, 2008 2 commits
    • Michael Natterer's avatar
      add "GimpImageType type" parameter because there are only a few calls to · 56b5909c
      Michael Natterer authored
      2008-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_set_tiles): add
      	"GimpImageType type" parameter because there are only a few calls
      	to this function which (can easily pass the current type); however
      	most calls to gimp_drawable_set_tiles_full() were just using the
      	function because of the type argument and passed in the item's
      	current offsets (which means peeking into the item struct or using
      	temp variables).
      
      	* app/core/gimpdrawable-offset.c (gimp_drawable_offset)
      	* app/text/gimptextlayer.c (gimp_text_layer_render)
      	* app/tools/gimptransformtool.c (gimp_transform_tool_doit): pass
      	the type to set_tiles().
      
      	* app/core/gimpchannel.c (gimp_channel_convert)
      	* app/core/gimpimage-convert.c (gimp_image_convert)
      	* app/core/gimplayer.c (gimp_layer_convert,add_alpha,flatten):
      	change calls to set_tiles_full() into set_tiles() because the
      	offset doesn't change.
      
      
      svn path=/trunk/; revision=27535
      56b5909c
    • Michael Natterer's avatar
      renamed gimp_item_width() to gimp_item_get_width() and gimp_item_height() · 740ab5e6
      Michael Natterer authored
      2008-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: renamed
      	gimp_item_width() to gimp_item_get_width() and
      	gimp_item_height() to gimp_item_get_height().
      
      	* app/actions/channels-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/layers-commands.c
      	* app/core/<many>.c
      	* app/dialogs/offset-dialog.c
      	* app/dialogs/resize-dialog.c
      	* app/dialogs/scale-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimpink.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsmudge.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpforegroundselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimpregionselecttool.c
      	* app/tools/gimptexttool.c
      	* app/vectors/gimpvectors.c
      	* app/vectors/gimpvectorsmodundo.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrenderervectors.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly.
      
      	* app/pdb/drawable-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27531
      740ab5e6
  2. 02 Nov, 2008 4 commits
    • Michael Natterer's avatar
      renamed gimp_item_offsets() to gimp_item_get_offset() and · 5b68a1d0
      Michael Natterer authored
      2008-11-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: renamed
      	gimp_item_offsets() to gimp_item_get_offset() and
      	gimp_item_set_offsets() to gimp_item_set_offset().
      
      	* app/actions/drawable-commands.c
      	* app/actions/layers-commands.c
      	* app/core/<many>.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-preview.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpdisplayshell.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsourcecore.c
      	* app/text/gimptextlayer-xcf.c
      	* app/tools/<many>.c
      	* app/widgets/gimptoolbox-dnd.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb
      	* tools/pdbgen/pdb/vectors.pdb: changed accordingly.
      
      	* app/pdb/drawable-cmds.c
      	* app/pdb/drawable-transform-cmds.c
      	* app/pdb/selection-cmds.c
      	* app/pdb/vectors-cmds.c
      	* app/pdb/transform-tools-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=27529
      5b68a1d0
    • Martin Nordholts's avatar
      Moved the shift_node from GimpLayer to GimpItem, and call it offset_node. · 93577a2e
      Martin Nordholts authored
      * app/core/gimpitem.[ch]: Moved the shift_node from GimpLayer to
      GimpItem, and call it offset_node. Also added
      gimp_item_get_offset_node() meant to be used in the same way as
      gimp_item_offsets().
      
      (gimp_item_real_translate): Keep the offset_node up to date.
      
      * app/core/gimplayer.[ch]: Don't manage the offset_node, get it
      from GimpItem instead.
      
      svn path=/trunk/; revision=27527
      93577a2e
    • Michael Natterer's avatar
      remove the mask_node and simply set both opacity and the layer mask's · 50ac74be
      Michael Natterer authored
      2008-11-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.[ch]: remove the mask_node and simply set
      	both opacity and the layer mask's source node on the opacity_node.
      	Needs latest SVN GEGL.
      
      
      svn path=/trunk/; revision=27522
      50ac74be
    • Martin Nordholts's avatar
      Move the base GeglNode here in preparation for moving the GimpLayer · 24fac1de
      Martin Nordholts authored
      * app/core/gimpitem.[ch]: Move the base GeglNode here in
      preparation for moving the GimpLayer gegl:shift op to here as
      well. After all, the offsets are properties of GimpItem and not
      GimpLayer.
      
      * app/core/gimpdrawable.[ch]: Delegate appropriate stuff to the
      GimpItem base class, like part of the visibility toggling and the
      creation and destruction of the GimpItem node.
      
      * app/core/gimplayer.c
      * app/core/gimpchannel.c
      * app/core/gimpdrawablestack.c: Changed accordingly, use the new
      function names.
      
      * app/core/gimpitempropundo.c
      * app/vectors/gimpvectors-warp.c
      * app/vectors/gimpvectorsmodundo.c: Include gegl.h instead of
      glib-object.h
      
      svn path=/trunk/; revision=27521
      24fac1de
  3. 25 Oct, 2008 2 commits
    • Martin Nordholts's avatar
      Completed the rename with gimp:layer-mode -> gimp:point-layer-mode and · 1f7b2c25
      Martin Nordholts authored
      * app/gegl/gimpoperationpointlayermode.c: Completed the rename
      with gimp:layer-mode -> gimp:point-layer-mode and also did some
      formating.
      
      * app/core/gimplayer.c: Changed accordingly.
      
      svn path=/trunk/; revision=27408
      1f7b2c25
    • Martin Nordholts's avatar
      Instead of having one GEGL operation per layer mode, make · 1a19f731
      Martin Nordholts authored
      GimpOperationLayerMode instantiable and add a GimpLayerModeEffects
      property to it that we check in ::process() to blend pixels
      together.
      
      * app/gegl/gimpoperationlayermode.[ch]: Do the change described
      above. Currently only Normal and Addition are implemented. Normal
      so that we don't need a special case for the gegl:normal op. Also,
      the Dissolve layer mode is not a point op and needs to be
      implemented elsewhere.
      
      * app/gegl/gimpoperation*mode.c: Removed.
      
      * app/gegl/gimp-gegl-utils.[ch]: Removed
      gimp_layer_mode_to_gegl_operation().
      
      * app/core/gimplayer.c
      
      * app/gegl/Makefile.am
      * app/gegl/gimp-gegl.c: Adapt.
      
      svn path=/trunk/; revision=27400
      1a19f731
  4. 14 Oct, 2008 2 commits
    • Michael Natterer's avatar
      configure.in require GEGL >= 0.0.21. · 880a699c
      Michael Natterer authored
      2008-10-14  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* app/sanity.c: require GEGL >= 0.0.21.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-brightness-contrast.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer.c
      	* app/gegl/gimp-gegl-utils.c
      	* app/tools/gimpbrightnesscontrasttool.c: GEGL operation names
      	are now "gegl:"-prefixed.
      
      	* app/core/gimpimagemap.c: set the node's "dont-cache" property
      	unconditionally.
      
      
      svn path=/trunk/; revision=27284
      880a699c
    • 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
  5. 11 Oct, 2008 1 commit
  6. 10 Oct, 2008 3 commits
    • Michael Natterer's avatar
      add virtual function GimpDrawable::get_node() which returns a node to be · b479b7b3
      Michael Natterer authored
      2008-10-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: add virtual function
      	GimpDrawable::get_node() which returns a node to be plugged into
      	the projection.
      
      	* app/core/gimplayer.[ch]: remove public get_node() api and
      	implement the virtual function instead.
      
      	* app/core/gimpimage.c: changed accordingly.
      
      
      svn path=/trunk/; revision=27211
      b479b7b3
    • Michael Natterer's avatar
      implement GimpItem::visibility-changed and turn the layer's node into a · 5ad366c6
      Michael Natterer authored
      2008-10-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.c: implement GimpItem::visibility-changed
      	and turn the layer's node into a nop when the layer is invisible.
      
      	(gimp_layer_get_node): connect the stuff to a nop here too for
      	invisible layers.
      
      
      svn path=/trunk/; revision=27208
      5ad366c6
    • Michael Natterer's avatar
      the "shift" operation's x and y properties are doubles not ints. · f2a6b781
      Michael Natterer authored
      2008-10-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.c (gimp_layer_translate)
      	(gimp_layer_get_node): the "shift" operation's x and y properties
      	are doubles not ints.
      
      	(gimp_layer_apply_mask): properly disconnect the mask node.
      
      	(gimp_layer_set_opacity): the opacity node has a "value" property,
      	not "opacity".
      
      
      svn path=/trunk/; revision=27205
      f2a6b781
  7. 09 Oct, 2008 2 commits
    • Michael Natterer's avatar
      Address Bug 554983 – Layers Projection using GEGL · 517e58cd
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Address Bug 554983 – Layers Projection using GEGL
      
      	* app/gegl/gimp-gegl-utils.[ch]: add (imcomplete) function
      	gimp_layer_mode_to_gegl_operation() from bug #554983.
      
      	* app/core/gimpdrawable.[ch]: add gimp_drawable_get_source_node()
      	which returns a GimpOperationTileSource for the drawable's
      	tiles.
      
      	(gimp_drawable_real_set_tiles)
      	(gimp_drawable_configure): set the node's "tiles" property.
      
      	* app/core/gimplayer.[ch]: add gimp_layer_get_node() which returns
      	a GeglNode with proxy "input" and "output" pads to be plugged
      	into the projection graph. The node has children for opacity,
      	mask, layer mode and layer offset.
      
      	(gimp_layer_translate)
      	(gimp_layer_add_mask)
      	(gimp_layer_apply_mask)
      	(gimp_layer_set_opacity)
      	(gimp_layer_set_mode): reconfigure the respective nodes.
      
      	* app/core/gimpimage.[ch]: keep a "graph" node around and destroy
      	it in finalize(). Not even a stub, just a silly GEGL dependency.
      
      
      svn path=/trunk/; revision=27204
      517e58cd
    • 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
  8. 06 Oct, 2008 1 commit
    • Michael Natterer's avatar
      g_return_if_fail() on the mask's image being the same as the layer's · eed8f2c3
      Michael Natterer authored
      2008-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.c (gimp_layer_add_mask): g_return_if_fail()
      	on the mask's image being the same as the layer's image. The PDB
      	already checks for this.
      
      	* app/core/gimpimage.c (gimp_image_add_layer,channel,vectors):
      	remove calls to gimp_item_set_image() because we only accept
      	itmes of this image anyway.
      
      
      svn path=/trunk/; revision=27138
      eed8f2c3
  9. 15 Sep, 2008 1 commit
    • Michael Natterer's avatar
      add GError parameter and replace g_message() by g_set_error(). · d2307c1b
      Michael Natterer authored
      2008-09-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.[ch] (gimp_layer_add_mask): add GError
      	parameter and replace g_message() by g_set_error().
      
      	* app/core/gimplayermaskundo.c
      	* app/xcf/xcf-load.c
      	* app/actions/layers-commands.c: pass NULL errors since these
      	places know what they are doing. Ha ha...
      
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/image.pdb: pass the error so we get more real
      	error messages for failed PDB calls.
      
      	* app/pdb/image-cmds.c
      	* app/pdb/layer-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=26948
      d2307c1b
  10. 08 Aug, 2008 1 commit
  11. 07 Aug, 2008 2 commits
    • Sven Neumann's avatar
      app/core/gimplayer.c app/actions/edit-commands.c · 60fcaa96
      Sven Neumann authored
      2008-08-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimplayer.c
      	* app/actions/edit-commands.c
      	* app/actions/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: corrected the GimpImageType passed
      	to gimp_layer_new_from_tiles().
      
      	* app/pdb/layer-cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=26425
      60fcaa96
    • Sven Neumann's avatar
      added some empty lines for readability. · e5196e30
      Sven Neumann authored
      2008-08-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimplayer.c (gimp_layer_new_from_region): added some
      	empty lines for readability.
      
      
      svn path=/trunk/; revision=26417
      e5196e30
  12. 08 Jan, 2008 1 commit
    • Sven Neumann's avatar
      removed "add_alpha" parameter from gimp_item_duplicate() and · 4aa7e67c
      Sven Neumann authored
      2008-01-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpitem.[ch]: removed "add_alpha" parameter from
      	gimp_item_duplicate() and gimp_item_convert(). This is a relict
      	from the time when only the bottom layer was allowed to have no
      	alpha channel.
      
      	* app/actions/channels-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-quick-mask.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimpselection.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/text/gimptextlayer.c
      	* app/vectors/gimpvectors.c
      	* app/vectors/gimpvectorsmodundo.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      svn path=/trunk/; revision=24570
      4aa7e67c
  13. 07 Jan, 2008 1 commit
  14. 25 Dec, 2007 1 commit
    • Michael Natterer's avatar
      app/actions/channels-commands.c app/actions/colormap-actions.c · 75061fcc
      Michael Natterer authored
      2007-12-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/channels-commands.c
      	* app/actions/colormap-actions.c
      	* app/actions/colormap-commands.c
      	* app/actions/image-commands.c
      	* app/core/gimp-edit.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpimage-colorhash.c
      	* app/core/gimpimage-colormap.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-quick-mask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-sample-points.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-snap.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpimageundo.c
      	* app/core/gimpitem-preview.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimppalette-import.c
      	* app/core/gimpprojection-construct.c
      	* app/core/gimpprojection.c
      	* app/core/gimpselection.c
      	* app/core/gimpundo.c
      	* app/dialogs/layer-options-dialog.c
      	* app/dialogs/print-size-dialog.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-scroll.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpstatusbar.c
      	* app/file/file-open.c
      	* app/paint/gimppaintoptions.c
      	* app/tools/gimpaligntool.c
      	* app/tools/gimpcolortool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpperspectiveclonetool.c
      	* app/tools/gimprectangleselecttool.c
      	* app/tools/gimprectangletool.c
      	* app/tools/gimprotatetool.c
      	* app/vectors/gimpvectors-export.c
      	* app/vectors/gimpvectors-import.c
      	* app/vectors/gimpvectors.c
      	* app/widgets/gimpimagepropview.c
      	* app/widgets/gimpnavigationview.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrendererimage.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/image.pdb: use accessors for many image properties.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24432
      75061fcc
  15. 23 Dec, 2007 1 commit
    • Michael Natterer's avatar
      app/actions/layers-commands.c app/core/gimpchannel-combine.c · ecb2c46d
      Michael Natterer authored
      2007-12-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/layers-commands.c
      	* app/core/gimpchannel-combine.c
      	* app/core/gimpchannel-select.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-convert.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpdrawablemodundo.c
      	* app/core/gimpfloatingselundo.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage.c
      	* app/core/gimpitem-preview.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimplayerundo.c
      	* app/core/gimpmaskundo.c
      	* app/core/gimppalette-import.c
      	* app/core/gimpprojection-construct.c
      	* app/core/gimpselection.c
      	* app/dialogs/offset-dialog.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/vectors/gimpvectors-compat.c
      	* app/vectors/gimpvectors.c
      	* app/vectors/gimpvectorsmodundo.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpviewrendererdrawable.c
      	* app/widgets/gimpviewrenderervectors.c: use accessors for item,
      	layer, channel and mask attributes.
      
      
      svn path=/trunk/; revision=24429
      ecb2c46d
  16. 12 Dec, 2007 1 commit
    • Michael Natterer's avatar
      added GError to GimpItem::rename(). · dfaf761d
      Michael Natterer authored
      2007-12-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added GError to GimpItem::rename().
      
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c: set errors when renaming is impossible.
      
      	* app/text/gimptextlayer.c
      	* app/core/gimpimage-quick-mask.c: changed accordingly.
      
      	* app/actions/channels-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/vectors-commands.c
      	* app/widgets/gimpitemtreeview.c: handle the returned errors.
      
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/vectors.pdb: pass the error.
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/vectors_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24338
      dfaf761d
  17. 06 Dec, 2007 1 commit
    • Michael Natterer's avatar
      Move some gimp_message() calls where they belong: · 543302f5
      Michael Natterer authored
      2007-12-06  Michael Natterer  <mitch@gimp.org>
      
      	Move some gimp_message() calls where they belong:
      
      	* app/core/gimplayer-floating-sel.[ch]: removed unreachable
      	gimp_message() in floating_sel_anchor() and added GError parameter
      	to floating_sel_to_layer().
      
      	* app/core/gimplayer.c
      	* app/core/gimpimage-quick-mask.c
      	* app/actions/layers-commands.c: pass NULL or an error as
      	appropriate and show the error message.
      
      	* tools/pdbgen/pdb/floating_sel.pdb: set the error when the passed
      	layer was no floating selection.
      
      	* app/pdb/floating_sel_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24272
      543302f5
  18. 04 Dec, 2007 1 commit
    • Michael Natterer's avatar
      added new API gimp_drawable_estimate_memsize() and virtual function · dd80b4c2
      Michael Natterer authored
      2007-12-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added new API
      	gimp_drawable_estimate_memsize() and virtual function
      	GimpDrawable::estimate_memsize() which estimate the memsize of a
      	drawable after scaling/resizing.
      
      	* app/core/gimplayer.c: implement the virtual function and take
      	the layer mask into account.
      
      	* app/core/gimpimage-item-list.[ch] (gimp_image_item_list_get_list):
      	added const qualifiers.
      
      	* app/core/gimpimage-scale.c (gimp_image_scale_check): use the new
      	function to correctly estimate the new size instead of scaling the
      	drawables' memsizes including all constant parts. Fixes bug #329468.
      
      	* app/gimp-log.[ch]: added IMAGE_SCALE log domain.
      
      	* app/core/gimpimage-scale.c: use it here for debugging output.
      
      
      svn path=/trunk/; revision=24260
      dd80b4c2
  19. 16 Nov, 2007 1 commit
    • Michael Natterer's avatar
      app/base/temp-buf.c app/base/tile-manager.c accept NULL in all · 036085fd
      Michael Natterer authored
      2007-11-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/temp-buf.c
      	* app/base/tile-manager.c
      	* app/core/gimpobject.c: accept NULL in all get_memsize() functions.
      
      	* app/core/gimp-utils.[ch]: ditto. Added gimp_string_get_memsize().
      
      	* app/core/gimp.c
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpcontainer.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdata.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpdrawablemodundo.c
      	* app/core/gimpdrawableundo.c
      	* app/core/gimpimage.c
      	* app/core/gimpitempropundo.c
      	* app/core/gimplayer.c
      	* app/core/gimpmaskundo.c
      	* app/core/gimppalette.c
      	* app/core/gimpparasitelist.c
      	* app/core/gimppattern.c
      	* app/core/gimppreviewcache.c
      	* app/core/gimpundo.c
      	* app/core/gimpundostack.c
      	* app/core/gimpviewable.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/gimpplugindef.c
      	* app/plug-in/gimppluginmanager.c
      	* app/plug-in/gimppluginprocedure.c
      	* app/text/gimptext.c
      	* app/text/gimptextlayer.c
      	* app/text/gimptextundo.c
      	* app/vectors/gimpvectorsmodundo.c: simplify
      	GimpObject::get_memsize() implementations accordingly.
      
      	* app/core/gimpimageundo.c: ditto. Always keep around colormaps in
      	chunks of GIMP_IMAGE_COLORMAP_SIZE to be coonsistent with the
      	other colormap handling code.
      
      
      svn path=/trunk/; revision=24174
      036085fd
  20. 15 Sep, 2007 1 commit
    • Michael Natterer's avatar
      Make layer masks work consistently on layers without alpha. Fixes bug · 08d38cea
      Michael Natterer authored
      2007-09-15  Michael Natterer  <mitch@gimp.org>
      
      	Make layer masks work consistently on layers without alpha.
      	Fixes bug #475548.
      
      	* app/core/gimplayer.c (gimp_layer_apply_mask): changed to work
      	on layers without alpha.
      
      	* app/actions/layers-commands.c (layers_add_mask_response): don't
      	automatically add an alpha channel when adding a layer mask.
      
      
      svn path=/trunk/; revision=23555
      08d38cea
  21. 12 Sep, 2007 1 commit
    • Sven Neumann's avatar
      use the offsets module TILE_WIDTH and TILE_HEIGHT instead of doing the · 1954ee81
      Sven Neumann authored
      2007-09-12  Sven Neumann  <sven@gimp.org>
      
      	* app/base/tile.c (tile_data_pointer): use the offsets module
      	TILE_WIDTH and TILE_HEIGHT instead of doing the module operation
      	in each and every caller.
      
      	* app/base/boundary.c
      	* app/base/pixel-region.c
      	* app/base/tile-manager.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-render.c
      	* app/paint-funcs/paint-funcs.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpiscissorstool.c: changed accordingly.
      
      
      svn path=/trunk/; revision=23515
      1954ee81
  22. 10 Sep, 2007 1 commit
    • Sven Neumann's avatar
      app/core/gimp-transform-region.[ch] app/core/gimpchannel.c · 77b7161a
      Sven Neumann authored
      2007-09-10  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp-transform-region.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-item-list.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.c
      	* app/paint/gimpperspectiveclone.c
      	* app/vectors/gimpvectors.c: removed supersample parameter from
      	transform functions and perform it depending on the interpolation
      	type (bug #473265).
      
      	* app/tools/gimptransformoptions.[ch]
      	* app/tools/gimptransformtool.c: removed Supersample toggle from
      	the transform tool options.
      
      	* tools/pdbgen/pdb/drawable_transform.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: document that the
      	supersample parameter is unused and improved documentation of the
      	recursion-level parameter.
      
      	* app/pdb/transform_tools_cmds.c
      	* app/pdb/drawable_transform_cmds.c
      	* libgimp/gimpdrawabletransform_pdb.c: regenerated.
      
      svn path=/trunk/; revision=23494
      77b7161a
  23. 22 Mar, 2007 1 commit
  24. 24 Dec, 2006 1 commit
    • Mukund Sivaraman's avatar
      app/core/Makefile.am app/core/gimp-transform-resize.c · f0cff0ff
      Mukund Sivaraman authored
      2006-12-24  Mukund Sivaraman  <muks@mukund.org>
      
              * app/core/Makefile.am
              * app/core/gimp-transform-resize.c
              * app/core/gimpchannel.c
              * app/core/gimpdrawable-transform.c
              * app/core/gimpdrawable-transform.h
              * app/core/gimpdrawable.c
              * app/core/gimpimage-item-list.c
              * app/core/gimpimage-item-list.h
              * app/core/gimpitem-linked.c
              * app/core/gimpitem-linked.h
              * app/core/gimpitem.c
              * app/core/gimpitem.h
              * app/core/gimplayer.c
              * app/pdb/drawable_transform_cmds.c
              * app/text/gimptextlayer-transform.c
              * app/text/gimptextlayer-transform.h
              * app/tools/gimptransformoptions.c
              * app/tools/gimptransformtool.c
              * app/vectors/gimpvectors.c
              * libgimp/gimpdrawabletransform_pdb.c
              * libgimp/gimpdrawabletransform_pdb.h
              * libgimp/gimpenums.c.tail
              * libgimpbase/gimpbase.def
              * libgimpbase/gimpbaseenums.c
              * libgimpbase/gimpbaseenums.h
              * tools/pdbgen/enums.pl
              * tools/pdbgen/pdb/drawable_transform.pdb: implemented UI and PDB
              for new clipping modes for affine transforms (crop to largest
              rectangle, and crop to largest rectangle with the source's aspect
              ratio); fixed various bugs in the largest rectangle computation
              code; set padding to 6 in the transformation tool options.
      f0cff0ff
  25. 09 Dec, 2006 1 commit
  26. 25 Oct, 2006 1 commit
    • Michael Natterer's avatar
      changed GimpDrawable parameter to "GimpImageType dest_type". · dd6f5d71
      Michael Natterer authored
      2006-10-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]
      	(gimp_image_transform_rgb)
      	(gimp_image_transform_color)
      	(gimp_image_transform_temp_buf): changed GimpDrawable parameter to
      	"GimpImageType dest_type".
      
      	(gimp_image_get_foreground)
      	(gimp_image_get_background): ditto and reordered parameters.
      
      	* app/core/gimp-edit.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-stroke.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimperaser.c
      	* app/paint/gimpheal.c
      	* app/paint/gimpink.c
      	* app/paint/gimppaintbrush.c: changed accordingly.
      
      	* app/core/gimpdrawable-transform.c
      	(gimp_drawable_transform_tiles_affine): set the progress to 1.0
      	when done, some tiny cleanups around lanczos.
      dd6f5d71
  27. 16 Oct, 2006 1 commit
    • Michael Natterer's avatar
      removed the "floating" flag and the floating/sink API. · b72ffb8b
      Michael Natterer authored
      2006-10-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: removed the "floating" flag and the
      	floating/sink API.
      
      	(gimp_item_init): call g_object_force_floating() instead.
      
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/image.pdb: use combinations of
      	g_object_ref_sink() and g_object_unref() instead of
      	gimp_item_sink(). Use g_object_is_floating() instead of
      	gimp_item_is_floating().
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      b72ffb8b
  28. 29 Aug, 2006 1 commit
    • Sven Neumann's avatar
      libgimpbase/Makefile.am libgimpbase/gimpbase.h added new files that hold · d34ff553
      Sven Neumann authored
      2006-08-29  Sven Neumann  <sven@gimp.org>
      
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpbase.h
      	* libgimpbase/gimprectangle.[ch]: added new files that hold
      	gimp_rectangle_intersect(), factored out of the core.
      
      	* libgimpbase/gimpbase.def: updated.
      
      	* app/core/gimp-edit.c
      	* app/core/gimp-utils.c
      	* app/core/gimp-utils.h
      	* app/core/gimpchannel-combine.c
      	* app/core/gimpdrawable-foreground-extract.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimplayer.c
      	* app/core/gimpscanconvert.c
      	* app/display/gimpdisplayshell-draw.c: changed includes accordingly.
      
      	* libgimp/gimpdrawablepreview.c: don't duplicate
      	gimp_rectangle_intersect() here, use the function in libgimpbase.
      
      	* app/base/siox.c: use gimp_rectangle_intersect() to reduce the
      	working area to the region of interest. Fixes bug #340422.
      d34ff553
  29. 08 Aug, 2006 1 commit
    • Sven Neumann's avatar
      added new function gimp_message() as a replacement for g_message(). Part · 48d054e8
      Sven Neumann authored
      2006-08-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimp.[ch]: added new function gimp_message() as a
      	replacement for g_message(). Part of the fix for bug #347214.
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/layers-commands.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/pdb/gimppdb.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c
      	* app/widgets/gimpwidgets-utils.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-private.h
      	* app/xcf/xcf-save.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palette.pdb: use gimp_message() instead of
      	gimp_message() whenever we have a GimpProgress.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      48d054e8
  30. 15 May, 2006 1 commit