1. 11 Dec, 2000 1 commit
    • Sven Neumann's avatar
      app/edit_selection.c app/gimpimage.c app/layer_select.c when computing a · ed707bea
      Sven Neumann authored
      2000-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/edit_selection.c
      	* app/gimpimage.c
      	* app/layer_select.c
      	* app/layers_dialog.c: when computing a preview, limit the scale ratio
      	to a maximum of 1.0. By doing so we avoid to scale drawables up if the
      	image (canvas) size becomes larger than the drawable. Fixes bug #31098.
      
      	* app/gimppreviewcache.[ch]: indented
      ed707bea
  2. 03 Dec, 2000 1 commit
  3. 23 Aug, 2000 1 commit
    • Sven Neumann's avatar
      make the file_save dialog sensitive again if the user clicked "No" when · 5b205f17
      Sven Neumann authored
      2000-08-23  Sven Neumann  <sven@gimp.org>
      
      	* app/fileops.c: make the file_save dialog sensitive again if the
      	user clicked "No" when asked if he wishes to overwrite a file.
      
      	* app/gimpimage.c: when saving an undoable parasite, just do it
      	without calling undo_push_cantundo(). Undoable parasites are used
      	by many save plug-ins to attach a comment, but this operation
      	shouldn't prevent the user from using the undo_stack afterwards.
      	The JPEG plug-in has an additional bug that I couldn't solve, so
      	undoing after a Save As JPEG is still impossible.
      
      	* app/undo_history.c: lame attempt to draw the clean symbol at the
      	correct undo step. Not perfect but much better as before...
      5b205f17
  4. 07 Jun, 2000 1 commit
    • Manish Singh's avatar
      [patches from Daniel Egger] · 01577384
      Manish Singh authored
      * app/layers_dialog.c: Disable the "Add Layermask" menuentry
      for indexed images.
      
      * app/gimpimage.c: Leave gimp_image_add_layer_mask(...) after
      spitting out messages when trying to add a layermask to an
      indexed image.
      
      -Yosh
      01577384
  5. 27 May, 2000 2 commits
    • People doing a 16 bpc version of gimp's avatar
      Sat May 27 04:27:36 EDT 2000 calvinw@mindspring.com · b09291f0
              * app/gimpimage.c
      	--Fixed Fujita Yuji's bug (reported 27May2000 to
      	gimp-developer) -larger than 64x64 brush and
      	selection mask crashes smudge/dodgeburn/convolve
      	This was a rowstrides bug in gimp_image_replace_image.
      b09291f0
    • Michael Natterer's avatar
      Libgimp cleanup part II (with a little help from Yosh who moved the CVS · 6fa33d68
      Michael Natterer authored
      2000-05-27  Michael Natterer  <mitch@gimp.org>
      
      	Libgimp cleanup part II (with a little help from Yosh
      	who moved the CVS files).
      
      	* libgimp/Makefile.am
      	* libgimp/gimpchannel_pdb.c
      	* libgimp/gimpdisplay_pdb.c
      	* libgimp/gimpdrawable_pdb.c
      	* libgimp/gimpgradient_pdb.c
      	* libgimp/gimphelp_pdb.c
      	* libgimp/gimpimage_pdb.c
      	* libgimp/gimplayer_pdb.c
      	* libgimp/gimppalette_pdb.c
      	* libgimp/gimpparasite_pdb.c
      	* libgimp/gimpselection_pdb.c
      	* libgimp/gimpunit_pdb.c: new names of all files which contain
      	PDB wrappers.
      
      	* modules/Makefile.am
      	* libgimp/gimpcolordisplay.h
      	* libgimp/gimpcolorselector.h
      	* modules/gimpmodregister.[ch]: renamed.
      
      	* libgimp/gimpparasiteF.h
      	* libgimp/gimpparasiteP.h: removed because gimp.h had to include
      	the private header anyway.
      
      	* app/color_notebook.c
      	* app/color_select.c
      	* app/gdisplay_color.[ch]
      	* app/gdisplay_color_ui.c
      	* app/gimpbrushpipe.c
      	* app/gimpdrawable.[ch]
      	* app/gimpimage.c
      	* app/gimpimage.h
      	* app/gimpparasite.[ch]
      	* app/gimprc.c
      	* app/image_new.c
      	* app/layer.c
      	* app/parasite_cmds.c
      	* app/parasitelist.[ch]
      	* app/plug_in.c
      	* app/procedural_db.c
      	* app/undo.c
      	* app/xcf.c
      	* libgimp/gimp.[ch]
      	* libgimp/gimpcolordisplay.h
      	* libgimp/gimpparasite.[ch]
      	* modules/cdisplay_gamma.c
      	* modules/cdisplay_highcontrast.c
      	* modules/colorsel_gtk.c
      	* modules/colorsel_triangle.c
      	* modules/colorsel_water.c
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/FractalExplorer/Events.c
      	* plug-ins/Lighting/lighting_apply.c
      	* plug-ins/Lighting/lighting_shade.c
      	* plug-ins/MapObject/mapobject_image.c
      	* plug-ins/common/gpb.c
      	* plug-ins/common/psp.c
      	* plug-ins/sel2path/sel2path.c
      	* po-libgimp/POTFILES.in
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/parasite.pdb: changed includes accordingly.
      6fa33d68
  6. 26 May, 2000 1 commit
    • Michael Natterer's avatar
      Final (1.2) libgimp namespace cleanup part I: · 863f7e1c
      Michael Natterer authored
      2000-05-26  Michael Natterer  <mitch@gimp.org>
      
      	Final (1.2) libgimp namespace cleanup part I:
      
      	* app/gimpbrushpipe.c
      	* app/gimpdrawable.[ch]
      	* app/gimpimage.[ch]
      	* app/gimpparasite.[ch]
      	* app/gimprc.c
      	* app/image_new.c
      	* app/parasite_cmds.c
      	* app/parasitelist.[ch]
      	* app/parasitelistP.h
      	* app/plug_in.c
      	* app/undo.c
      	* app/xcf.c
      	* libgimp/color_display.h
      	* libgimp/gimp.[ch]
      	* libgimp/gimpdrawable.c
      	* libgimp/gimpimage.c
      	* libgimp/gimpparasite.c
      	* libgimp/gimpprotocol.c
      	* libgimp/parasite.[ch]
      	* libgimp/parasiteF.h
      	* libgimp/parasiteP.h
      	* libgimp/parasiteio.[ch]
      	* modules/cdisplay_gamma.c
      	* modules/cdisplay_highcontrast.c
      	* plug-ins/common/csource.c
      	* plug-ins/common/gif.c
      	* plug-ins/common/gpb.c
      	* plug-ins/common/jpeg.c
      	* plug-ins/common/psp.c
      	* plug-ins/common/tiff.c
      	* plug-ins/common/xbm.c
      	* plug-ins/gap/gap_exchange_image.c
      	* plug-ins/gdyntext/gdyntext.c
      	* plug-ins/ifscompose/ifscompose.c
      	* plug-ins/xjt/xjt.c: s/Parasite/GimpParasite/g,
      	                      s/parasite_*/gimp_parasite_*/g
      
      	* libgimp/gimpcompat.h: added the old names.
      
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/parasite.pdb: dito and an ugly perl hack to work
      	around a substitution clash. Perl gurus, feel free to fix it.
      863f7e1c
  7. 12 May, 2000 1 commit
  8. 27 Apr, 2000 1 commit
    • Michael Natterer's avatar
      app/color_select.c app/colormaps.[ch] removed unused global variables · c73b233f
      Michael Natterer authored
      2000-04-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/color_select.c
      	* app/colormaps.[ch]
      	* app/context_manager.c: removed unused global variables
      	[foreground|background]_pixel and [old|new]_color_pixel.
      
      	Initialize the colormap and visual stuff with GdkRGB instead of
      	GtkPreview functions (which are deprecated).
      
      	* app/[62 files]: removed #include's (started with colormaps.h and
      	couldn't stop). Also ordered them consistently and did some small
      	unrelated cleanups.
      	Removed variuos <stdlib.h> et.al. but checked the files carefully
      	before doing so. If I was too radical and you get warnings on your
      	platform, please flame me or just put them back :)
      c73b233f
  9. 06 Apr, 2000 1 commit
  10. 03 Apr, 2000 1 commit
    • Michael Natterer's avatar
      app/gimpdnd.[ch] app/channels_dialog.c removed the GdkGC parameter from · 9c834ce5
      Michael Natterer authored
      2000-04-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpdnd.[ch]
      	* app/channels_dialog.c
      	* app/layers_dialog.c: removed the GdkGC parameter from
      	gimp_dnd_set_drawable_preview_icon() since it's no longer used.
      
      	* app/gimpimage.c: dirty the view correctly after applying the
      	layer mask. Don't gdisplays_flush() because it's the job of the
      	caller.
      
      	* app/layers_dialog.c: when applying a layer mask, flush either
      	the display or just the layer_widget, depending on the previous
      	visibility state of the mask. Cleanups.
      
      	* plug-ins/print/gimp_color_window.c
      	* plug-ins/print/gimp_main_window.c: including config.h re-enables
      	i18n.
      9c834ce5
  11. 09 Mar, 2000 2 commits
    • Andy Thomas's avatar
      Thu Mar 9 22:29:14 GMT 2000 · a78e51c4
      Andy Thomas authored
      	* app/gimpimage.c
      
      	An Images tattoos state can equal the highest tattoo in the image.
      a78e51c4
    • Sven Neumann's avatar
      gimp_drawable_get_color_at() now silently returns NULL again if the · ad55aef2
      Sven Neumann authored
      * app/gimpdrawable.c: gimp_drawable_get_color_at() now silently
      returns NULL again if the coordinates are out of range. A lot of
      code using this function relies on this feature and correctly
      checks the return value. No need to emit critical warnings here.
      
      The GTK_CHECK_TYPE macro test for obj != NULL, no need to do this
      check twice. Removed lots of unnecessary calls to g_return_if_fail().
      
      * app/color_picker.c: with the old behaviour of
      gimp_drawable_get_color_at() the code is a bit simpler.
      
      * app/fuzzy_select.c: fuzzy_select relied on drawable_offsets()
      returning off_x = off_y = 0 if drawable == NULL. Decided to change
      this here, fixes bug #7077.
      
      * app/gimpimage.[ch]: Even though we made bad experiences with the
      changes in gimpdrawable.c, I have introduced similar argument checks
      here.
      
      * app/image_map.c: indentation
      
      
      --Sven
      ad55aef2
  12. 27 Feb, 2000 2 commits
  13. 26 Feb, 2000 1 commit
    • Garry R. Osgood's avatar
      app/commands.c app/gimpimage.c app/layer.c app/layer.h app/resize.c · 8769bbb4
      Garry R. Osgood authored
      2000-02-26 Garry R. Osgood <gosgood@idt.net>
      * app/commands.c
      * app/gimpimage.c
      * app/layer.c
      * app/layer.h
      * app/resize.c
      * app/resize.h
      
      Aliasing artifacts that changed relative positions
      of layers under scaling, giving rise to #5271, are
      minimized by a new layer.c function,
      layer_scale_by_factors(). Closes #5271. See
      http://idt.net/~gosgood/gimp-patch/patch07.html for
      further detail. See also usage documentation for
      layer_scale() and layer_scale_by_factors() in
      layer.c.
      
      Provided logic for the Scale Image dialog box to
      pre-check an image's layers for the possibility that
      a particular scaling, s: 0 < s < 1, reduces a layer
      dimension to zero. Should this case prevail, a
      boolean dialog box warns the user of the
      possibility. The user may (1) Cancel, returning
      focus to Scale Image and the possibility of
      corrective adjustment, or (2) OK the scaling. The
      layers that will vanish upon the new scaling are
      culled from the GimpImage::layers list first.
      8769bbb4
  14. 16 Feb, 2000 2 commits
    • Sven Neumann's avatar
      Cleaned up the Path header mess. · fde31211
      Sven Neumann authored
      
      --Sven
      fde31211
    • Sven Neumann's avatar
      Moved some functions out of paths_dialog.c into the new file · 1cde0279
      Sven Neumann authored
      paths.c and did a general namespace cleanup:
      s/PATHP/Path*/  s/PATHIMAGELISTP/PathList/ and friends.
      
      Paths are now copied on image duplicate (fixes bug #5726).
      
      Removed Path Tool and XInput Airbrush from the build and
      renamed "Layers & Channels" to "Layers, Channels & Paths".
      
      Applied patch from Wolfgang Hofer to xjt.c that enables loading
      and saving of paths based on Andy's change explained below.
      
      
      --Sven
      1cde0279
  15. 15 Feb, 2000 1 commit
    • GMT 2000 Andy Thomas's avatar
      gimp/app/gimpdrawable.c gimp/app/channel.c gimp/app/layer.c · 8f6bca32
      GMT 2000 Andy Thomas authored
      
      Tue Feb 15 23:27:42 GMT 2000 Andy Thomas <alt@gimp.org>
      
      	 * gimp/app/gimpdrawable.c
      	 * gimp/app/channel.c
      	 * gimp/app/layer.c
      	 * gimp/app/channel.h
      	 * gimp/app/layer.h
      	 * gimp/app/gimpimage.c
      	 * gimp/app/gimpimage.h
      	 * gimp/app/gimpdrawable.h
      	 * gimp/tools/pdbgen/pdb/paths.pdb
      	 * gimp/tools/pdbgen/pdb/layer.pdb
      	 * gimp/tools/pdbgen/pdb/channel.pdb
      	 * gimp/tools/pdbgen/pdb/gimage.pdb
      	 * gimp/app/channel_cmds.c
      	 * gimp/app/gimage_cmds.c
      	 * gimp/app/internal_procs.c
      	 * gimp/app/layer_cmds.c
      	 * gimp/app/paths_cmds.c
      
      	New gimp_*_set_tattoo procedures. This allows save/load plugins
              to save/restore tattoo states of layers, channels and paths. Note the
      	internal tattoo state can also be set, however rigorous checks are
      	performed to make sure that the internal tattoo states of layer,
      	channels and paths are consistent and that the new state value is
      	newval > MAX(MAX(layertattoo),MAX(channeltattoo),MAX(pathtattoo)).
      8f6bca32
  16. 13 Feb, 2000 1 commit
  17. 07 Feb, 2000 1 commit
    • Michael Natterer's avatar
      app/* libgimp/* plug-ins/* did a global s/GUnit/GimpUnit/ and · ef178669
      Michael Natterer authored
      2000-02-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/*
      	* libgimp/*
      	* plug-ins/*
      	* tools/pdbgen/*: did a global s/GUnit/GimpUnit/ and
      	s/GimpSizeEntryUP/GimpSizeEntryUpdatePolicy/
      
      	* libgimp/gimpcolorspace.c: renamed the parameter names to match
      	the names in the header.
      
      	* libgimp/gimphelpui.h
      	* libgimp/gimpimage.c
      	* libgimp/gimpmatrix.h
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimpunit.[ch]
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: added documentation and use g* types
      	all over the place (enables cross-referencing with the glib and
      	gtk+ html documentation).
      
      	* plug-ins/common/exchange.c
      	* plug-ins/common/max_rgb.c: small cleanups.
      
      	* plug-ins/common/mapcolor.c: the color buttons were attached in
      	the wrong order.
      ef178669
  18. 31 Jan, 2000 1 commit
  19. 30 Jan, 2000 1 commit
  20. 23 Jan, 2000 1 commit
    • Sven Neumann's avatar
      Renamed gimage->ref_count to disp_count and slightly changed · bceb97a9
      Sven Neumann authored
      the way it is used. As the new name suggests it is only used
      to count the number of displays associated with an image. It
      is now impossible to delete an image that has an associated
      display. You have to delete the display instead. Before this
      change it was possible to delete an image through the PDB that
      was created through the UI and bad things happened soon...
      
      
      --Sven
      bceb97a9
  21. 20 Jan, 2000 1 commit
  22. 08 Jan, 2000 2 commits
  23. 05 Jan, 2000 1 commit
  24. 10 Dec, 1999 1 commit
    • Garry R. Osgood's avatar
      app/gimpimage.c app/undo.c app/undo_types.h docs/undo.txt Changed sanity · fe6ee9d1
      Garry R. Osgood authored
      1999-12-10 Garry R. Osgood <gosgood@idt.net>
      	* app/gimpimage.c
      	* app/undo.c
              * app/undo_types.h
              * docs/undo.txt
              Changed sanity checks in undo_pop/free_layer_mask() to LAYER_MASK_ADD_UNDO
      	and LAYER_MASK_REMOVE_UNDO to be consistent with undo_push_layer_mask()
      	These now nvoke proper cleanup and release of GimpLayerMasks.
      	* docs/undo.txt: New file, an overview of undo logic written by
      	Austin Donnelly
      	* app/undo.c
      	* app/undo_types.h
      	* app/gimpimage.c : Introduced a new UndoType, UNDO_NULL, which maps
      	to zero, introducing that value into the enumerated types. Use the
              type to signal type unknown/error/untyped conditions.
      
      	Full patch documentation at
      	http://idt.net/~gosgood/gimp-patch/patch02.html
      fe6ee9d1
  25. 30 Nov, 1999 1 commit
  26. 24 Nov, 1999 1 commit
  27. 05 Nov, 1999 1 commit
    • Sven Neumann's avatar
      when moving layers/masks freeze the undo after the first move to avoid · 558271ff
      Sven Neumann authored
              * app/edit_selection.c: when moving layers/masks freeze the undo
              after the first move to avoid that each and every small movements
              puts an undo on the stack. Significantly speeds up layer moves
              and especially the undo of a layer move.
      
              * app/gdisplay.h: correct rounding errors
      
              * app/gimpimage.c: correctly display floating selections in the
              composite_preview instead of ignoring them
      
              * app/channels_dialog.c
              * app/layers_dialog.c
              * app/lc_dialog.c: s/gtk_widget_draw/gtk_widget_queue_draw/
      
      --Sven
      558271ff
  28. 28 Oct, 1999 1 commit
    • BST 1999 Andy Thomas's avatar
      app/gimpimage.c · e5528e6c
      BST 1999 Andy Thomas authored
      Thu Oct 28 23:22:34 BST 1999 Andy Thomas <alt@gimp.org>
      
      	* app/gimpimage.c
      
      	Fixed memory leak with image is deleted.
      
      	* plug-ins/common/jpeg.c
      
      	Fixed the way the plugin added layers. Preview stuff does not now
      	get corrupted.
      e5528e6c
  29. 26 Oct, 1999 1 commit
  30. 25 Oct, 1999 1 commit
  31. 17 Oct, 1999 1 commit
  32. 13 Oct, 1999 1 commit
  33. 01 Oct, 1999 3 commits
    • EDT 1999  Austin Donnelly's avatar
      Factored out common code from gimp_image_{raise,lower}_layer and · 97140d8f
      EDT 1999 Austin Donnelly authored
      Fri Oct  1 19:05:04 EDT 1999  Austin Donnelly  <austin@gimp.org>
      
      	* app/gimpimage.c: Factored out common code from
      	    gimp_image_{raise,lower}_layer and
      	    gimp_image_{raise_layer_to_top,lower_layer_to_bottom}.  They
      	    now call gimp_image_position_layer() to do the real work.
      	* app/gimpimage.h: gimp_image_position_layer() takes extra arg to
      	    tell whether an undo should be pushed.
      	* app/layers_dialog.c: reposition layer with undo.
      	* app/undo.c: new undo type for layer reposition.  Layer rename
      	    shouldn't dirty and clean the image twice!
      	* app/undo.h: prototype for undo_push_layer_reposition().
      	* app/undo_types.h: LAYER_REPOSITION_UNDO type.
      97140d8f
    • Austin Donnelly's avatar
      don't want sub-undo type undo_push_channel() takes ADD or REMOVE type · 4b4d3934
      Austin Donnelly authored
      Fri Oct  1 15:18:34 1999  Austin Donnelly  <and1000@research.att.com>
      
      	* app/channel.h: don't want sub-undo type
      	* app/gimpimage.c: undo_push_channel() takes ADD or REMOVE type
      	* app/undo.c: undo_push_channel() takes type.  More specific
      	    CHANNEL_{ADD,REMOVE}_UNDO types.
      	* app/undo.h: undo_push_channel() prototype.
      	* app/undo_types.h: More specific CHANNEL_{ADD,REMOVE}_UNDO types.
      4b4d3934
    • Austin Donnelly's avatar
      comment typo fix, plus add %D* to default image-title-format string, so · 11409e97
      Austin Donnelly authored
      Fri Oct  1 12:46:12 1999  Austin Donnelly  <austin@gimp.org>
      
      	* gimprc.in: comment typo fix, plus add %D* to default
      	    image-title-format string, so people get a '*' in the titlebar
      	    if their image is dirty.
      	* app/fileops.c: initialise filename before using it.
      	* app/gdisplay.c: empty parameter list () is K&R - should be
      	    stronger (void) in ANSI C.
      	* app/gimpdrawable.c: gimp_drawable_{dirty,clean} functions
      	    removed - no one uses them anyway.  Parasite undo type is
      	    proper parasite undo type, not MISC_UNDO.
      	* app/gimpdrawableP.h: drawable dirty bit removed.
      	* app/gimpimage.c: don't change the resolution if there's no
      	    difference from the old one.  Call gdisplay_shrink_wrap() to
      	    re-calculate scale factors and refresh the display on
      	    resolution change.  Layer undo doesn't have sub-types
      	    anymore, uses main UndoType instead.
      	* app/layer.h: Remove LayerUndoType
      	* app/qmask.c: fix qmask undo so it actually works.
      	* app/undo.h: new types for undo_push_layer{,_mask} and
      	    undo_push_qmask.
      	* app/undo.c: change way group boundaries are represented:
      	    each Undo has a group_boundary boolean set to TRUE if this is
      	    the start or the end of a group, and the type of the Undo is
      	    the group's type.  Within a group, each Undo keeps its own
      	    type.  This allows pop funcs and free funcs to do
      	    type-specific things (eg needed by layer and channel stuff).
      	    Don't maintain per-drawable dirty flags anymore.   Floating
      	    sel to layer and layer rename now uses meaningful undo types.
      	* app/undo_types.h: more specific undo types:
      	    LAYER_{ADD,REMOVE}_UNDO, LAYER_MASK_{ADD,REMOVE}_UNDO,
      	    LAYER_RENAME_UNDO, and PARASITE_{ATTACH,DETACH}_UNDO.
      	* app/undo_history.c: oops - undo stack was being placed into gtk
      	    list in wrong order.
      	* app/edit_selection.c: push more descriptive LAYER_DISPLACE_UNDO
      	    rather than MISC_UNDO.
      	* app/layers_dialog.c: better tagging of undo types
      11409e97