1. 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
  2. 21 Jun, 2007 1 commit
    • Sven Neumann's avatar
      app/base/base-types.h app/base/tile-manager.[ch] removed accessors for · 610feafb
      Sven Neumann authored
      2007-06-21  Sven Neumann  <sven@gimp.org>
      
      	* app/base/base-types.h
      	* app/base/tile-manager.[ch]
      	* app/base/tile-manager-private.h: removed accessors for user_data.
      	Instead pass the user_data when setting the validation proc.
      
      	* app/base/tile-pyramid.c
      	* app/core/gimpchannel.c
      	* app/core/gimpprojection.c
      	* app/core/gimpselection.c
      	* app/tools/gimpiscissorstool.c: changed accordingly.
      
      svn path=/trunk/; revision=22820
      610feafb
  3. 03 May, 2007 1 commit
    • Sven Neumann's avatar
      Handle the core part of bug #434274: · 6c427acf
      Sven Neumann authored
      2007-05-03  Sven Neumann  <sven@gimp.org>
      
      	Handle the core part of bug #434274:
      
      	* app/core/gimpchannel.c (gimp_channel_real_boundary): return
      	FALSE for an empty channel.
      
      	* app/core/gimpitem.[ch]: added a progress parameter to
      	gimp_item_stroke.
      
      	* app/core/gimpchannel.c (gimp_channel_stroke)
      	* app/core/gimpselection.c (gimp_selection_stroke): pass progress
      	to gimp_message().
      
      	* app/actions/vectors-commands.c
      	* app/actions/select-commands.c
      	* app/dialogs/stroke-dialog.c
      	* app/vectors/gimpvectors.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paths.pdb: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/paths_cmds.c: regenerated.
      
      	* app/core/gimplayermaskundo.c: added a missing cast.
      
      svn path=/trunk/; revision=22389
      6c427acf
  4. 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
  5. 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
  6. 09 Dec, 2006 1 commit
  7. 09 Oct, 2006 1 commit
    • Michael Natterer's avatar
      app/actions/data-commands.c app/actions/documents-commands.c · 1ed8dd4f
      Michael Natterer authored
      2006-10-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimp-contexts.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-edit.c
      	* app/core/gimp-modules.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/core/gimp-units.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdatafactory.[ch]
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppdbprogress.c
      	* app/core/gimpselection.c
      	* app/dialogs/palette-import-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/session.c
      	* app/gui/themes.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/gimpplugin-message.c
      	* app/plug-in/gimpplugin.c
      	* app/plug-in/gimppluginmanager-file.c
      	* app/plug-in/gimppluginmanager.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/widgets/gimpcontrollers.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdevices.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimpuimanager.c
      	* app/widgets/gimpvectorstreeview.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/palette.pdb: convert lots of g_message() to
      	gimp_message(). Make sure we never pass unknown strings (like
      	error->message) to printf-like functions directly; run them
      	thorugh "%s" instead. Don't translate some messages which should
      	never happen.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      1ed8dd4f
  8. 03 Aug, 2006 1 commit
    • Michael Natterer's avatar
      app/core/gimpchannel.c (gimp_channel_bounds) allow to pass in NULL return · d25406c9
      Michael Natterer authored
      2006-08-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.c (gimp_channel_bounds)
      	* app/core/gimpdrawable.c (gimp_drawable_mask_bounds)
      	(gimp_drawable_mask_intersect): allow to pass in NULL return
      	locations for any of the boundary return values.
      
      	* app/tools/gimpselectiontool.c (gimp_selection_tool_oper_update):
      	don't require hovering the selection for moving the selected
      	pixels, since this can be distinguished by looking at the
      	modifiers now. Check for the presence of any selected pixels
      	instead. Fixes bug #349341.
      d25406c9
  9. 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
  10. 15 May, 2006 1 commit
  11. 25 Apr, 2006 1 commit
  12. 12 Apr, 2006 1 commit
  13. 07 Apr, 2006 1 commit
  14. 28 Mar, 2006 1 commit
  15. 02 Mar, 2006 1 commit
    • Michael Natterer's avatar
      added new methods ::get_bytes() and ::flush() · b55ce9ea
      Michael Natterer authored
      2006-03-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimppickable.[ch]: added new methods ::get_bytes() and
      	::flush()
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpimagemap.c
      	* app/core/gimpprojection.c: implement ::get_bytes()
      
      	* app/core/gimpprojection.c: implement ::flush() (immediately
      	process both the idle renderer's queue and the unflushed update
      	areas, to make sure that any reading from the projection will
      	re-construct it).
      
      	* app/core/gimp-edit.c
      	* app/core/gimpchannel.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimppalette-import.c
      	* app/paint/gimpclone.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpiscissorstool.c
      	* tools/pdbgen/pdb/image.pdb: use the pickable interface more
      	consistently when reading from any drawable or the projection, and
      	call gimp_pickable_flush() before doing so. Fixes bug #332933.
      
      	* app/core/gimpimage-pick-color.c: added comment why the we don't
      	call gimp_pickable_flush() here.
      
      	* app/pdb/image_cmds.c
      	* libgimp/gimpimage_pdb.c: regenerated.
      b55ce9ea
  16. 23 Dec, 2005 1 commit
  17. 10 Dec, 2005 1 commit
  18. 09 Oct, 2005 1 commit
    • Michael Natterer's avatar
      set the "tooltip" return value to NULL before calling the virtual · 34697840
      Michael Natterer authored
      2005-10-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpviewable.c (gimp_viewable_get_description): set the
      	"tooltip" return value to NULL before calling the virtual function.
      
      	* app/core/gimpbrush.c
      	* app/core/gimpbuffer.c
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c
      	* app/core/gimppaintinfo.c
      	* app/core/gimppalette.c
      	* app/core/gimppattern.c
      	* app/core/gimptoolinfo.c (get_description): don't do it here.
      
      	* app/core/gimpbuffer.c
      	* app/core/gimppaintinfo.c: untabbify, cleanup.
      
      	* app/core/gimpobject.c: emit "notify::name" whenerver the name
      	changes, clenup.
      34697840
  19. 19 Sep, 2005 1 commit
    • Michael Natterer's avatar
      Did a global s/qmask/quick-mask/: · 1adf3d71
      Michael Natterer authored
      2005-09-19  Michael Natterer  <mitch@gimp.org>
      
      	Did a global s/qmask/quick-mask/:
      
      	* app/actions/qmask-actions.[ch]
      	* app/actions/qmask-commands.[ch]
      	* app/core/gimpimage-qmask.[ch]
      	* menus/qmask-menu.xml
      	* themes/Default/images/stock-qmask-off-16.png
      	* themes/Default/images/stock-qmask-on-16.png: removed.
      
      	* app/actions/quick-mask-actions.[ch]
      	* app/actions/quick-mask-commands.[ch]
      	* app/core/gimpimage-quick-mask.[ch]
      	* menus/quick-mask-menu.xml
      	* themes/Default/images/stock-quick-mask-off-16.png
      	* themes/Default/images/stock-quick-mask-on-16.png: added.
      
      	* app/actions/Makefile.am
      	* app/actions/actions.c
      	* app/core/Makefile.am
      	* app/core/core-enums.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimpundo.[ch]
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-callbacks.[ch]
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/menus/menus.c
      	* app/widgets/gimphelp-ids.h
      	* libgimpwidgets/gimpstock.[ch]
      	* menus/Makefile.am
      	* menus/image-menu.xml.in
      	* themes/Default/images/Makefile.am: changed accordingly.
      1adf3d71
  20. 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
  21. 12 Jul, 2005 1 commit
  22. 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
  23. 09 Jul, 2005 1 commit
  24. 18 Feb, 2005 1 commit
    • Sven Neumann's avatar
      app/core/Makefile.am new files holding gimp_drawable_convert_rgb() and · 52d6f00e
      Sven Neumann authored
      2005-02-18  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-convert.[ch]: new files holding
      	gimp_drawable_convert_rgb() and gimp_drawable_convert_grayscale()
      	moved out of gimpimage-convert.[ch].
      
      	* app/core/gimpchannel.c
      	* app/core/gimpimage-convert.[ch]
      	* app/core/gimplayer.c: changed accordingly.
      52d6f00e
  25. 11 Feb, 2005 1 commit
    • Sven Neumann's avatar
      code cleanup. Removed unsued code, renamed variables and types. · adff5aeb
      Sven Neumann authored
      2005-02-11  Sven Neumann  <sven@gimp.org>
      
      	* app/base/pixel-processor.[ch]: code cleanup. Removed unsued code,
      	renamed variables and types.
      
      	* app/base/gimphistogram.c
      	* app/core/gimpchannel-combine.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-levels.c
      	* app/paint-funcs/paint-funcs.c
      	* tools/pdbgen/pdb/color.pdb: changed accordingly.
      
      	* app/pdb/color_cmds.c: regenerated.
      adff5aeb
  26. 15 Jan, 2005 2 commits
    • Michael Natterer's avatar
      implement GimpItem::convert(). Handles any drawable, including conversion · db89496a
      Michael Natterer authored
      2005-01-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.c: implement GimpItem::convert(). Handles
      	any drawable, including conversion to GRAY, flattening and
      	resizing.
      
      	* app/widgets/gimpchanneltreeview.c: implement dropping of all
      	kinds of drawables as new channels. Fixes bug #158133.
      
      	Simplified component dropping by removing stuff which is done by
      	gimp_item_convert() now.
      db89496a
    • Michael Natterer's avatar
      don't require a non-NULL color parameter (just leave the default color · d0a78f3b
      Michael Natterer authored
      2005-01-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.c (gimp_channel_new*): don't require a
      	non-NULL color parameter (just leave the default color untouched
      	if NULL is passed).
      
      	* app/actions/channels-commands.c
      	* app/core/gimpchannel-select.c: pass NULL as color for temporary
      	channels or channels where we used to pass black.
      d0a78f3b
  27. 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
  28. 22 Oct, 2004 1 commit
    • Michael Natterer's avatar
      added new enum GimpStrokeMethod which can be one of { LIBART, PAINT_CORE · 06447c00
      Michael Natterer authored
      2004-10-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: added new enum GimpStrokeMethod which
      	can be one of { LIBART, PAINT_CORE }.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpstrokedesc.[ch]: new object which encapsulates
      	the params and setup logic for the different stroke methods.
      
      	* app/core/gimpitem.[ch]: use it in GimpItem::stroke() and
      	in the gimp_item_stroke() wrapper.
      
      	* app/core/gimpchannel.c (gimp_channel_stroke)
      	* app/core/gimpselection.c (gimp_selection_stroke)
      	* app/vectors/gimpvectors.c (gimp_vectors_stroke): changed accprdingly.
      
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/dialogs/stroke-dialog.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paths.pdb: use GimpStrokeDesc. Simplifies the
      	code quite a bit.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/paths_cmds.c: regenerated.
      06447c00
  29. 25 Sep, 2004 1 commit
    • Michael Natterer's avatar
      added comment about not changing the silly "Qmask" string because it is · 5aeac72e
      Michael Natterer authored
      2004-09-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-qmask.h: added comment about not changing the
      	silly "Qmask" string because it is used to identify the Quick Mask
      	in the XCF.
      
      	* app/core/gimpchannel.c: implement GimpViewable::get_description()
      	and return "Quick Mask" if it's the Quick Mask.
      
      	* app/actions/qmask-actions.c
      	* app/actions/qmask-commands.c
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-qmask.c
      	* app/display/gimpdisplayshell.c: s/QuickMask/Quick Mask/.
      5aeac72e
  30. 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
  31. 26 Aug, 2004 2 commits
    • Michael Natterer's avatar
      removed "gboolean use_default_values" from GimpItem::stroke(). · f1d0db6d
      Michael Natterer authored
      2004-08-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: removed "gboolean use_default_values"
      	from GimpItem::stroke().
      
      	* app/core/gimpchannel.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c: changed accordingly.
      f1d0db6d
    • Michael Natterer's avatar
      implement the whole paint_options fiddling here instead of in each · 23bd1216
      Michael Natterer authored
      2004-08-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.c (gimp_item_stroke): implement the whole
      	paint_options fiddling here instead of in each subclass and pass
      	either GimpStrokeOptions or GimpPaintOptions (instead of
      	GimpStrokeOptions or GimpPaintInfo) to GimpItem::stroke().
      
      	Also copied code (that needs to be abstracted to a utility
      	function) from the tool_manager which makes sure we really use the
      	global brush, pattern etc. if these options are checked in prefs.
      	Fixes bug #150716.
      
      	* app/core/gimpchannel.c (gimp_channel_stroke)
      	* app/vectors/gimpvectors.c (gimp_vectors_stroke): removed the
      	duplicated code mentioned above and simply use the paint_options
      	passed.
      23bd1216
  32. 10 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Redid the whole internal progress stuff: don't pass around · 02d2b990
      Michael Natterer authored
      2004-08-10  Michael Natterer  <mitch@gimp.org>
      
      	Redid the whole internal progress stuff: don't pass around
      	progress_callback and progress_data; instead, provide a
      	pointer to a GimpProgressInterface which can be implemented
      	by a variety of backends.
      
      	Addresses (but not yet fixes) bugs #6010, #97266 and #135185.
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: removed the old progress hack.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpprogress.[ch]: implement GimpProgressInterface.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpprogressdialog.[ch]: the standalone progress
      	dialog as widget implementing GimpProgressInterface.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.[ch]
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpthumbbox.[ch]: added GimpProgressInterface
      	implementation to these classes.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: replaced the old progress vtable entries
      	by two new to create and destroy a GimpProgressDialog in case
      	no other progress is available.
      
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* tools/pdbgen/app.pl: pass a GimpProgress to all PDB wrappers and
      	all plug-ins.
      
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: handle the case there the
      	plug-in was crated with a progress as well as the case where it
      	wasn't.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/xcf/xcf.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c: changed accordingly.
      
      	* app/core/gimpimagefile.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-open-location-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: pass a GimpProgress to all file
      	related functions. Embed the progress in the file dialog where
      	possible.
      
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-convert.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage-scale.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c: replaced callback/data by GimpProgress.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c
      	* app/gui/convert-dialog.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed callers accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      02d2b990
  33. 13 Jul, 2004 1 commit
  34. 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
  35. 15 Apr, 2004 2 commits
    • Michael Natterer's avatar
      added "const gchar *stroke_desc" to the GimpItemClass struct and always · f41e1ff5
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch]: added "const gchar *stroke_desc" to
      	the GimpItemClass struct and always push an undo group
      	around GimpItem::stroke().
      
      	* app/core/gimpchannel.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c: set the stroke_desc accordingly
      	and don't push undo groups.
      
      	* app/text/gimptextlayer.c (gimp_text_layer_class_init): set
      	all of GimpItemClass' undo_descs.
      
      	* app/text/gimptextlayer-transform.c: don't push undo groups here.
      f41e1ff5
    • Michael Natterer's avatar
      Context cleanup continued: · 837fa429
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Context cleanup continued:
      
      	* app/core/gimpitem.[ch]: added context parameter to
      	GimpItem::stroke().
      
      	* app/core/gimpchannel.c (gimp_channel_stroke)
      	* app/vectors/gimpvectors.c (gimp_vectors_stroke): use it to get
      	default values from instead of gimp_get_user_context().
      
      	* app/core/gimpselection.c
      	* app/gui/stroke-dialog.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paths.pdb: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/paths_cmds.c: regenerated.
      
      	* app/plug-in/plug-in.[ch]: added GimpContext member to the PlugIn
      	struct. Added context parameter to plug_in_new(),
      	plug_in_call_query() and plug_in_call_init().
      
      	* app/plug-in/plug-in-run.[ch]: added context parameters to
      	plug_in_run() and plug_in_repeat().
      
      	* app/gui/plug-in-commands.c
      	* app/gui/vectors-commands.c
      	* app/pdb/procedural_db.c
      	* app/widgets/gimphelp.c: pass a context to plug_in_run() and
      	plug_in_repeat().
      
      	* app/plug-in/plug-in-message.c (plug_in_handle_proc_run): call
      	procedures with the plug-in's context.
      
      	* app/plug-in/plug-ins.c: use a temporary context for running the
      	plug-ins' query() and init() functions. Use the same context for
      	running automatic extensions. This temporarily separates the main
      	Script-Fu extension from the user context (i.e. scripts have no
      	way of setting/getting the global FG, BG, brush etc.).
      837fa429
  36. 14 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Get rid of the "current_context" which was in fact just a bunch of global · 18d9161e
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Get rid of the "current_context" which was in fact just a bunch of
      	global variables. Instead, pass the needed context all the way
      	from the GUI and the PDB to the core. This is a prerequisite for
      	macro recording and generally helps separating the various
      	subsystems from each other. Work in progress...
      
      	* app/core/gimp.[ch]: removed member "current_context" and
      	gimp_[get|set]_current_context().
      
      	* app/core/gimp-edit.[ch]
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable-offset.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimagefile.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimpselection.[ch]
      	* app/core/gimptemplate.[ch]
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/text/gimptext-compat.[ch]
      	* app/text/gimptextlayer-transform.[ch]
      	* app/gui/brush-select.[ch]
      	* app/gui/font-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
      	parameters and use the passed context instead of
      	gimp_get_current_context().
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors.c
      	* app/gui/convert-dialog.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
      	GIMP_CONTEXT(tool_options) or whatever is the right context
      	to the changed core functions.
      
      	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
      	generated PDB invokers.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
      	parameter to the changed core functions.
      
      	* app/pdb/*_cmds.c: regenerated.
      18d9161e