1. 24 Jan, 2001 1 commit
    • Michael Natterer's avatar
      Makefile.am configure.in added the new library below. · 7a4260da
      Michael Natterer authored
      2001-01-24  Michael Natterer  <mitch@gimp.org>
      
      	* Makefile.am
      	* configure.in
      	* gimptool.in: added the new library below.
      
      	* libgimpwidgets/Makefile.am
      	* libgimpwidgets/gimpchainbutton.[ch]
      	* libgimpwidgets/gimpcolorarea.[ch]
      	* libgimpwidgets/gimpcolorbutton.[ch]
      	* libgimpwidgets/gimpdialog.[ch]
      	* libgimpwidgets/gimpfileselection.[ch]
      	* libgimpwidgets/gimphelpui.[ch]
      	* libgimpwidgets/gimppatheditor.[ch]
      	* libgimpwidgets/gimppixmap.[ch]
      	* libgimpwidgets/gimpquerybox.[ch]
      	* libgimpwidgets/gimpsizeentry.[ch]
      	* libgimpwidgets/gimpunitmenu.[ch]
      	* libgimpwidgets/gimpwidgets.[ch]
      	* libgimpwidgets/gimpwidgets.def
      	* libgimpwidgets/gimpwidgetstypes.h: new shared library.
      
      	Currently there are some ugly dependencies into libgimp. These
      	will be removed and go to a "libgimpglue" library which will be
      	a library for functions which share a common interface between
      	plug-ins and the app but have different implementations.
      
      	Include "libgimp/gimpunit.h" from "libgimpwidgets/gimpwidgetstypes.h"
      	to simulate this upcoming separation.
      
      	* libgimp/Makefile.am
      	* libgimp/gimpchainbutton.[ch]
      	* libgimp/gimpcolorarea.[ch]
      	* libgimp/gimpcolorbutton.[ch]
      	* libgimp/gimpdialog.[ch]
      	* libgimp/gimpfileselection.[ch]
      	* libgimp/gimphelpui.[ch]
      	* libgimp/gimppatheditor.[ch]
      	* libgimp/gimppixmap.[ch]
      	* libgimp/gimpquerybox.[ch]
      	* libgimp/gimpsizeentry.[ch]
      	* libgimp/gimpunitmenu.[ch]
      	* libgimp/gimpwidgets.[ch]: removed from here.
      
      	* libgimp/gimpui.h
      	* libgimp/gimpuitypes.h
      	* libgimp/makefile.mingw.in
      	* libgimp/makefile.msc: changed accordingly.
      
      	* app/[all ui files]
      	* app/pdb/palette_cmds.c
      	* app/pdb/tools_cmds.c
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/tools.pdb: #include "libgimpwidgets/gimpwidgets.h"
      	and removed useless includes.
      
      	* app/apptypes.h: #include "libgimpwidgets/gimpwidgetstypes.h"
      
      	* app/Makefile.am
      	* plug-ins/[all makefiles which link against libgimpui]:
      	link against libgimpwidgets.la
      
      	* po-libgimp/POTFILES.in: changed file locations.
      7a4260da
  2. 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
  3. 14 Jan, 2001 1 commit
    • 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
  4. 31 Dec, 2000 1 commit
    • 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
  5. 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
  6. 19 Dec, 2000 2 commits
    • Sven Neumann's avatar
      applied a patch from David Hodson that reverts the curves tool back to its · 336e10ae
      Sven Neumann authored
      2000-12-19  Sven Neumann  <sven@gimp.org>
      
      	* app/curves.c: applied a patch from David Hodson that reverts
      	the curves tool back to its old behaviour (start with the identical
      	transform), but keeps the fix for bug #33403.
      336e10ae
    • Michael Natterer's avatar
      app/Makefile.am removed. · 3c85607e
      Michael Natterer authored
      2000-12-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimphistogramP.h: removed.
      
      	* app/gimphistogram.[ch]
      	* app/histogramwidget.[ch]: Histogram cleanup: replaced the
      	channel #define's by a properly named enum and use this enum
      	type as parameter in functions instead of "int".
      
      	* app/curves.c
      	* app/histogram_tool.c
      	* app/levels.c: changed accordingly.
      3c85607e
  7. 17 Dec, 2000 1 commit
    • Sven Neumann's avatar
      preview the curve settings in the image window when initializing the tool. · 6639e17c
      Sven Neumann authored
      2000-12-17  Sven Neumann  <sven@gimp.org>
      
      	* app/curves.c: preview the curve settings in the image window when
      	initializing the tool. This way the new curves behaviour (init with
      	last settings) is visible.
      
      	* app/user_install.c: check that strings are non-NULL before passing
      	them to strcmp.
      
      	* libgimp/gimpfileselection: do not try to pass a NULL text to
      	gtk_entry_set_text, use an empty string instead.
      6639e17c
  8. 16 Dec, 2000 1 commit
    • 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
  9. 13 Dec, 2000 1 commit
    • Sven Neumann's avatar
      app/color_picker.c app/convert.c app/curves.c app/gimpdrawable.c · 2458bfcb
      Sven Neumann authored
      2000-12-13  Sven Neumann  <sven@gimp.org>
      
              * app/color_picker.c
              * app/convert.c
              * app/curves.c
              * app/gimpdrawable.c
              * app/gimpimage.c
              * app/gimpimage.h
              * app/image_map.c
              * app/info_window.c
              * app/layer.c
              * app/undo.c: couldn't resist: renamed TYPE_HAS_ALPHA() to
              GIMP_IMAGE_TYPE_HAS_ALPHA()
      
              * plug-ins/common/sunras.c
              * plug-ins/common/xwd.c: small cleanups
      2458bfcb
  10. 30 Nov, 2000 1 commit
    • GMT 2000 Andy Thomas's avatar
      app/curves.c app/levels.c · fb4fb8c0
      GMT 2000 Andy Thomas authored
      
      Thu Nov 30 23:26:07 GMT 2000 Andy Thomas <alt@gimp.org>
      
      	* app/curves.c
              * app/levels.c
      
      	Fix for gimp bug #33403. The curves and levels dialogs should now
      	work in GRAYA images.
      fb4fb8c0
  11. 29 Nov, 2000 1 commit
    • Austin Donnelly's avatar
      Applied patch from David Hodson <hodsond@ozemail.com.au> to fix Bug#33399: · 9a3f33f6
      Austin Donnelly authored
      2000-11-29  Austin Donnelly  <austin@gimp.org>
      
      	* app/curves.c: Applied patch from David Hodson
      	    <hodsond@ozemail.com.au> to fix Bug#33399: GIMP crashes when
      	    applying curve to Grayscaled image when preview is off.
      	    Previously the curves tool attempted a reset when changing
      	    image, but didn't correctly do this.  Now it has the
      	    (more useful) behaviour of doing a partial reset, where the
      	    curve remains the same across multiple invocations, allowing
      	    you to apply the same tweak to multiple images.  The internal
      	    state relevant to image type/depth is correctly reset,
      	    stopping the segfault behaviour seen before.
      
      	    Still no fix for Bug#33403: Curves/Levels Tool does not work
      	    on GRAYA-Images.
      9a3f33f6
  12. 29 Sep, 2000 1 commit
  13. 23 Jun, 2000 1 commit
    • Matt Wilson's avatar
      allocate the tool's paint_core with g_new0. This prevents us from having · 74fdc62e
      Matt Wilson authored
      2000-06-22  Matt Wilson  <msw@redhat.com>
      
      	* app/paint_core.c (paint_core_new): allocate the tool's
      	paint_core with g_new0.  This prevents us from having cruft in
      	unused tools.  Systems with sensitive FPUs (Alpha) will raise
      	exception in the paint_core_cursor_update if paint_core->last{x,y}
      	are messy.
      
      	* app/bezier_select.c (tools_new_bezier_select)
      	* app/blend.c (blend_options_new)
      	* app/brightness_contrast.c (tools_new_brightness_contrast)
      	* app/bucket_fill.c (tools_new_bucket_fill)
      	* app/by_color_select.c (tools_new_by_color_select)
      	* app/color_balance.c (tools_new_color_balance)
      	* app/color_panel.c (color_panel_new)
      	* app/color_picker.c (tools_new_color_picker)
      	* app/crop.c (tools_new_crop)
      	* app/curves.c (tools_new_curves)
      	* app/ellipse_select.c (tools_new_ellipse_select)
      	* app/free_select.c (tools_new_free_select)
      	* app/fuzzy_select.c (tools_new_fuzzy_select)
      	* app/histogram_tool.c (tools_new_histogram_tool)
      	* app/hue_saturation.c (tools_new_hue_saturation)
      	* app/ink.c (tools_new_ink)
      	* app/iscissors.c (tools_new_iscissors)
      	* app/levels.c (tools_new_levels)
      	* app/magnify.c (tools_new_magnify)
      	* app/measure.c (tools_new_measure_tool)
      	* app/move.c (tools_new_move_tool)
      	* app/path_tool.c (tools_new_path_tool)
      	* app/posterize.c (tools_new_posterize)
      	* app/rect_select.c (tools_new_rect_select)
      	* app/resize.c (resize_widget_new)
      	* app/threshold.c (tools_new_threshold)
      	* app/transform_core.c (transform_core_new)
      	* app/xinput_airbrush.c (tools_new_xinput_airbrush): likewise (it
      	can only help and it really isn't slow.)
      
      	* app/color_area.c: #include <string.h> for memcpy declaration
      
      	* app/gimphelp.c: #include <string.h> for strlen declaration
      74fdc62e
  14. 09 Jun, 2000 1 commit
    • Michael Natterer's avatar
      Cursor patch II: This is only the logic inside the cursor system and not · d0a551bb
      Michael Natterer authored
      2000-06-09  Michael Natterer  <mitch@gimp.org>
      
      	Cursor patch II:
      	This is only the logic inside the cursor system and not yet used.
      
      	* app/cursorutil.[ch]: [gimp]_change_win_cursor() take lots of
      	parameters now and compose cursors from up to three cursor
      	bitmaps/masks.
      
      	* app/gdisplay.[ch]: As a test, create a hardcoded example cursor
      	if "Cursor Mode" is set to "Tool Icon with Crosshair" in prefs.
      
      	* app/curves.c
      	* app/dialog_handler.c
      	* app/scroll.c: changed the calls to the win_cursor function.
      
      	* app/tools.[ch]: added a cursor and a toggle cursor to the ToolInfo
      	structure of all tools.
      
      	* app/toolsF.h: new ToolType TOOL_TYPE_NONE.
      
      	* app/gimpdnd.c
      	* app/interface.c: check for silly filenames in the file dnd
      	callback. Closes #13733.
      
      	* Makefile.am
      	* cursors/bucket_fill_small.xbm
      	* cursors/bucket_fill_small_mask.xbm
      	* cursors/crop_small.xbm
      	* cursors/crop_small_mask.xbm
      	* cursors/crosshair_small.xbm
      	* cursors/crosshair_small_mask.xbm
      	* cursors/ellipse_select_small.xbm
      	* cursors/ellipse_select_small_mask.xbm
      	* cursors/eraser_small.xbm
      	* cursors/eraser_small_mask.xbm
      	* cursors/free_select_small.xbm
      	* cursors/free_select_small_mask.xbm
      	* cursors/fuzzy_select_small.xbm
      	* cursors/fuzzy_select_small_mask.xbm
      	* cursors/intersect.xbm
      	* cursors/intersect_mask.xbm
      	* cursors/minus.xbm
      	* cursors/minus_mask.xbm
      	* cursors/move.xbm
      	* cursors/move_mask.xbm
      	* cursors/paintbrush_small.xbm
      	* cursors/paintbrush_small_mask.xbm
      	* cursors/pencil_small.xbm
      	* cursors/pencil_small_mask.xbm
      	* cursors/plus.xbm
      	* cursors/plus_mask.xbm
      	* cursors/rect_select_small.xbm
      	* cursors/rect_select_small_mask.xbm
      	* cursors/resize_small.xbm
      	* cursors/resize_small_mask.xbm
      	* cursors/zoom.xbm
      	* cursors/zoom_mask.xbm
      	* cursors/zoom_small.xbm
      	* cursors/zoom_small_mask.xbm: new files extracted from Tigert's
      	gimp-tool-cursors.xcf created at GimpCon.
      
      	Tigert, I'll commit the xcf as soon as I've added empty layers
      	with the names of the cursors that are missing.
      
      	* cursors/mouse.xbm
      	* cursors/mouse_mask.xbm: made it 32x32 to allow for cursor
      	composition.
      d0a551bb
  15. 09 May, 2000 1 commit
    • jaycox's avatar
      new function image_map_clear that removes the preview without freeing the · af0c94ab
      jaycox authored
      
      	* app/image_map.[ch]: new function image_map_clear that removes
      	the preview without freeing the image_map.
      
      	* app/brightness_contrast.c
      	* app/color_balance.c
      	* app/curves.c
      	* app/hue_saturation.c
      	* app/levels.c
      	* app/posterize.c
      	* app/threshold.c: Add a call to image_map_clear in the
      	preview toggle button callback.  This makes the preview toggle
      	button behave as expected.
      
      	* app/histogram_tool: remove an unnecessary include.
      af0c94ab
  16. 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
  17. 28 Mar, 2000 1 commit
  18. 27 Mar, 2000 1 commit
  19. 13 Feb, 2000 1 commit
    • Michael Natterer's avatar
      po/POTFILES.in app/Makefile.am removed. · 2b92a59e
      Michael Natterer authored
      2000-02-13  Michael Natterer  <mitch@gimp.org>
      
      	* po/POTFILES.in
      	* app/Makefile.am
      	* app/buildmenu.[ch]: removed.
      
      	* app/blend.c
      	* app/brush_select.c
      	* app/curves.c
      	* app/histogram_tool.c
      	* app/layers_dialog.c
      	* app/lc_dialog.c
      	* app/levels.c
      	* app/paint_options.h
      	* app/paintbrush.c
      	* app/tool_options.c: use the libgimp option menu
      	constructor. Removed paint_mode_menu_set_history().
      
      	* app/colormap_dialog.i.c
      	* app/colormap_dialog.p.h: use a popup menu as in the palette
      	dialog instead of a pulldown menu.
      
      	* app/channels_dialog.c: made color dnd to a channel widget work
      	again.
      
      	* libgimp/gimpwidgets.[ch]: new function
      	gimp_option_menu_set_history() which sets the history according to
      	user_data as passed to gimp_option_menu_new().
      2b92a59e
  20. 31 Jan, 2000 2 commits
    • Sven Neumann's avatar
      mostly header cleanup and i18n · c9482821
      Sven Neumann authored
      
      --Sven
      c9482821
    • Michael Natterer's avatar
      app/blend.c app/brightness_contrast.c app/color_balance.c · ebd97882
      Michael Natterer authored
      2000-02-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/blend.c
      	* app/brightness_contrast.c
      	* app/color_balance.c
      	* app/color_picker.c
      	* app/crop.c
      	* app/curves.c
      	* app/flip_tool.c
      	* app/histogram_tool.c
      	* app/hue_saturation.c
      	* app/levels.c
      	* app/magnify.c
      	* app/measure.c
      	* app/move.c
      	* app/path_tool.c
      	* app/posterize.c
      	* app/text_tool.c
      	* app/threshold.c
      	* app/tool_options.c
      	* app/transform_tool.c: unify the usage of "Selection" and
      	"<blah> Tool" and removed the word "Options" from all tool option
      	title strings because the dialog title already says "Options".
      ebd97882
  21. 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
  22. 20 Jan, 2000 1 commit
  23. 06 Jan, 2000 1 commit
    • Michael Natterer's avatar
      app/[all files using the dialog or action area constructors] added a · 884f2235
      Michael Natterer authored
      2000-01-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/[all files using the dialog or action area constructors]
      	* libgimp/gimpdialog.[ch]: added a "slot_object" agrument to the
      	constructors' va_args lists to allow the action area buttons to be
      	connected wich gtk_signal_connect_object().
      
      	* libgimp/gimphelp.c: show the correct help page for plugins.
      
      	* plug-ins/common/CEL.c
      	* plug-ins/common/CML_explorer.c
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/aa.c
      	* plug-ins/common/align_layers.c
      	* plug-ins/common/animationplay.c
      	* plug-ins/common/apply_lens.c
      	* plug-ins/common/blinds.c
      	* plug-ins/common/blur.c
      	* plug-ins/common/bumpmap.c
      	* plug-ins/common/checkerboard.c
      	* plug-ins/common/colorify.c
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/compose.c
      	* plug-ins/common/convmatrix.c
      	* plug-ins/common/csource.c
      	* plug-ins/common/cubism.c
      	* plug-ins/common/curve_bend.c
      	* plug-ins/common/decompose.c
      	* plug-ins/common/deinterlace.c
      	* plug-ins/common/depthmerge.c
      	* plug-ins/common/despeckle.c
      	* plug-ins/common/destripe.c
      	* plug-ins/common/diffraction.c
      	* plug-ins/common/displace.c
      	* plug-ins/common/grid.c
      	* plug-ins/helpbrowser/Makefile.am
      	* plug-ins/helpbrowser/helpbrowser.c: use the dialog constructor
      	and enable the "F1" help key.
      884f2235
  24. 02 Dec, 1999 1 commit
    • Michael Natterer's avatar
      Default to "Cancel" in the "Really Quit?" dialog. · c688e055
      Michael Natterer authored
      1999-12-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/app_procs.c: Default to "Cancel" in the "Really Quit?" dialog.
      
      	* app/app_procs.c
      	* app/brush_select.c
      	* app/gimpbrushlist.c: Call brush_select_[freeze|thaw]_all() from
      	brushes_init() and brushes_free(), so refreshing the brushes from
      	plugins/scripts is faster.
      
      	* app/brightness_contrast.c
      	* app/color_balance.c
      	* app/curves.c
      	* app/file_new_dialog.c
      	* app/hue_saturation.c
      	* app/levels.c
      	* app/posterize.c
      	* app/threshold.c:
      	Reorder the action are buttons: [ "OK" "Reset" "Cancel" ]
      
      	* app/menus.c: Some more cleanups in the menu code. Reorder
      	<Image>/Filters/Misc only if ot exists. Generalized
      	menu_translate() in preparation for correctly supporting catalogs
      	which only exist sometimes (like gimp-perl).
      
      	* app/gradient.c
      	* app/gradient_select.c: Save some lines of code by using
      	gtk_clist_new_with_titles() instead of gtk_clist_new().
      
      	* libgimp/gimpunitmenu.c: Code cleanup and made the clist titles
      	of the unit selection un-clickable.
      c688e055
  25. 22 Nov, 1999 1 commit
    • Michael Natterer's avatar
      app/brightness_contrast.[ch] app/by_color_select.[ch] · 3711f558
      Michael Natterer authored
      1999-11-22  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/brightness_contrast.[ch]
      	* app/by_color_select.[ch]
      	* app/color_balance.[ch]
      	* app/curves.[ch]
      	* app/histogram_tool.[ch]
      	* app/hue_saturation.[ch]
      	* app/levels.[ch]
      	* app/posterize.[ch]
      	* app/threshold.[ch]: spinbuttons and cleaned up ui for all
      	dialog-tools. Added a "Reset" button to all dialogs.
      
      	* app/color_notebook.c: fixed a compiler warning.
      
      	* app/gimpui.[ch]: made gimp_radio_group_new() more general.
      
      	* app/menus.c: removed the <Toolbox>/File/Help submenu.
      
      	* app/tools.c: restored the old behaviour of "tools_initialize()"
      	(force the emission of the "tool_changed" signal)
      3711f558
  26. 17 Oct, 1999 1 commit
  27. 27 Sep, 1999 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/gimphelp.[ch] new files · 002aa905
      Michael Natterer authored
      1999-09-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gimphelp.[ch]
      	* app/gimpui.[ch]: new files
      
      	* app/interface.[ch]
      	* app/preferences_dialog.[ch]
      
      	The GIMP Help System part 1: Press "F1" in any dialog to pop up
      	the help page for this dialog.
      
      	Moved the widget constructors from preferences_dialog.[ch] and the
      	query boxes from interface.[ch] to gimpui.[ch].
      
      	The dialog constructors take a help_func and a help_data
      	parameter and install the "F1" accelerator which emits the new
      	"help" signal.
      
      	The "help" signal callback calls help_func(help_data) which finally
      	has to call gimp_help() which in turn invokes the help browser.
      
      	Still have to find a proper way to (1) prevent "F1" being assigned
      	to some menu item and (2) to catch "F1" while browsing the menu
      	trees in order to pop up the help for the selected item.
      
      	* app/menus.c: a <Toolbox>/File/Help... menu item.
      	* app/commands.[ch]: a command callback for the "Help..." menu item.
      
      	* app/gimprc.[ch]: new boolean gimprc variable "use_help".
      
      	* app/info_dialog.[ch]: pass a help function and data to the info
      	dialog constructor.
      
      	* app/tools.[ch]: store the tools help page names in the tool info
      	structure. Export a special tools_help_func() which shows the help
      	page for the active tool.
      
      	* app/[all files calling a dialog constructor]: pass the dialog's
      	help page to the constructor.
      
      	Most dialogs are now created by gimp_dialog_new() which also sets
      	up the action_area and the WM delete event callback, so I removed
      	the resp. code from these files.
      
      	Fixed some minor bugs and did some other stuff but didn't change
      	any logic except dialog creation.
      
      	* plug-ins/helpbrowser/helpbrowser.c: don't try to call a running
      	help browser and don't install any menu path (all done in
      	app/gimphelp.[ch] now).
      002aa905
  28. 03 Sep, 1999 1 commit
    • BST 1999 Andy Thomas's avatar
      app/curves.c app/curves.h · eff3e1b8
      BST 1999 Andy Thomas authored
      
      Fri Sep  3 22:52:26 BST 1999 Andy Thomas <alt@gimp.org>
      
      	* app/curves.c
      	* app/curves.h
      
      	Added indicators (x,y of mouse & x for the line) to the curves
      	dialog.
      eff3e1b8
  29. 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
  30. 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
  31. 02 Jul, 1999 1 commit
    • Michael Natterer's avatar
      the Tool structure is now allocated by a common constructor which sets · a60b2c2f
      Michael Natterer authored
      1999-07-02  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/[all tools]: the Tool structure is now allocated by a common
      	constructor which sets default values and provides default tool
      	action functions. To get rid of much code duplication there should
      	be a object hierarchy of tools.
      
      	* app/context_manager.c
      	* app/tools.[ch]: create and destroy private contexts for the
      	paint tools on startup and exit. They are not used yet.
      
      	* app/interface.c
      	* app/menus.c
      	* app/tools.h: num_tools is now exported in tools.h
      
      	* app/commands.c
      	* app/gdisplay.c
      	* app/menus.c: made "Toggle Selection" a toggleable menu item.
      a60b2c2f
  32. 26 Jun, 1999 1 commit
    • Michael Natterer's avatar
      app/[all tool related files] app/commands.c app/disp_callbacks.c · c456ba93
      Michael Natterer authored
      1999-06-26  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/[all tool related files]
      	* app/commands.c
      	* app/disp_callbacks.c
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/interface.c: hopefully fixed the bugs that appeared with my
      	last fix. And some more changes...
      
      	- Slightly changed the conditions which cause the tools to be
      	  re-initialized on button_press events and the global
      	  initialisation functions.
      	- The dialog tools now explicitly set tool->gdisp_ptr so they can
      	  be properly hidden on display deletion.
      	- Create the crop info dialog only once and avoid ugly redraw bugs
      	  by blocking the sizeentries' signal when initializing them.
      	- Standardized the tools_new_<tool>() functions. They are
      	  scheduled to be moved to a common constructor in tools.c
      	- Various stuff...
      c456ba93
  33. 23 Jun, 1999 1 commit
    • Michael Natterer's avatar
      app/brightness_contrast.c app/by_color_select.c app/curves.c · d5d99e5c
      Michael Natterer authored
      1999-06-23  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/brightness_contrast.c
      	* app/by_color_select.c
      	* app/curves.c
      	* app/disp_callbacks.c
      	* app/histogram_tool.c
      	* app/hue_saturation.c
      	* app/levels.c
      	* app/posterize.c
      	* app/threshold.c:
      
      	Factored out the cleaning up code to the tool dialog's "cancel"
      	callbacks because they are called from every function which is
      	aborting the tool. This should fix the remaining segfaults.
      
      	I probably killed a feature of "Levels". The tool wanted to
      	preserve it's drawable all the time, so it was possible to select
      	colors from other displays. If this was the intended behaviour,
      	please flame me and I will try to set the "preserve" flag
      	correctly.
      
      	* plug-ins/common/Makefile.am: "struc" was in the Makefile but not
      	in the directory.
      d5d99e5c
  34. 21 Jun, 1999 1 commit
    • Michael Natterer's avatar
      namespace cleanups. · f1b5e1ae
      Michael Natterer authored
      1999-06-21  Michael Natterer  <mitschel@cs.tu-berlin.de>
      
      	* app/context_manager.c: namespace cleanups.
      
      	* app/commands.[ch]
      	* app/menus.c: moved the "Toggle Selection" menu entry to "View",
      	sprinkled some separators and made the layers/channels/paths popup
      	menus consistent with Tigert's last ops buttons change.
      
      	* app/fileops.c
      	* app/plug_in.c: check for gdisplay_active() returning NULL in
      	some more places.
      
      	* app/[all tool related files]:
      
      	- Turned the ToolAction and ToolState #define's into typedef'ed
      	  enums, so the compiler can do some more sanity checking.
      	- Removed one more unused global variable "active_tool_layer".
      	- Removed some #include's from tools.c.
      	- Standardized the individual tools' structure names.
      	- Moved showing/hiding the tool options to separate functions.
      	- Stuff...
      
      	* app/commands.c
      	* app/disp_callbacks.c
      	* app/gdisplay.c
      	* app/tools.c: fixed the segfaults which happened when the image
      	of one of the tools which have dialogs (levels/posterize/...) was
      	deleted. My approach was to do stricter sanity checking and to set
      	some gdisplay pointers correctly where appropriate, so I can't
      	tell exactly where the bug was.
      	The curves tool now(??) updates on every _second_ display change
      	only, which is really obscure.
      	Finding/changing the display to operate on should definitely be
      	done by connecting to the user context's "display_changed"
      	signal.
      
      	* app/gimpset.c: emit the "remove" signal _after_ removing the
      	pointer from the set. If this was not a bug but a feature, please
      	let me know, we'll need two signals then.
      f1b5e1ae
  35. 29 May, 1999 1 commit
    • Manish Singh's avatar
      configure.in removed tips files, AC_SUBST GIMP_PLUGINS and GIMP_MODULES so · f2622e54
      Manish Singh authored
      * configure.in
      * Makefile.am: removed tips files, AC_SUBST GIMP_PLUGINS and
      GIMP_MODULES so you can easily skip those parts of the build
      
      * acinclude.m4
      * config.sub
      * config.guess
      * ltconfig
      * ltmain.sh: libtool 1.3.2
      
      * app/fileops.c: shuffle #includes to avoid warning about MIN and
      MAX
      
      [ The following is a big i18n patch from David Monniaux
        <david.monniaux@ens.fr> ]
      
      * tips/gimp_conseils.fr.txt
      * tips/gimp_tips.txt
      * tips/Makefile.am
      * configure.in: moved tips to separate dir
      
      * po-plugins: new dir for plug-in translation files
      
      * configure.in: add po-plugins dir and POTFILES processing
      
      * app/boundary.c
      * app/brightness_contrast.c
      * app/by_color_select.c
      * app/color_balance.c
      * app/convert.c
      * app/curves.c
      * app/free_select.c
      * app/gdisplay.c
      * app/gimpimage.c
      * app/gimpunit.c
      * app/gradient.c
      * app/gradient_select.c
      * app/install.c
      * app/session.c: various i18n tweaks
      
      * app/tips_dialog.c: localize tips filename
      
      * libgimp/gimpunit.c
      * libgimp/gimpunitmenu.c: #include "config.h"
      
      * plug-ins/CEL
      * plug-ins/CML_explorer
      * plug-ins/Lighting
      * plug-ins/apply_lens
      * plug-ins/autostretch_hsv
      * plug-ins/blur
      * plug-ins/bmp
      * plug-ins/borderaverage
      * plug-ins/bumpmap
      * plug-ins/bz2
      * plug-ins/checkerboard
      * plug-ins/colorify
      * plug-ins/compose
      * plug-ins/convmatrix
      * plug-ins/cubism
      * plug-ins/depthmerge
      * plug-ins/destripe
      * plug-ins/gif
      * plug-ins/gifload
      * plug-ins/jpeg
      * plug-ins/mail
      * plug-ins/oilify
      * plug-ins/png
      * plug-ins/print
      * plug-ins/ps
      * plug-ins/xbm
      * plug-ins/xpm
      * plug-ins/xwd: plug-in i18n stuff
      
      -Yosh
      f2622e54
  36. 20 May, 1999 1 commit
    • Austin Donnelly's avatar
      Thu May 20 16:38:05 BST 1999 Austin Donnelly <austin@gimp.org · 8218179a
      Austin Donnelly authored
      	* app/curves.c: colour in the previously greyscale bars to the
      	    left and below the curve itself.  Might want to take alpha and
      	    value into account, but currently we don't.  Incidentally
      	    fixes a few redraw problems I found along the way.  Done in
      	    about an hour and a half, to show Wavey Dave what's possible :)
      8218179a
  37. 13 May, 1999 1 commit
    • BST 1999 Andy Thomas's avatar
      Changed:- app/bezier_select.c app/bezier_selectP.h app/cursorutil.c · df68aba3
      BST 1999 Andy Thomas authored
      
      Thu May 13 22:41:26 BST 1999 Andy Thomas <alt@gimp.org>
      
      	Changed:-
      	* app/bezier_select.c
      	* app/bezier_selectP.h
      	* app/cursorutil.c
      	* app/cursorutil.h
      	* app/curves.c
      	* app/paths_dialog.c
      
      	New:-
      	* cursor/mouse1_ap
      	* cursor/mouse1_apmsk
      	* cursor/mouse1_cp
      	* cursor/mouse1_cpmsk
      	* cursor/mouse1_mm
      	* cursor/mouse1_mmmsk
      	* cursor/mouse1_sel
      	* cursor/mouse1_selm
      	* cursor/mouse1_selmmsk
      	* cursor/mouse1_selmsk
      	* cursor/mouse1_selp
      	* cursor/mouse1_selpmsk
      
      	Paths changes:-
      	Implemented multi-part paths.
      	(Import the path (RMB in paths dialog brings menu up)
      	http://www.picnic.demon.co.uk/tmp/gimp.path
      	into a 600x256 (WxH) for an example).
      
      	Can copy/paste paths.
      	Fully custom cursors when using the Bezier tool. A number of bug
      	fixes re boundary problems also fixed.
      
      	Note that heavy use is made of the modifier keys in the bezier tool.
      	MB1 inside a closed curve converts it to a selection. The modifiers
      	change how the selection interacts with any current selection (in
      	much the same way as the selection tool does).
      
      	MB1 + ALT on control point will move a curve, if shift modifier active
      	then single curve is moved.
      
      
      	Curves:-
      
      	In curves dialog you can now press MB1 + shift will add point to
      	curves dialog corresponding to the current position in
      	the currently selected channel. MB1 + CNTRL will add the point
      	to all channels. (Thanks to Carey Bunks for the initial idea).
      df68aba3
  38. 27 Apr, 1999 1 commit