1. 29 Jan, 2001 3 commits
    • Michael Natterer's avatar
      app/Makefile.am new file with one set of functions... · bd7a4bf1
      Michael Natterer authored
      2001-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpdrawablepreview.[ch]: new file with one set of functions...
      
      	* app/channel.[ch]
      	* app/layer.[ch]: ...instead of having everything duplicated three
      	times here.
      
      	* app/channels_dialog.c
      	* app/floating_sel.c
      	* app/floating_sel.h
      	* app/gimpdnd.c
      	* app/gimpimage.c
      	* app/layer_select.c
      	* app/layers_dialog.c
      	* app/selection.c
      	* app/pdb/drawable_cmds.c
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly, cleanup.
      bd7a4bf1
    • Michael Natterer's avatar
      app/Makefile.am new file. · 227eea67
      Michael Natterer authored
      2001-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/undo_history.h: new file.
      
      	* app/apptypes.h: removed the "Channel" typedef.
      
      	* app/channel.[ch]: renamed all functions to gimp_channel_*()
      
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/commands.c
      	* app/disp_callbacks.c
      	* app/gdisplay.c
      	* app/gimage_mask.[ch]
      	* app/gimpdnd.c
      	* app/gimphistogram.c
      	* app/gimpimage.[ch]
      	* app/global_edit.c
      	* app/layer.c
      	* app/layers_dialog.c
      	* app/qmask.c
      	* app/scan_convert.c
      	* app/scan_convert.h
      	* app/toolbox.c
      	* app/undo.[ch]
      	* app/undo_history.c
      	* app/xcf.[ch]
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/pdb_glue.h
      	* app/pdb/selection_cmds.c
      	* app/pdb/tools_cmds.c
      	* app/tools/bezier_select.c
      	* app/tools/bezier_selectP.h
      	* app/tools/blend.c
      	* app/tools/bucket_fill.c
      	* app/tools/by_color_select.c
      	* app/tools/crop.c
      	* app/tools/ellipse_select.c
      	* app/tools/free_select.c
      	* app/tools/fuzzy_select.c
      	* app/tools/fuzzy_select.h
      	* app/tools/iscissors.c
      	* app/tools/rect_select.c
      	* app/tools/text_tool.c
      	* app/tools/transform_core.c
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      227eea67
    • Michael Natterer's avatar
      app/pdb/Makefile.am new file which contains the stuff that makes PDB code · d3dcfadc
      Michael Natterer authored
      2001-01-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/Makefile.am
      	* app/pdb/pdb_glue.h: new file which contains the stuff that makes
      	PDB code generation easier but is ugly when used in the app
      	(see my comment in the log below).
      
      	Contains:
      	gimp_drawable_[layer|layer_mask|channel]()
      	[channel|gimp_layer]_[set|get]_[name|tattoo]()
      
      	* app/channel.[ch]
      	* app/channels_dialog.c
      	* app/gimpdrawable.h
      	* app/gimpimage.c
      	* app/gimplayermask.h
      	* app/layer.c
      	* app/layer.h
      	* app/toolbox.c
      	* app/undo.c
      	* app/xcf.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/tools/bezier_select.c
      	* app/tools/bucket_fill.c
      	* app/tools/by_color_select.c
      	* app/tools/ellipse_select.c
      	* app/tools/free_select.c
      	* app/tools/fuzzy_select.c
      	* app/tools/iscissors.c
      	* app/tools/rect_select.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      d3dcfadc
  2. 28 Jan, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am new files cut out of layer.[ch]. Renamed all functions to · 8ddebdf7
      Michael Natterer authored
      2001-01-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimplayermask.[ch]: new files cut out of layer.[ch]. Renamed
      	all functions to gimp_layes_mask_*(). removed artefacts like
      	the ref/unref functions.
      
      	* app/apptypes.h: removed the "LayerMask" typedef.
      
      	* app/layer.[ch]: removed the layer mask stuff and renamed all
      	functions to gimp_layer_*(). Added temporary typedefs for the old
      	function names. The layer mask preview stuff is still there (should
      	probably go to new layer_preview.{ch] files).
      
      	* app/gimpimage.[ch]: added
      	gimp_image_invalidate_[layer|channel]_previews() formerly known as
      	[layer|channel]_invalidate_previews().
      
      	* app/channel.[ch]: moved channel_layer_alpha() and
      	channel_layer_mask() here because they are methods of the Channel.
      
      	* app/channel_ops.c
      	* app/convert.c
      	* app/disp_callbacks.c
      	* app/fileops.c
      	* app/floating_sel.c
      	* app/gimage.c
      	* app/gimage_mask.c
      	* app/gimpdnd.c
      	* app/global_edit.c
      	* app/layers_dialog.c
      	* app/preferences_dialog.c
      	* app/toolbox.c
      	* app/undo.c
      	* app/xcf.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/tools/crop.c
      	* app/tools/text_tool.c
      	* app/tools/transform_core.c
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly, cleanup.
      8ddebdf7
  3. 23 Jan, 2001 1 commit
    • Michael Natterer's avatar
      Makefile.am configure.in added stuff for the new library below. · cb166972
      Michael Natterer authored
      2001-01-24  Michael Natterer  <mitch@gimp.org>
      
      	* Makefile.am
      	* configure.in
      	* gimptool.in: added stuff for the new library below.
      
      	* libgimpmath/.cvsignore
      	* libgimpmath/Makefile.am
      	* libgimpmath/gimpmath.def
      	* libgimpmath/gimpmath.h
      	* libgimpmath/gimpmathtypes.h
      	* libgimpmath/gimpmatrix.c
      	* libgimpmath/gimpmatrix.h
      	* libgimpmath/gimpvector.c
      	* libgimpmath/gimpvector.h
      	* libgimpmath/makefile.mingw.in
      	* libgimpmath/makefile.msc: new shared library. Depends on glib only.
      
      	* libgimp/Makefile.am
      	* libgimp/gimp.def
      	* libgimp/gimp.h: removed the math stuff.
      
      	* libgimp/gimpmath.h
      	* libgimp/gimpmatrix.[ch]
      	* libgimp/gimpvector.[ch]: removed.
      
      	* app/Makefile.am
      	* plug-ins/Lighting/Makefile.am
      	* plug-ins/MapObject/Makefile.am
      	* plug-ins/pagecurl/Makefile.am: link against libgimpmath.la
      
      	* app/[many files]
      	* libgimpcolor/gimpcolorspace.c
      	* libgimpcolor/gimprgb.c
      	* libgimp/gimpadaptivesupersample.c
      	* libgimp/gimpbilinear.c
      	* libgimp/gimpwidgets.c
      	* modules/colorsel_gtk.c
      	* modules/colorsel_triangle.c
      	* modules/colorsel_water.c
      	* plug-ins/libgck/gck/gckcolor.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/image.pdb: include "libgimpmath/gimpmath.h",
      	removed the remaining includes of the old color stuff.
      cb166972
  4. 15 Jan, 2001 1 commit
    • Michael Natterer's avatar
      app/channel.[ch] app/gimpimage.[ch] use GimpRGB for the Channel's, the · d8228390
      Michael Natterer authored
      2001-01-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/channel.[ch]
      	* app/gimpimage.[ch]
      	* app/layer.[ch]: use GimpRGB for the Channel's, the QuickMask's
      	and the LayerMask's color.
      
      	* app/channel_cmds.c
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/qmask.c
      	* app/xcf.c
      	* tools/pdbgen/pdb/channel.pdb: changed accordingly.
      d8228390
  5. 14 Jan, 2001 2 commits
    • Michael Natterer's avatar
      app/channel.[ch] app/drawable.[ch] app/gdisplay.[ch] app/gimpdrawable.[ch] · 3220f9ec
      Michael Natterer authored
      2001-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/channel.[ch]
      	* app/drawable.[ch]
      	* app/gdisplay.[ch]
      	* app/gimpdrawable.[ch]
      	* app/layer.[ch]:
      
      	- Removed all "typedef drawable_function gimp_drawable_function".
      	- Renamed all *_get_ID() functions to *_get_by_ID().
      	- For symmetry reasons, renamed drawable_ID() to gimp_drawable_get_ID().
      	- Removed the *_get_ID() functions of GimpLayer, GimpLayerMask
      	  and GimpChannel.
      
      	* app/airbrush.c
      	* app/bezier_select.c
      	* app/blend.c
      	* app/brightness_contrast.c
      	* app/bucket_fill.c
      	* app/by_color_select.c
      	* app/clone.c
      	* app/color_balance.c
      	* app/color_picker.c
      	* app/convert.c
      	* app/convolve.c
      	* app/crop.c
      	* app/curves.c
      	* app/desaturate.c
      	* app/dodgeburn.c
      	* app/edit_selection.c
      	* app/eraser.c
      	* app/fileops.c
      	* app/flip_tool.c
      	* app/floating_sel.c
      	* app/fuzzy_select.c
      	* app/gimage.c
      	* app/gimage_mask.c
      	* app/gimphistogram.c
      	* app/gimpimage.c
      	* app/global_edit.c
      	* app/histogram_tool.c
      	* app/hue_saturation.c
      	* app/image_map.c
      	* app/ink.c
      	* app/invert.c
      	* app/layer_select.c
      	* app/layers_dialog.c
      	* app/levels.c
      	* app/paint_core.c
      	* app/paintbrush.c
      	* app/pencil.c
      	* app/plug_in.c
      	* app/posterize.c
      	* app/scan_convert.c
      	* app/smudge.c
      	* app/text_tool.c
      	* app/threshold.c
      	* app/transform_core.c
      	* app/undo.c
      	* app/undo_history.c
      
      	* app/channel_cmds.c
      	* app/channel_ops_cmds.c
      	* app/color_cmds.c
      	* app/display_cmds.c
      	* app/drawable_cmds.c
      	* app/edit_cmds.c
      	* app/floating_sel_cmds.c
      	* app/image_cmds.c
      	* app/layer_cmds.c
      	* app/parasite_cmds.c
      	* app/selection_cmds.c
      	* app/text_tool_cmds.c
      	* app/tools_cmds.c
      	* libgimp/gimpdrawable_pdb.c
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/channel_ops.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      3220f9ec
    • Michael Natterer's avatar
      app/channel.[ch] app/gimpdrawable.[ch] moved the "removed" signal from · f504187d
      Michael Natterer authored
      2001-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/channel.[ch]
      	* app/gimpdrawable.[ch]
      	* app/layer.[ch]: moved the "removed" signal from GimpChannel and
      	GimpLayer to GimpDrawable.
      
      	* app/gimpimage.[ch]: changed accordingly.
      f504187d
  6. 10 Jan, 2001 2 commits
    • Michael Natterer's avatar
      removed the "name" parameter and use GimpObject's name instead. · 6642bc2c
      Michael Natterer authored
      2001-01-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpdrawable.[ch]: removed the "name" parameter and use
      	GimpObject's name instead.
      
      	* app/channel.c
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/drawable.h
      	* app/gimpimage.c
      	* app/interface.c
      	* app/layer.c
      	* app/layer_select.c
      	* app/layers_dialog.c
      	* app/qmask.c
      	* app/undo.c
      	* app/xcf.c: changed accordingly, cleanup.
      6642bc2c
    • Michael Natterer's avatar
      app/Makefile.am removed. added. · 92c45a90
      Michael Natterer authored
      2001-01-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimpsignal.[ch]: removed.
      	* app/gimpmarshal.[ch]: added.
      
      	* app/channel.[ch]
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.c
      	* app/gimpbrushlist.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpcontext.c
      	* app/gimpdrawable.c
      	* app/gimpimage.c
      	* app/gimplist.[ch]
      	* app/gimpobject.[ch]
      	* app/gimpset.[ch]
      	* app/layer.c
      	* app/layers_dialog.c
      	* app/module_db.c
      	* app/parasitelist.[ch]: removed gimp_signal_new() and
      	GIMP_TYPE_INIT(). Fixed lots of object related uglyness.
      92c45a90
  7. 29 Dec, 2000 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/channel_pvt.h app/drawable_pvt.h app/gdisplayF.h · 8d6c335f
      Michael Natterer authored
      2000-12-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/channel_pvt.h
      	* app/drawable_pvt.h
      	* app/gdisplayF.h
      	* app/gimpdrawableP.h
      	* app/gimpimageP.h
      	* app/layer_pvt.h
      	* app/toolsF.h: removed these files.
      
      	* app/apptypes.h
      	* tools/pdbgen/enums.pl: added tons of opaque typedefs and enums.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/display.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/help.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/tools.pdb
      	* app/*: chainsaw #include cleanup:
      
      	- Never (never!!) include stuff in header files except where we
      	  need access to structures' contents (like derived objects).
      	- Added prototypes and proper formating in many files.
      	- The #include order in *all* *.c files is as follows:
      
      	#include "config.h"
      
      	#include <system stuff>
      
      	#include <gtk/gtk.h>
      
      	#include "apptypes.h"
      
      	#include "gimp stuff"
      
      	#include "libgimp stuff"
      
      	#include "libgimp/gimpintl.h"
      
      	By following this scheme we can easily see a file's dependencies
      	from it's #include's and can grep for the inclusion to find out
      	where a file is used.
      
      	* tools/pdbgen/app.pl: changed to follow the include scheme above.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpuitypes.h: new file, included from libgimp/gimpui.h
      	and from app/apptypes.h.
      
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimpparasite.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimpprotocol.c
      	* libgimp/gimpquerybox.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimptypes.h
      	* libgimp/gimpui.h
      	* libgimp/gimpunit.h
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: changed accordingly.
      
      	* plug-ins/FractalExplorer/Dialogs.c
      	* plug-ins/gdyntext/message_window.c
      	* plug-ins/imagemap/imap_default_dialog.c
      	* plug-ins/imagemap/imap_file.c: these files used to include
      	"libgimp/gimpui.h" without including "libgimp/gimp.h". This is
      	no longer possible because the libgimpui headers don't inlcude
      	"libgimp/gimpunit.h" any more.
      8d6c335f
  8. 28 Dec, 2000 2 commits
    • Sven Neumann's avatar
      app/channel.c use gtk_object_sink() instead of gtk_object_unref() when · ebe7d2f9
      Sven Neumann authored
      2000-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/channel.c
      	* app/layer.c: use gtk_object_sink() instead of gtk_object_unref()
      	when deleting a layer or channel since only floating objects should
      	be destroyed this way. A layer or channel that has been attached
      	to an image shall never be deleted.
      
      	* app/layer_cmds.c
      	* libgimp/gimplayer_pdb.c
      	* tools/pdbgen/pdb/layer.pdb: reenabled the gimp_layer_delete() PDB
      	function since it might be useful under rare circumstances.
      ebe7d2f9
    • Michael Natterer's avatar
      app/channel.[ch] app/drawable.h app/gimpdrawable.[ch] app/gimpdrawableP.h · 0d440e10
      Michael Natterer authored
      2000-12-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/channel.[ch]
      	* app/drawable.h
      	* app/gimpdrawable.[ch]
      	* app/gimpdrawableP.h
      	* app/gimpimage.[ch]
      	* app/gimpimageP.h
      	* app/layer.[ch]
      	* app/layer_pvt.h: started a major cleanup of all image/drawable
      	files. Added tons of "const GimpImage *" declarations and properly
      	formated the headers.
      
      	* app/bezier_select.c
      	* app/channels_dialog.c
      	* app/crop.c
      	* app/fileops.[ch]
      	* app/fuzzy_select.c
      	* app/gdisplay.c
      	* app/layers_dialog.c
      	* app/move.c
      	* app/paint_funcs.[ch]
      	* app/qmask.c
      	* app/undo.c: changed accordingly plus the usual portion of coding
      	style paranoia. This is not finished but Sven promised to buy me
      	a beer if I commit now ;)
      0d440e10
  9. 16 Dec, 2000 2 commits
    • Sven Neumann's avatar
      app/gimppreviewcache.h app/channel.c put the preview cache priming code · 7d0ca8d0
      Sven Neumann authored
      2000-12-16  Sven Neumann  <sven@gimp.org>
      
      	* app/gimppreviewcache.h
      	* app/channel.c
      	* app/layer.c: put the preview cache priming code back into place,
      	but disabled it for small images to avoid unnecessary upscaling.
      7d0ca8d0
    • Sven Neumann's avatar
      Last-minute cleanup: · dfa2bed5
      Sven Neumann authored
      2000-12-16  Sven Neumann  <sven@gimp.org>
      
      	Last-minute cleanup:
      
      	* app/gimpdrawableF.h
      	* app/gimphistogramF.h
      	* app/gimpimageF.h
      	* app/gimplistF.h
      	* app/gimplutF.h
      	* app/gimpobjectF.h
      	* app/gimpsetF.h
      	* app/layerF.h
      	* app/parasitelistF.h: removed these files
      
      	* app/Makefile.am
      	* tools/pdbgen/Makefile.am: changed accordingly
      
      	* app/[almost every file]: include cleanup
      dfa2bed5
  10. 15 Dec, 2000 1 commit
    • Sven Neumann's avatar
      added new function gimp_preview_scale(). · e29df7e2
      Sven Neumann authored
      2000-12-15  Sven Neumann  <sven@gimp.org>
      
      	* app/gimppreviewcache.[ch]: added new function gimp_preview_scale().
      
      	* app/channel.c
      	* app/channels_dialog.c
      	* app/gimpimage.c
      	* app/layer.c
      	* app/layers_dialog.c
      	* app/lc_dialog.c
      	* app/nav_window.c: unified preview drawing code. Previews are never
      	generated larger than the canvas size. Image and channel previews are
      	scaled up to the desired size, so does the navigation window. The
      	layer previews are not yet scaled up again since we can not use
      	gimp_preview_scale here. I have removed the preview_cache priming
      	code since we don't need it any longer and it caused bad results.
      e29df7e2
  11. 11 Dec, 2000 1 commit
    • Sven Neumann's avatar
      check for NULL pointer · d7c90b6d
      Sven Neumann authored
      2000-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/channel.c (channel_invalidate_previews): check for NULL pointer
      
      	* app/fileops.c: if saving and loading images at the same time, the
      	PDB obviously manages to mangle return values. By checking the
      	validity of the returned image id we avoid to crash as described in
      	bug #26788.
      
      	* app/module_db.c: unload modules from the idle_loop as suggested
      	by Austin in #5745.
      d7c90b6d
  12. 03 Jun, 2000 1 commit
  13. 12 May, 2000 1 commit
    • Sven Neumann's avatar
      enabled the (commented out) signal "invalidate_preview". · b101e7bc
      Sven Neumann authored
      2000-05-12  Sven Neumann  <sven@gimp.org>
      
      * gimpdrawable.c: enabled the (commented out) signal
        "invalidate_preview".
      
      * app/layers_dialog.c: connect to the "invalidate_preview"
        signal to catch changes that need to be shown in the layer
        previews. Synthetize an expose event when a layer changes.
      
        Expose events are optimzed away by GTK+ if the widget is not
        visible. Therefore, previews not visible in the layers_dialog
        are not redrawn when they invalidate. Later the preview gets
        validated by the image_preview in lc_dialog but is never
        propagated to the layer_pixmap. We work around this by using an
        additional flag "layer_pixmap_valid" so that the pixmap gets
        updated once the preview scrolls into sight.
      
        Fixes bugs #10549, #10300 and #8787.
      
      * app/channel.[ch]
      * app/layer.[ch]: code review and indentation
      
      
      --Sven
      b101e7bc
  14. 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
  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. 25 Jan, 2000 1 commit
    • Michael Natterer's avatar
      removed BOUNDS, MINIMUM and MAXIMUM. No need to include both <glib.h> and · 49230471
      Michael Natterer authored
      2000-01-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/appenv.h: removed BOUNDS, MINIMUM and MAXIMUM. No need to
      	include both <glib.h> and <gtk/gtk.h>.
      
      	* app/*
      	* tools/pdbgen/pdb/text_tool.pdb: s/BOUNDS/CLAMP/,
      	same for MIN and MAX.
      
      	* app/preferences_dialog.c: the "Check Size" widget was connected
      	to the transparency_type variable.
      
      	* plug-ins/common/sobel.c: removed definitions of MIN and ROUND.
      
      	* libgimp/gimp.h: #include "gimplimits.h" and "gimpcolorspace.h".
      
      	* plug-ins/*: don't include the two files.
      49230471
  17. 20 Jan, 2000 1 commit
  18. 06 Dec, 1999 1 commit
  19. 04 Nov, 1999 1 commit
    • Sven Neumann's avatar
      get rid of compiler warnings · 84984285
      Sven Neumann authored
              * app/channel.c: get rid of compiler warnings
      
              * app/histogram_tool.c
              * app/histogram_tool.h: added a gradient below the histogram so
              it looks more like the curves and levels tool
      
              * app/gimpbrushpipe.c
              * libgimp/parasiteio.c
              * libgimp/parasiteio.h: plugged another mem-leaks. At least
              The GIMP now starts without leaking memory...
      
      --Sven
      84984285
  20. 01 Sep, 1999 1 commit
    • Tor Lillqvist's avatar
      app/appenv.h New file. Includes <math.h>. Move G_PI, RINT(), ROUND() etc · 6ef23d98
      Tor Lillqvist authored
      1999-09-01  Tor Lillqvist  <tml@iki.fi>
      
      * app/appenv.h
      * libgimp/gimpmath.h: New file. Includes <math.h>. Move G_PI,
      RINT(), ROUND() etc from app/appenv.h here, so plug-ins can
      use them, too. Remove some commented-out old stuff in appenv.h.
      
      * libgimp/gimp.h: Include gimpmath.h.
      
      * libgimp/gimp.c (gimp_main): Win32: Don't install signal
      handlers, we can't do anything useful in the handler ourselves
      anyway (it would be nice to print out a backtrace, but that seems
      pretty hard to do, even if not impossible). Let Windows inform the
      user about the crash. If the plug-in was compiled with MSVC, and
      the user also has it, she is offered a chance to start the
      debugger automatically anyway.
      
      * app/*several*.c: Include gimpmath.h for G_PI etc. Don't include
      <math.h>, as gimpmath.h includes it.
      
      * plug-ins/*/*many*.c: Include config.h. Don't include <math.h>.
      Remove all the duplicated definitions of G_PI and rint(). Use
      RINT() instead of rint().
      
      * app/app_procs.[ch]: app_exit() takes a gboolean.
      
      * app/batch.c
      * app/commands.c
      * app/interface.c: Call app_exit() with FALSE or TRUE.
      
      * app/main.c (on_error): Call gimp_fatal_error. (main): Don't
      install any signal handler on Win32 here, either.
      
      * app/errors.c (gimp_fatal_error, gimp_terminate): Win32: Format
      the message and call MessageBox with it.  g_on_error_query doesn't
      do anything useful on Win32, and printf'ing a message to stdout or
      stderr doesn't do anything, either, in a windowing application.
      6ef23d98
  21. 27 Aug, 1999 1 commit
    • BST 1999 Andy Thomas's avatar
      app/nav_window.c app/nav_window.h app/gimppreviewcache.h app/layer.c · df7ad092
      BST 1999 Andy Thomas authored
      Fri Aug 27 18:57:50 BST 1999 Andy Thomas <alt@gimp.org>
      
      	* app/nav_window.c
      	* app/nav_window.h
      	* app/gimppreviewcache.h
      	* app/layer.c
      	* app/channel.c
      	* app/commands.c
      
      	Added some controls to the nav window. Yep. I know that the
      	buttons are toooo biGGG.
      
      	Preview cache changes. Now prime preview cache with a image
      	so that later we have a better chance of a hit. Still
      	needs to be more intelligent at doing this (needs to pick largest
      	out of the cache & use its size as the size to prime with).
      df7ad092
  22. 22 Aug, 1999 1 commit
    • Michael Natterer's avatar
      app/color_area.[ch] app/color_panel.[ch] enabled dnd for colors · 1e08aa1e
      Michael Natterer authored
      1999-08-22  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/color_area.[ch]
      	* app/color_panel.[ch]
      	* app/gimpdnd.[ch]: enabled dnd for colors (compatible with the
      	standard gtk/gnome color dnd). The color selection is now invoked
      	on a real click, not on button_down to avoid confusion with dnd.
      
      	* app/channels_dialog.c
      	* app/disp_callbacks.c
      	* app/interface.c
      	* app/layers_dialog.c: minor dnd updates/fixes.
      
      	* app/channel.[ch]
      	* app/channel_pvt.h
      	* app/docindex.[ch]
      	* app/docindexif.[ch]
      	* app/drawable.[ch]
      	* app/floating_sel.c
      	* app/gimage.[ch]
      	* app/gimage_mask.c
      	* app/gimpdrawable.[ch]
      	* app/gimpdrawableP.h
      	* app/gimpimage.[ch]
      	* app/gimpimageP.h
      	* app/layer.[ch]
      	* app/layer_pvt.h
      	* app/undo.c
      	* app/xcf.c: wanted to do some s/int/gboolean/ in the layer files
      	where appropriate and found myself spending the whole night doing
      	a big code review for layers/channels/drawables/images:
      	s/int/gboolean/, s/<type>/g<type>/, lots of indentation, removed
      	some old global variables and deprecated functions, #include
      	cleanups, proper prototypes, copyright headers, ...
      1e08aa1e
  23. 13 Aug, 1999 1 commit
    • Manish Singh's avatar
      add pixmaps/dropper.xpm to EXTRA_DIST · 374e55bc
      Manish Singh authored
      * Makefile.am: add pixmaps/dropper.xpm to EXTRA_DIST
      
      * app/appenv.h: minor formatting changes
      
      * app/channel.c: #include "gdisplay.h"
      
      * app/color_transfer.c
      * app/dodgeburn.c
      * app/gdisplay.c
      * app/iscissors.c
      * app/paint_core.c: remove extra SQR and ROUND definitions
      
      * app/flip_tool.c: hackaround the flip tool options constant problem
      
      * app/flip_tool.[ch]: use InternalOrientationType for flip_tool_flip
      prototype
      
      * app/interface.c: use GTK_LABEL case in gtk_label_set_justify
      
      * plug-ins/common/mkgen.pl
      * plug-ins/common/plugin-defs.pl: add @extra EXTRA_DIST processing
      
      -Yosh
      374e55bc
  24. 07 Aug, 1999 1 commit
  25. 04 Aug, 1999 1 commit
    • Tor Lillqvist's avatar
      Define ROUND(), RINT(), SQR(), G_PI and G_PI_4. The latter two will · 933b8661
      Tor Lillqvist authored
      	* app/appenv.h: Define ROUND(), RINT(), SQR(), G_PI and
      	G_PI_4. The latter two will presumably eventually be in
      	GLib. RINT() calls rint() if we have it, otherwise adds 0.5 and
      	calls floor().
      
      	* app/*.c: Remove the multiple identical definitions of M_PI. Use
      	G_PI instead of M_PI. Remove ROUND() and rint() definitions. Use
      	RINT() instead of rint().
      933b8661
  26. 07 Jul, 1999 1 commit
    • Seth Burgess's avatar
      Added Qmasks 7-6-99 <sjburges@gimp.org> · 7058d4c6
      Seth Burgess authored
       	* pixmaps/qmasknosel.xpm
              * pixmaps/qmasksel.xpm: Ugly pixmaps that tigert promised to replace
      
              * app/channel.[ch]
              * app/channel_cmds.c : made some of the private structures accessible
                through exported functions to keep things a bit clean
      
              * app/interface.c
              * app/gdisplay.[ch]
              * app/gimpimageP.h
              * app/gimpimage.[ch]
              * app/undo.[ch]: added qmasks
      
              * app/Makefile.am
              * app/qmask.[ch]: added new files for qmask support
      
              * tools/pdbgen/pdb/channel.pdb: changed some channel stuff to keep
                things a bit more private
      7058d4c6
  27. 23 Jun, 1999 1 commit
    • BST 1999 Andy Thomas's avatar
      gimp/app/gimppreviewcache.c gimp/app/gimppreviewcache.h · 9b7d21da
      BST 1999 Andy Thomas authored
      
      Wed Jun 23 23:52:54 BST 1999 Andy Thomas <alt@gimp.org>
      
      	* gimp/app/gimppreviewcache.c
      	* gimp/app/gimppreviewcache.h
      	* gimp/app/drawable_cmds.c
      	* gimp/app/gdisplay.c
      	* gimp/app/gimpdrawableP.h
      	* gimp/app/gimage_cmds.c
      	* gimp/app/Makefile.am
      	* gimp/app/layers_dialog.c
      	* gimp/app/channel.c
      	* gimp/app/lc_dialog.c
      	* gimp/app/lc_dialog.h
      	* gimp/app/lc_dialogP.h
      	* gimp/app/layer.c
      	* gimp/app/gimpdrawable.c
      	* gimp/app/internal_procs.c
      	* gimp/libgimp/gimp.h
      	* gimp/libgimp/gimpimage.c
      	* gimp/libgimp/gimpdrawable.c
      	* gimp/libgimp/gimpmenu.c
      	* gimp/tools/pdbgen/pdb/drawable.pdb
      	* gimp/tools/pdbgen/pdb/gimage.pdb
      
      	Added thumbnail image preview functions.
      	Previews are visible on the L&C&P dialogs as well as in the
      	drawables/channels/ menus generated for plugins
      	(see the bumpmap & Mapobject plugins).
      
      	PDB interface exists to simply extract a thumbnail preview
      	of a given size. This is much quicker & more efficient
      	than getting the image data tile-by-tile if you only need a small
      	image since a "preview cache" has been implemented. This cache also
      	reduces the number of times the tiles cached is scanned since smaller
      	previews are always generated from large ones if they exists and
      	are valid.
      
      	Some possible usages (I don't intend to implement these ideas. Just
      	suggestions). More plugins using the thumbnail preview (ie any that
      	use multiple images). Indication of "active image" somewhere.....
      	Actually almost anywhere a drawable/image name appears.
      9b7d21da
  28. 28 May, 1999 1 commit
  29. 06 May, 1999 1 commit
    • Michael Natterer's avatar
      app/channel.[ch] app/commands.c app/gimage_mask.[ch] · c0b24ce9
      Michael Natterer authored
      1999-05-07  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/channel.[ch]
      	* app/commands.c
      	* app/gimage_mask.[ch]
      	* app/gimage_mask_cmds.c
      	* tools/pdbgen/pdb/gimage_mask.pdb
      	* app/interface.c: propagated the indepentent x/y values for
      	shrink/grow/border to the interface but not yet to the PDB.
      
      	* app/*_select.c
      	* app/paint_funcs.[ch]: implemented indep. x/y feather. It seems
      	that cut-and-paste was sufficient, but I didn't really understand
      	the code. Jay, could you have a look at this please?
      
      	If the feather/shrink/... amount is specified in pixels,
      	everything behaves like before.
      	I'm not sure how the built-in feather option of the selection
      	tools should behave, so it still defaults to 'pixel' mode.
      	Moved the static feather/shrink/... values from gimage_mask.c to
      	commands.c because they belong to the interface.
      
      	* app/text_tool_cmds.c
      	* tools/pdbgen/pdb/text_tool.pdb: prepared for resolution
      	support, but didn't enable it yet.
      
      	* app/unit_cmds.c
      	* tool/pdbgen/pdb/unit.pdb: fixed a help text.
      c0b24ce9
  30. 05 May, 1999 1 commit
    • jaycox's avatar
      new bitmap files containing the new mouse cursors. · 18835a76
      jaycox authored
      
      	* pixmaps/mouse1*: new bitmap files containing the new mouse cursors.
      
      	* app/parasitelist.c: use g_str_equal instead of parasite_compare_func.
      
      	* app/paint_core.c: interpret perfectmouse right way round.
      
      	* app/rect_select{P,}.[ch]: set custom cursors when the operation type
       	changes.  Centralize the calculation of op based on the modifier
       	keys being held.
      
      	* app/fuzzy_select.c, app/free_select.c: allow the rect_select
       	functions calculate the operation type.
      
      	* app/ellipse_select.c: use the SelectionOps typedefs.
      
      	* app/edit_selection.c: convert MaskToLayerTranslate into
       	FloatingSelTranslate if there is already a floating selection in
       	init_edit_selection.
      
      	* app/disp_callbacks.c: fixed the calculation of state.
      
      	* app/gdisplay.[ch], app/cursorutil.[ch]: new functions to allow
       	the loading of customized cursors.
      
      	* app/paint_funcs.[ch], app/channel.c: border_region now accepts
       	seperate xradius and yradius arguments.
      18835a76
  31. 10 Apr, 1999 1 commit
    • Manish Singh's avatar
      new file (from pdbgen) · d6116b8d
      Manish Singh authored
      * text_tool_cmds.c: new file (from pdbgen)
      
      * Makefile.am: add new file, use AM_CPPFLAGS instead of CPPFLAGS
      
      * internal_procs.c: register pdbgened text_tool procs
      
      * text_tool.c: remove PDB stuff, export text_render and
      text_get_extents and SizeType and SUPERSAMPLE symbols
      
      * text_tool.c: remove PDB stuff
      
      * blend.[ch]
      * bucket_fill.[ch]
      * clone.[ch]
      * convolve.[ch]: export some enums
      
      * channel.h
      * paint_core.h: #define->enum
      
      * channel.c
      * gimpparasite.c
      * parasitelist.c
      * pixel_processor.c: warning cleanup
      
      * convert_cmds.c
      * paths_cmds.c: slight pdbgen changes
      
      -Yosh
      d6116b8d
  32. 09 Apr, 1999 1 commit
    • jaycox's avatar
      build color_cmds, lut_funcs, and pixel_processor feedback in the splash · dde36031
      jaycox authored
      
      	* app/Makefile.am: build color_cmds, lut_funcs, and pixel_processor
      	* app/app_procs.c: feedback in the splash screen when loading
       	parasites.
      	* app/boundary.c: Optimized find_empty_segs.
      
      	* app/brightness_contrast.[ch]
      	* app/levels.[ch]
      	* app/posterize.[ch]:
       	moved pdb and lut calculation code.  These files now contain only
      	GUI functions.
      
      	* app/channel.c: Optimized channel_bounds (fewer compares, better
       	use of registers).  Use color_region instead of channel_*_segment
       	in channel_combine_rect.  Optimized channel_combine_ellipse by
       	skipping pixels inside of the ellipse.  Use
       	pixel_region_process_parallel in channel_combine_mask.  Use a
       	GimpLut in channel_invert, and channel_sharpen.
      
      	* app/invert.c
      	* app/equalize.c: moved the lut functions to lut_funcs.c
      
      	* app/gimpdrawable.c, app/gimpdrawableP.h
      	* app/gimpimage.c, app/gimpimageP.h: removed unused gimpmatrix
      	variables/includes.
      
      	* app/gimplut.[ch]: added new function gimp_lut_process_inline
       	that operates on a single PixelRegion.
      
      	* app/gimpparasite.[ch]: new functions to save/load parasiterc
      
      	* app/parasitelist.[ch]: new functions to save/load ParasiteLists
       	in/from files.
      
      	* libgimp/parasite.[ch]: new functions to load/save parasites.
      
      	* app/internal_procs.c: get some procs from new location in
      	color_cmds.h.
      
      	* app/pixel_region.[ch]: moved pixel_regions_process_parallel
       	related functions to a new file.
      
      	* app/color_cmds.[ch]: new files for PDB
       	definitions/implementations of color correction functions.
      
      	* app/lut_funcs.[ch]: new files to hold lut creation functions.
      
      	* app/pixel_processor.[ch]: new files that contain the
       	pixel_regions_process_parallel routines.  Added some new
       	capabilities that are currently unused.
      dde36031
  33. 25 Mar, 1999 1 commit
    • jaycox's avatar
      Added an edge_lock parameter to thin_region. Split the radius parameter · 452d3509
      jaycox authored
      
      	* app/paint_funcs.[ch]: Added an edge_lock parameter to
       	thin_region.  Split the radius parameter into xradius and yradius
       	in thin_region and fatten_region.
      
      	* app/channel.c: fixed a bug in channel_bounds that I introduced
       	last time I tried to fix a bug in channel_bounds.  Minor
       	modifications to work with the improved thin/fatten region
       	functions.
      452d3509
  34. 22 Feb, 1999 1 commit