1. 02 Jan, 2001 8 commits
  2. 01 Jan, 2001 2 commits
    • Michael Natterer's avatar
      app/commands.[ch] app/fileops.[ch] app/gdisplay.c Implemented "Save a Copy · 9ccab852
      Michael Natterer authored
      2001-01-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/commands.[ch]
      	* app/fileops.[ch]
      	* app/gdisplay.c
      	* app/menus.c: Implemented "Save a Copy as..." which saves the image
      	without changing it's filename.
      
      	* app/layers_dialogP.h: export layers_dialog_layer_merge_query()
      	here instead of defining it in commands.c
      
      	* TODO.xml: mark this entry as done :)
      9ccab852
    • Michael Natterer's avatar
      plug-ins/libgck/gck/gck.h removed the GckRGB color type and all it's · 4245ab65
      Michael Natterer authored
      2001-01-01  Michael Natterer  <mitch@gimp.org>
      
      	* plug-ins/libgck/gck/gck.h
      	* plug-ins/libgck/gck/gckcolor.c: removed the GckRGB color type
      	and all it's functions.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpcolor.[ch]: new files containing the new GimpRGB color
      	type and assorted functions.
      
      	* libgimp/gimpcolorspace.[ch]: colorspace conversion routines for
      	the new GimpRGB type. Also taken from LibGCK.
      
      	* libgimp/gimp.h
      	* libgimp/gimptypes.h: #include "gimpcolor.h". It's ugly to include
      	it in both files but unavoidable to follow our new "*.c" file include
      	policy. This will go away as libgimp will be chopped up into pieces
      	anyway.
      
      	* app/apptypes.h
      	* app/asupsample.[ch]
      	* app/blend.c
      	* app/color_transfer.h
      	* app/gradient_header.h: removed "color_t" and use GimpRGB instead.
      
      	* plug-ins/Lighting/lighting_apply.c
      	* plug-ins/Lighting/lighting_image.c
      	* plug-ins/Lighting/lighting_image.h
      	* plug-ins/Lighting/lighting_main.c
      	* plug-ins/Lighting/lighting_main.h
      	* plug-ins/Lighting/lighting_preview.c
      	* plug-ins/Lighting/lighting_shade.c
      	* plug-ins/Lighting/lighting_shade.h
      	* plug-ins/MapObject/mapobject_apply.c
      	* plug-ins/MapObject/mapobject_image.c
      	* plug-ins/MapObject/mapobject_image.h
      	* plug-ins/MapObject/mapobject_main.c
      	* plug-ins/MapObject/mapobject_main.h
      	* plug-ins/MapObject/mapobject_preview.c
      	* plug-ins/MapObject/mapobject_shade.c
      	* plug-ins/MapObject/mapobject_shade.h
      	* modules/colorsel_triangle.c: s/GckRGB/GimpRGB/g
      
      	* plug-ins/gdyntext/gdyntextcompat.h: check also for GIMP's minor
      	version when deciding if to add a missing PDB wrapper.
      	(All this compat cruft including libgimp/gimpcompat.h should go
      	away ASAP)
      4245ab65
  3. 31 Dec, 2000 4 commits
    • Michael Natterer's avatar
      More preparation for LibGCK removal: · 40916e09
      Michael Natterer authored
      2000-12-31  Michael Natterer  <mitch@gimp.org>
      
      	More preparation for LibGCK removal:
      
      	* libgimp/gimpcolorspace.[ch]: added a "_int" suffix to all functions
      	operating on 3 gint pointers, just like the gdouble functions have
      	a "_double" suffix.
      
      	* app/color_balance.c
      	* app/hue_saturation.c
      	* app/paint_funcs.c
      	* modules/colorsel_triangle.c
      	* plug-ins/common/CML_explorer.c
      	* plug-ins/common/scatter_hsv.c
      	* plug-ins/common/sparkle.c
      	* plug-ins/common/vinvert.c
      	* plug-ins/gflare/gflare.c: changed accordingly.
      40916e09
    • Sven Neumann's avatar
      Simon Budig <simon@gimp.org> · f7ccaf1b
      Sven Neumann authored
      2000-12-31  Sven Neumann  <sven@gimp.org>
                  Simon Budig <simon@gimp.org>
      
      	* app/gimpbrush.c
      	* plug-ins/common/gih.c: explicitely cast offset to (off_t) when
      	seeking back. Should fix the problems reading grayscale BrushPipes
      	on IRIX.
      f7ccaf1b
    • Michael Natterer's avatar
      cleaned up a bit. · f16e01a2
      Michael Natterer authored
      2000-12-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/apptypes.h: cleaned up a bit.
      
      	* app/asupsample.[ch]
      	* app/blend.[ch]
      	* app/channel.h
      	* app/gimpprogress.[ch]
      	* app/layer.h
      	* app/perspective_tool.c
      	* app/plug_in.h
      	* app/rotate_tool.c
      	* app/scale_tool.c
      	* app/shear_tool.c
      	* app/transform_core.[ch]: s/gimp_progress/GimpProgress/g and some
      	changes related to the apptypes.h cleanup.
      f16e01a2
    • Michael Natterer's avatar
      app/airbrush.[ch] app/bezier_select.c app/bezier_selectP.h app/blend.[ch] · 2db88815
      Michael Natterer authored
      2000-12-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/airbrush.[ch]
      	* app/bezier_select.c
      	* app/bezier_selectP.h
      	* app/blend.[ch]
      	* app/boundary.h
      	* app/brightness_contrast.[ch]
      	* app/bucket_fill.c
      	* app/by_color_select.c
      	* app/clone.[ch]
      	* app/color_balance.c
      	* app/color_picker.c
      	* app/commands.c
      	* app/convolve.[ch]
      	* app/crop.c
      	* app/crop.h
      	* app/curves.c
      	* app/dodgeburn.[ch]
      	* app/edit_selection.[ch]
      	* app/ellipse_select.c
      	* app/eraser.[ch]
      	* app/flip_tool.[ch]
      	* app/free_select.[ch]
      	* app/fuzzy_select.[ch]
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/histogram_tool.[ch]
      	* app/hue_saturation.[ch]
      	* app/image_map.[ch]
      	* app/ink.[ch]
      	* app/iscissors.c
      	* app/levels.c
      	* app/magnify.[ch]
      	* app/move.c
      	* app/nav_window.[ch]
      	* app/paint_core.[ch]
      	* app/paintbrush.[ch]
      	* app/path_bezier.[ch]
      	* app/path_tool.c
      	* app/pencil.[ch]
      	* app/perspective_tool.[ch]
      	* app/posterize.c
      	* app/rect_select.[ch]
      	* app/rotate_tool.[ch]
      	* app/scale_tool.[ch]
      	* app/selection.[ch]
      	* app/shear_tool.[ch]
      	* app/smudge.[ch]
      	* app/text_tool.[ch]
      	* app/threshold.c
      	* app/tools.[ch]
      	* app/transform_core.[ch]: removed the "gdisp_ptr" madness and
      	useless casts all over the place. Introduced a "PaintState" enum
      	instead of #define's. Various cleanups.
      2db88815
  4. 30 Dec, 2000 1 commit
    • Michael Natterer's avatar
      removed all the "typedef gimage_function gimp_image_function" stuff so we · 4a0f7c58
      Michael Natterer authored
      2000-12-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimage.[ch]: removed all the
      	"typedef gimage_function gimp_image_function" stuff so we can clearly
      	see what is really a GImage function.
      	Removed gimage_get_ID(). Use pdb_id_to_image() instead.
      
      	* app/airbrush.c
      	* app/desaturate.c
      	* app/disp_callbacks.c
      	* app/equalize.c
      	* app/fileops.c
      	* app/floating_sel.c
      	* app/gdisplay_ops.c
      	* app/gimpdrawable.c
      	* app/global_edit.c
      	* app/image_map.c
      	* app/invert.c
      	* app/lc_dialog.c
      	* app/paths_dialog.c
      	* app/plug_in.c
      	* app/xcf.c
      
      	* app/color_cmds.c
      	* app/convert_cmds.c
      	* app/image_cmds.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      4a0f7c58
  5. 29 Dec, 2000 2 commits
    • 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
    • Asbjørn Pettersen's avatar
      remove gimp_color_display_register · 9111fe06
      Asbjørn Pettersen authored
      9111fe06
  6. 28 Dec, 2000 4 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
    • Sven Neumann's avatar
      app/commands.c small new feature: display a layer preview popup when · 4e5c3195
      Sven Neumann authored
      2000-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/commands.c
      	* app/layer_select.[ch]: small new feature: display a layer preview
      	popup when switching the active layer using PageUp/PageDown. Could
      	need a little tweaking...
      4e5c3195
    • 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
    • Sven Neumann's avatar
      app/boundaryF.h app/gdisplayP.h app/gimplistP.h app/gimplutP.h · c11acc6c
      Sven Neumann authored
      2000-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/boundaryF.h
      	* app/gdisplayP.h
      	* app/gimplistP.h
      	* app/gimplutP.h
      	* app/gimpsetP.h
      	* app/parasitelistP.h
      	* app/pixel_regionP.h: removed these files
      
      	* app/Makefile.am
      	* app/apptypes.h
      	* app/boundary.[ch]
      	* app/floating_sel.h
      	* app/gdisplay.c
      	* app/gimplist.h
      	* app/gimplut.[ch]
      	* app/gimpset.[ch]
      	* app/parasitelist.[ch]
      	* app/pixel_processor.c
      	* app/pixel_region.[ch]: moved structure definitions into the
      	normal headers, various cleanups
      c11acc6c
  7. 27 Dec, 2000 6 commits
    • Sven Neumann's avatar
      app/channel_cmds.c app/layer_cmds.c libgimp/gimpchannel_pdb.c · 243c5f49
      Sven Neumann authored
      2000-12-28  Sven Neumann  <sven@gimp.org>
      
      	* app/channel_cmds.c
      	* app/layer_cmds.c
      	* libgimp/gimpchannel_pdb.c
      	* libgimp/gimplayer_pdb.c
      	* plug-ins/common/warp.c
      	* plug-ins/gap/gap_exchange_image.c
      	* plug-ins/gap/gap_range_ops.c
      	* plug-ins/perl/examples/bricks
      	* plug-ins/perl/examples/glowing_steel
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb:
      
      	Two of the gimp-perl scripts used to call gimp_layer_delete() after
      	gimp_image_remove_layer(). This will fail since the layer is already
      	scheduled for destruction by removing it from the associated image or
      	by deleting that image. It is thus dangerous and superfluous to export
      	this feature through the PDB. The gimp_layer_delete() is hereby
      	obsolete and does nothing any longer. I have removed the code calling
      	it from all over the place (it was commented out in almost all places).
      
      	The PDB help for gimp_channel_delete() now explicetly tells the user
      	about the proper usage of the procedure.
      243c5f49
    • Michael Natterer's avatar
      app/bezier_select.[ch] massive cleanup (prototypes, indentation, ...) · 7355ee11
      Michael Natterer authored
      2000-12-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/bezier_select.[ch]
      	* app/bezier_selectP.h: massive cleanup (prototypes, indentation, ...)
      7355ee11
    • Michael Natterer's avatar
      cleanup, proper prototypes, ... · f8769ee5
      Michael Natterer authored
      2000-12-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/measure.c: cleanup, proper prototypes, ...
      f8769ee5
    • Michael Natterer's avatar
      gimp_image_merge_layers(): apply the layer mask only if layer->apply_mask · 7f298013
      Michael Natterer authored
      2000-12-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpimage.c: gimp_image_merge_layers(): apply the layer mask
      	only if layer->apply_mask is TRUE, cleanup.
      7f298013
    • Michael Natterer's avatar
      app/gimage.h implemented gimp_image_get_layer_by_index(), small cleanups. · 4c5757ee
      Michael Natterer authored
      2000-12-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimage.h
      	* app/gimpimage.[ch]: implemented gimp_image_get_layer_by_index(),
      	small cleanups.
      
      	* app/commands.c
      	* app/layers_dialog.c: use the new function instead of accessing
      	the layer list directly.
      4c5757ee
    • Michael Natterer's avatar
      layers_dialog_scroll_index(): don't fiddle around with magic numbers when · 8d37156c
      Michael Natterer authored
      2000-12-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/layers_dialog.c: layers_dialog_scroll_index(): don't fiddle
      	around with magic numbers when calculating the layer widget's
      	height but simply ask one of them for it's allocation.  Fixes
      	positioning when the preview is smaller than the layer widget list
      	item.
      8d37156c
  8. 26 Dec, 2000 1 commit
  9. 24 Dec, 2000 3 commits
  10. 21 Dec, 2000 1 commit
    • Sven Neumann's avatar
      app/gradient.c reviewed the gradient code. The old code used to use list · c668aaa4
      Sven Neumann authored
      2000-12-21  Sven Neumann  <sven@gimp.org>
      
      	* app/gradient.c
      	* app/gradient_select.[ch]: reviewed the gradient code. The old code
      	used to use list indices which led to bug #35612 and other problems.
      	We now attach a pointer to the gradient to each row in the GtkClists
      	and retrieve the matching row for a gradient using
      	gtk_clist_find_row_from_data(). Additionally I have added similar code
      	as we use for brushes to assure that no two gradients have the same
      	name.
      c668aaa4
  11. 20 Dec, 2000 1 commit
  12. 19 Dec, 2000 5 commits
  13. 18 Dec, 2000 1 commit
    • Sven Neumann's avatar
      Jens Lautenbacher <jtl@gimp.org> · 3cff8419
      Sven Neumann authored
      2000-12-18  Sven Neumann  <sven@gimp.org>
      	    Jens Lautenbacher <jtl@gimp.org>
      
      	* app/Makefile.am
      
      	* app/gimpbrushlistP.h
      	* app/gimpbrushpipeP.h
      	* app/gimpobjectP.h: removed these three files
      
      	* app/parasitelistP.h
      	* app/channels_dialog.c
      	* app/docindex.c
      	* app/gimpdrawable.c
      	* app/gimpdrawableP.h
      	* app/gimpimage.c
      	* app/gimpimageP.h
      	* app/gimplist.[ch]
      	* app/gimpobject.c
      	* app/gimpobject.h
      	* app/gimpsetP.h: changed according to header removal
      
      	* app/airbrush.c
      	* app/brush_select.[ch]
      	* app/brushes_cmds.c
      	* app/gimpbrush.[ch]
      	* app/gimpbrushgenerated.[ch]
      	* app/gimpbrushlist.[ch]
      	* app/gimpbrushpipe.[ch]
      	* app/gimpcontextpreview.c
      	* app/paint_core.c
      	* app/paintbrush.c
      	* app/pencil.c
      	* tools/pdbgen/pdb/brushes.pdb: Big Brushes Cleanup.
      
      	The GimpBrush* object hierarchy and the file formats were broken by
      	"design". This made it overly difficult to read and write pixmap
      	brushes and brush pipes, leading to the situation that The GIMP was
      	not able to read it's very own file formats. Since the GimpBrush
      	format did support arbitrary color depths, the introduction of a
      	file format for pixmap brushes was unnecessary.
      
      	The GimpBrushPixmap object is dead. GimpBrush has an additional
      	pixmap temp_buf and handles pixmap brushes transparently. The file
      	format of pixmap brushes is not any longer a grayscale brush plus
      	a pattern, but a simple brush with RGBA data. The old brushes can
      	still be loaded, but the .gpb format is deprecated.
      
      	GimpBrushPipe derives from GimpBrush. The fileformat is still a text
      	header, followed by a number of brushes, but those brushes are stored
      	in the new GimpBrush format (no pattern anymore). The pipe does not
      	care about the depth of the contained GimpBrushes, so we get
      	grayscale BrushPipes for free. Since the brush loader still loads the
      	old format, old .gih files can also still be loaded.
      
      	Since the brushes in the GimpBrushPipe do not any longer contain a
      	pointer to the pipe object, we do only temporarily switch brushes
      	in the paint_core routines. This is not very elegant, but the best
      	we can do without a major redesign.
      
      	* app/patterns.[ch]: changed the loader to work with a filedescriptor
      	instead of a filehandle to make it work with the new brush loading
      	code.
      
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/plugin-defs.pl
      	* plug-ins/common/gih.c: new plug-in that saves GIH files in the
      	new format (loader will follow soon)
      
      	* plug-ins/common/gpb.c: removed since Pixmap Brushes are no longer
      	supported as a special file format.
      
      	* plug-ins/common/gbr.c: load and save brushes in the new brush format
      	which allows RGBA brushes too.
      
      	* plug-ins/common/pat.c: load and save grayscale patterns too
      3cff8419
  14. 17 Dec, 2000 1 commit