1. 03 Nov, 2008 1 commit
    • 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. 09 Oct, 2008 1 commit
    • Michael Natterer's avatar
      Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h had a · 5503e6a0
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Add GEGL_CFLAGS and #includes as if gimpdrawable.h and gimpimage.h
      	had a GEGL dependency (they will have in the next commit, but I
      	wanted to keep the commit separate).
      
      	* app/dialogs/Makefile.am
      	* app/file/Makefile.am
      	* app/gui/Makefile.am
      	* app/menus/Makefile.am
      	* app/paint/Makefile.am
      	* app/plug-in/Makefile.am
      	* app/text/Makefile.am
      	* app/vectors/Makefile.am
      	* app/widgets/Makefile.am
      	* app/xcf/Makefile.am: add GEGL_CFLAGS.
      
      	* app/actions/*.c
      	* app/core/*.c
      	* app/dialogs/*.c
      	* app/display/*.c
      	* app/file/*.c
      	* app/gui/*.c
      	* app/menus/*.c
      	* app/paint/*.c
      	* app/pdb/gimppdb-utils.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/*.c
      	* app/text/*.c
      	* app/tools/*.c
      	* app/vectors/*.c
      	* app/widgets/*.c
      	* app/xcf/*.c: add <gegl.h> or replace <glib-object.h> by <gegl.h>
      	to all files which include a drawable subclass or gimpimage.h
      
      	* tools/pdbgen/app.pl: include <gegl.h> instead of <glib-object.h>
      	in all generated files.
      
      	* app/pdb/*-cmds.c: regenerated.
      
      	* data/images/gimp-splash.png: the goat is still sleeping.
      	By Aurore Derriennic.
      
      
      svn path=/trunk/; revision=27202
      5503e6a0
  3. 10 Mar, 2008 1 commit
    • Sven Neumann's avatar
      formatting. · aec9ef26
      Sven Neumann authored
      2008-03-10  Sven Neumann  <sven@gimp.org>
      
      	* app/paint/gimpink.c (gimp_ink_motion): formatting.
      
      svn path=/trunk/; revision=25081
      aec9ef26
  4. 06 Feb, 2008 1 commit
  5. 14 Jan, 2008 1 commit
    • Sven Neumann's avatar
      app/core/core-types.h app/display/gimpdisplayshell-callbacks.c · 52487032
      Sven Neumann authored
      2008-01-14  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-types.h
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-coords.[ch]
      	* app/display/gimpdisplayshell.h
      	* app/paint/gimpink.[ch]
      	* app/paint/gimpinkundo.[ch]: applied patch from Alexia Death 
      that
      	adds an event evaluation function that decides if an event is
      	needed or can be discarded. As a side-product some useful 
      dynamics
      	parameters like velocity are added to the GimpCoords struct. The
      	Ink tool is changed to use this information. See bug #508639.
      
      
      svn path=/trunk/; revision=24607
      52487032
  6. 20 Dec, 2007 2 commits
  7. 09 Mar, 2007 1 commit
    • Michael Natterer's avatar
      include "libgimpmath/gimpmathtypes.h" instead of "libgimpmath/gimpmath.h". · 83d3a750
      Michael Natterer authored
      2007-03-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-types.h: include "libgimpmath/gimpmathtypes.h"
      	instead of "libgimpmath/gimpmath.h".
      
      	* app/core/gimpbrush.h
      	* app/paint/gimppaintcore.h
      	* app/paint/gimpperspectiveclone.h
      	* app/text/gimptext.h
      	* app/tools/gimptransformtool.h: include gimpvector.h and
      	gimpmatrix.h explicitely where they are needed in public structs.
      
      	* app/*/*.c
      	* tools/pdbgen/pdb/paths.pdb: include "libgimpmath/gimpmath.h"
      	where needed.
      
      	* app/pdb/paths_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=22084
      83d3a750
  8. 03 Feb, 2007 2 commits
    • Michael Natterer's avatar
      Remove support for the old undo pop and free cruft: · bdc91d6c
      Michael Natterer authored
      2007-02-03  Michael Natterer  <mitch@gimp.org>
      
      	Remove support for the old undo pop and free cruft:
      
      	* app/core/core-types.h: remove typedefs GimpUndoPopFunc and
      	GimpUndoFreeFunc.
      
      	* app/core/gimpundo.[ch]: remove members and properties size,
      	data, pop_func and free_func.
      
      	* app/core/gimpimage-undo.[ch] (gimp_image_undo_push): remove
      	parameters size, struct_size, pop_func and free_func.
      
      	* app/core/gimpimage-undo-push.c
      	* app/tools/gimptransformtool.c
      	* app/paint/gimpink.c
      	* app/paint/gimppaintcore.c: change calls to above function
      	accordingly.
      
      
      svn path=/trunk/; revision=21845
      bdc91d6c
    • Michael Natterer's avatar
      app/paint/gimppaintcore-undo.[ch] removed... · 792ba898
      Michael Natterer authored
      2007-02-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore-undo.[ch]
      	* app/paint/gimpink-undo.[ch]: removed...
      
      	* app/paint/Makefile.am
      	* app/paint/paint-types.h
      	* app/paint/gimppaintcoreundo.[ch]
      	* app/paint/gimpinkundo.[ch]: ...and added as proper undo classes.
      
      	* app/paint/gimppaintcore.[ch]
      	* app/paint/gimpink.c: push undos using the new classes.
      
      
      svn path=/trunk/; revision=21842
      792ba898
  9. 09 Dec, 2006 1 commit
  10. 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
  11. 02 Sep, 2006 1 commit
  12. 15 May, 2006 1 commit
  13. 12 Apr, 2006 1 commit
  14. 28 Mar, 2006 1 commit
  15. 27 Dec, 2005 1 commit
    • Michael Natterer's avatar
      Fixed incomplete core/ui separation of paint tools and paint methods: · ef9b04c5
      Michael Natterer authored
      2005-12-27  Michael Natterer  <mitch@gimp.org>
      
      	Fixed incomplete core/ui separation of paint tools and paint
      	methods:
      
      	* app/core/core-enums.h
      	* app/core/gimpcontext.[ch]: added a "paint-info" property and API
      	so the current paint method can be selected without the need for
      	an active tool.
      
      	(gimp_context_real_set_tool): set the paint-info to
      	tool_info->paint_info so the paint method follows the active tool
      	just as the active image follows the active display.
      
      	* app/core/gimp.h (struct Gimp)
      	* app/core/gimppaintinfo.[ch]: added "standard_paint_info" API
      	and stuff to be consistent with other context object properties.
      
      	* app/paint/gimp-paint.c: set the paintbrush as
      	standard_paint_info.
      
      	* app/core/gimpstrokedesc.c (gimp_stroke_desc_new): removed the
      	hack of falling back to the paintbrush when there is no active
      	tool and use the active paint method instead. Fall back to the
      	standard paint method if there is no active one.
      	(nothing in the core uses the active tool any more now).
      
      	* app/widgets/gimpdeviceinfo.h: add the paint info to the
      	properties which are saved in devicerc.
      
      	Added identifiers (names) and stock-ids to GimpPaintInfo:
      
      	* app/core/gimppaintinfo.[ch] (gimp_paint_info_new): added
      	identifier and stock-id parameters.
      
      	* app/core/gimptoolinfo.c (gimp_tool_info_new): removed the hack
      	of setting the paint-info stock-id from the tool-info stock-id.
      
      	* app/paint/paint-types.h
      	* app/paint/gimp-paint.c: changed GimpPaintRegisterCallback
      	accordingly.
      
      	* app/tools/gimp-tools.c (gimp_tools_register): changed paint
      	info names accordingly.
      
      	* app/paint/*.c (gimp_*_register): pass identifier and stock-id
      	accordingly.
      ef9b04c5
  16. 07 Dec, 2005 1 commit
  17. 21 Mar, 2005 1 commit
  18. 14 Jan, 2005 1 commit
    • Michael Natterer's avatar
      added GIMP_UNDO_INK. · d4177c88
      Michael Natterer authored
      2005-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): added GIMP_UNDO_INK.
      
      	* app/paint/gimppaintcore.[ch]: added virtual function
      	GimpPaintCore::push_undo() and call it.
      
      	* app/paint/gimppaintcore-undo.[ch]: made it the default
      	implementation.
      
      	* app/paint/gimpink-blob.[ch]: added blob_duplicate().
      
      	* app/paint/gimpink.[ch]: added a "start_blob" (just like
      	GimpPaintCore::start_coords) which gets set whenever we start a
      	new stroke or line. Removed ink->lastx and ink->lasty because
      	they are the same as paint_core->last_coords.
      
      	* app/paint/Makefile.am
      	* app/paint/gimpink-undo.[ch]: new files implementing an
      	undo step for ink which restores the last blob used along
      	with the whole ink state. Fixes bug #163670.
      d4177c88
  19. 02 Jan, 2005 1 commit
  20. 19 Jul, 2004 1 commit
    • Michael Natterer's avatar
      removed enum GimpPaintCoreState. · 85c2b2dd
      Michael Natterer authored
      2004-07-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.h: removed enum GimpPaintCoreState.
      
      	* app/paint/paint-enums.h: added enum GimpPaintState (with values
      	that have a name space).
      
      	* app/paint/gimppaintcore.[ch]
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimpink.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimppainttool.c: changed accordingly.
      
      	* app/tools/gimpinktool.c: removed unused #include.
      85c2b2dd
  21. 14 Jun, 2004 1 commit
    • Michael Natterer's avatar
      removed PRETRACE_PAINT and POSTTRACE_PAINT from the GimpPaintCoreState · 587e070f
      Michael Natterer authored
      2004-06-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: removed PRETRACE_PAINT and
      	POSTTRACE_PAINT from the GimpPaintCoreState enum. Removed
      	"gboolean traces_on_window" from GimpPaintCoreClass.
      
      	* app/paint/gimpclone.[ch]
      	* app/paint/gimpink.c
      	* app/tools/gimpclonetool.c: changed accordingly.
      
      	* app/tools/gimppainttool.c: ditto. Show the brush outline
      	while painting. Fixes bug #118348.
      587e070f
  22. 26 May, 2004 3 commits
    • Michael Natterer's avatar
      restored old time/speed sensitivity behaviour by doing nothing except · 336c5c20
      Michael Natterer authored
      2004-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpink.c: restored old time/speed sensitivity
      	behaviour by doing nothing except figuring if we draw a straight
      	line in INIT_PAINT. Instead, do all the Blob creating in
      	MOTION_PAINT and special case the initial (null) "motion"
      	accordingly.
      336c5c20
    • Michael Natterer's avatar
      added "guint32 time" parameters to GimpPaintCore::paint() and · b9d74b9a
      Michael Natterer authored
      2004-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimppaintcore.[ch]: added "guint32 time" parameters
      	to GimpPaintCore::paint() and ::interpolate().
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimpsmudge.c: changed accordingly.
      
      	* app/paint/gimpink.c: ditto and use the passed time instead of
      	hardcoded dummy values.
      
      	* app/paint/gimppaintcore-stroke.c: pass '0' as time.
      
      	* app/tools/gimppainttool.c: pass the GdkEvent time.
      b9d74b9a
    • Michael Natterer's avatar
      app/paint/Makefile.am app/paint/gimpink-blob.[ch] app/paint/gimpink.[ch] · 5e07ceb8
      Michael Natterer authored
      2004-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/Makefile.am
      	* app/paint/gimpink-blob.[ch]
      	* app/paint/gimpink.[ch]
      	* app/paint/gimpinkoptions.[ch]: new files. Ported the ink tool
      	to be a direct GimpPaintCore subclass without any GUI.
      
      	* app/paint/gimp-paint.c: register GimpInk with the list of paint
      	cores.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpinkoptions.[ch]
      	* app/tools/gimpinktool-blob.[ch]: removed these files.
      
      	* app/tools/gimpinkoptions-gui.[ch]: new files containing only
      	the GUI for GimpInkOptions.
      
      	* app/tools/gimpinktool.[ch]: reduced to some few lines which
      	implement a simple GimpPaintTool subclass.
      
      	* app/tools/gimp-tools.c: associate the GimpInk paint_core with
      	the GimpInkTool.
      5e07ceb8
  23. 04 May, 2004 1 commit
    • Michael Natterer's avatar
      Treat FG/BG just like all other context properties: · c7a7196b
      Michael Natterer authored
      2004-05-04  Michael Natterer  <mitch@gimp.org>
      
      	Treat FG/BG just like all other context properties:
      
      	* app/paint/gimppaintoptions.h: added GIMP_CONTEXT_FOREGROUND_MASK
      	and _BACKGROUND_MASK to GIMP_PAINT_OPTIONS_CONTEXT_MASK to specify
      	that they are used by GimpPaintOptions (automatically affects all
      	paint tools).
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpinktool.c: set FOREGROUND_MASK and BACKGROUND_MASK
      	manually here.
      
      	* app/tools/tool_manager.c (tool_manager_tool_changed): decide
      	about the globality of FG and BG at the same place where we decide
      	about the brush's, pattern's etc. globality, but hardcode them to
      	global = TRUE instead of looking at GimpConfig.
      
      	Fixes bug #141786.
      c7a7196b
  24. 29 Apr, 2004 1 commit
    • Michael Natterer's avatar
      stripped the menu paths from the "menu_path". Will be renamed to · 2a84015e
      Michael Natterer authored
      2004-04-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimp*tool.c (gimp_*_tool_register): stripped the menu
      	paths from the "menu_path". Will be renamed to "action_name" or
      	something soon...
      
      	* plug-ins/dbbrowser/dbbrowser.c
      	* plug-ins/common/plugindetails.c
      	* plug-ins/common/uniteditor.c: register under the new
      	"Extensions" placeholder.
      2a84015e
  25. 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
  26. 12 Mar, 2004 1 commit
  27. 18 Feb, 2004 1 commit
    • Sven Neumann's avatar
      tile-cache.c tile-private.h removed trailing whitespace, added some · fb121329
      Sven Neumann authored
      2004-02-18  Sven Neumann  <sven@gimp.org>
      
              * tile-cache.c
              * tile-private.h
              * tile.[ch]: removed trailing whitespace, added some newlines,
              let tile_is_valid() return a gboolean instead of a gint.
      
              * app/core/gimpimage-projection.c
              * app/core/gimpimage-undo-push.c
              * app/paint/gimppaintcore.c
              * app/tools/gimpinktool.c: use the return value from tile_is_valid()
              as a boolean.
      fb121329
  28. 18 Jan, 2004 1 commit
  29. 06 Oct, 2003 1 commit
    • Michael Natterer's avatar
      added new virtual functions GimpDrawable::get_active_components(), · a20e04bd
      Michael Natterer authored
      2003-10-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added new virtual functions
      	GimpDrawable::get_active_components(), apply_region() and
      	replace_region().
      
      	* app/core/Makefile.am
      	* app/core/gimpdrawable-combine.[ch]: new files containing
      	apply_region()'s and replace_region()'s default implementation.
      	They are identical to the ones removed from GimpImage except that
      	they don't mask the selection with itself (bug #107949).
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: implement get_active_components().
      
      	* app/core/gimpchannel.c: implement apply_region() and
      	replace_region() and invalidate the channel's boundary
      	before upchaining (bug #107949).
      
      	* app/core/gimpimage.[ch]: removed gimp_image_apply_image(),
      	gimp_image_replace_image() and gimp_image_get_active_components().
      
      	* app/core/gimpimage-undo-push.c (undo_pop_image): invalidate
      	boundary and bounds if the drawable is a channel (bug #107949).
      
      	(undo_pop_mask)
      	(undo_pop_channel_mod): finish previous commit :)
      
      	* app/core/gimp-edit.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-stroke.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpinktool.c: changed accordingly.
      a20e04bd
  30. 06 Sep, 2003 1 commit
    • Michael Natterer's avatar
      To optimize duplicate and/or wrong image updates away, introduced new · 7a5f9148
      Michael Natterer authored
      2003-09-06  Michael Natterer  <mitch@gimp.org>
      
      	To optimize duplicate and/or wrong image updates away, introduced
      	new policy that a child object must never explicitly update or
      	invalidate its parent object (just like the GUI is not updated
      	explicitly by the core):
      
      	* app/core/gimpdrawable.[ch]: added new signal
      	GimpDrawable::update(). Never update or invalidate the image when
      	the drawable is updated or invalidated.
      
      	(gimp_drawable_set_visible): don't gimp_drawable_update() the
      	drawable since its pixels have not changed.
      
      	* app/core/gimpimage.[ch]: connect to the "add" and "remove"
      	signals of the layers and channels containers. Also connect to the
      	"update" and "visibility_changed" signals of all drawables in
      	these containers (optimizes away updates issued by drawables which
      	are not yet added to the image and updates of the selection
      	mask). Also, don't propagate updates to the image if the emitting
      	drawable is invisible (optimizes away updates issued by invisible
      	drawables).
      
      	(gimp_image_add_layer,channel)
      	(gimp_image_remove_layer,channel): don't update the image since
      	that's done by our "add" and "remove" handlers now.
      
      	(gimp_image_position_layer,channel): update just the image, not
      	the drawable since its pixels have not changed.
      
      	(gimp_image_real_colormap_changed)
      	(gimp_image_set_component_visible): always call
      	gimp_image_update() *and* gimp_viewable_invalidate_preview() to
      	get everything updated, since update and invalidate of images are
      	not connected.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_layer,channel): don't
      	update the drawable since (a) its pixels don't change and (b) the
      	image updates itself upon adding/removing now.
      
      	(undo_pop_layer_mod): replaced gimp_image_update() by
      	gimp_drawable_update() (just for consistency with other similar
      	functions).
      
      	* app/core/gimplayer.c: connect to "update" of the layer mask and
      	issue updates on the layer if the mask update has any effect on
      	the projection.
      	(gimp_layer_create_mask): don't set the mask's offsets here since
      	they may be different when we later add the mask to the layer.
      
      	* app/core/gimplayermask.c (gimp_layer_mask_set_layer): set the
      	mask offsets here instead.
      
      	* app/core/gimpchannel.c (gimp_channel_translate): update the
      	channel even if push_undo == FALSE.
      
      	* app/paint/gimppaintcore.c (gimp_paint_core_finish)
      	* app/tools/gimpinktool.c (ink_finish): invalidate both the
      	drawable and the image preview since invalidating the drawable
      	doesn't invalidate the image any more.
      
      	* app/text/gimptextlayer.c (gimp_text_layer_render_now): also
      	update the new extents of the text layer, not only the old one.
      
      	(gimp_text_layer_render_layout): don't update the drawable since
      	gimp_drawable_fill() already updated it.
      7a5f9148
  31. 03 Sep, 2003 1 commit
    • Michael Natterer's avatar
      removed the _value() and _is_empty() wrappers. · e8378499
      Michael Natterer authored
      2003-09-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: removed the _value() and
      	_is_empty() wrappers.
      
      	* app/display/gimpdisplayshell.[ch]: removed
      	gimp_display_shell_mask_value() since it is not used.
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/gui/image-menu.c
      	* app/gui/vectors-menu.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/misc_tools.pdb: changed accordingly.
      
      	* app/pdb/misc_tools_cmds.c: regenerated.
      e8378499
  32. 22 Aug, 2003 1 commit
    • Michael Natterer's avatar
      app/display/gimpdisplayshell.c app/gui/brush-select.c · fc20b3ac
      Michael Natterer authored
      2003-08-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.c
      	* app/gui/brush-select.c
      	* app/gui/channels-menu.c
      	* app/gui/convert-dialog.c
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c
      	* app/gui/font-select.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/image-menu.c
      	* app/gui/layers-menu.c
      	* app/gui/menus.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palette-select.c
      	* app/gui/palettes-commands.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/qmask-commands.c
      	* app/gui/qmask-menu.c
      	* app/gui/templates-commands.c
      	* app/gui/toolbox-menu.c
      	* app/gui/vectors-menu.c
      	* app/tools/[all tools].c
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpitemfactory.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimphelp-ids.h: added, fixed and updated lots of
      	help IDs. Still unfinished.
      fc20b3ac
  33. 02 Jul, 2003 1 commit
    • Sven Neumann's avatar
      app/gui/edit-commands.c added "Fill with Pattern" menu entry as suggested · e7860145
      Sven Neumann authored
      2003-07-02  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/edit-commands.c
      	* app/gui/image-menu.c: added "Fill with Pattern" menu entry as
      	suggested in bug #116365.
      
      	* app/base/temp-buf.c
      	* app/base/tile-swap.c
      	* app/config/gimpbaseconfig.c
      	* app/config/gimpconfig-types.c
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-utils.c
      	* app/paint-funcs/paint-funcs-types.h
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.h
      	* app/tools/gimptextoptions.c
      	* app/paint-funcs/paint-funcs-types.h
      	* app/vectors/gimpbezierstroke.c
      	* app/vectors/gimpstroke.c
      	* app/vectors/gimpvectors.c
      	* app/vectors/vectors-types.h
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpmisc.h
      	* libgimpmodule/gimpmodule.c: fixed some minor issues found
      	compiling with -pedantic.
      
      	* app/pdb/misc_tools_cmds.c
      	* tools/pdbgen/pdb/misc_tools.pdb: adapt to the changed order of
      	arguments for gimp_image_pick_color().
      e7860145
  34. 01 Jul, 2003 1 commit
  35. 28 Jun, 2003 1 commit
    • Michael Natterer's avatar
      removed enum GimpContextPropType and enum GimpContextPropMask. · e14e158e
      Michael Natterer authored
      2003-06-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcontext.h: removed enum GimpContextPropType and
      	enum GimpContextPropMask.
      
      	* app/core/core-enums.[ch]: added them here.
      
      	* app/core/gimptoolinfo.[ch]: replaced "gboolean tool_context"
      	member by "GimpContextPropMask context_props" so each tool can
      	specify exactly which context properties it wants to have
      	persistently remembered.
      
      	* app/tools/tools-types.h: changed typedef GimpToolRegisterCallback
      	accordingly.
      
      	* app/tools/tool_manager.[ch] (tool_manager_register_tool): ditto.
      
      	Removed the "global_tool_context" and initialize all tool info
      	objects from the user_context after creation. Removed the
      	PAINT_OPTIONS_MASK #define and use the new context_props stored in
      	tool_info insted.
      
      	* app/tools/gimppainttool.h: #define the common properties of the
      	paint tools as GIMP_PAINT_TOOL_OPTIONS_MASK (which is OPACITY |
      	PAINT_MODE | BRUSH).
      
      	* app/tools/[all tools].c (gimp_*_tool_register): replaced the
      	"use_context" boolean by the actual mask of context properties the
      	tools need.
      e14e158e
  36. 26 May, 2003 1 commit
    • Michael Natterer's avatar
      added "gint ref_count" to the TileManager struct. · 707e5976
      Michael Natterer authored
      2003-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/tile-manager-private.h: added "gint ref_count" to the
      	TileManager struct.
      
      	* app/base/tile-manager.[ch]: replaced tile_manager_destroy()
      	by tile_manager_ref() and tile_manager_unref().
      
      	* app/core/gimpimage-undo-push.c: ref the tile managers stored in
      	the undo system and DON'T destroy them if no undo could be pushed.
      	Should fix the remaining crashes with undo disabled like in
      	bug #9350.
      
      	(!!!) Note that the tiles passed to gimp_image_undo_push_image()
      	and gimp_drawable_push_undo() as well as the tile managers of
      	drawables passed to gimp_image_undo_push_[layer|channel]_mod()
      	must be unref'ed by the caller now.
      
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste):
      	don't take ownership of the passed tiles but ref them if needed.
      
      	(!!!) Callers must unref the passed tiles themselves now.
      
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/paint/gimppaintcore.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimptransformtool-undo.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      707e5976