1. 02 May, 2012 1 commit
  2. 17 Jan, 2009 1 commit
    • Michael Natterer's avatar
      Change licence to GPLv3 (and to LGPLv3 for libgimp). · d9b5207a
      Michael Natterer authored
      2009-01-17  Michael Natterer  <mitch@gimp.org>
      
      	* all files with a GPL header and all COPYING files:
      
      	Change licence to GPLv3 (and to LGPLv3 for libgimp).
      
      	Cleaned up some copyright headers and regenerated the parsers in
      	the ImageMap plugin.
      
      
      svn path=/trunk/; revision=27913
      d9b5207a
  3. 09 Oct, 2008 1 commit
    • Michael Natterer's avatar
      Bug 134956 – Curves tool doesn't save free curves · e21935a7
      Michael Natterer authored
      2008-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Bug 134956 – Curves tool doesn't save free curves
      
      	* app/core/gimpmarshal.list
      	* app/widgets/gimpsettingsbox.[ch]: add signal "file-dialog-setup"
      	and emit it when the export/import file chooser is fully
      	constructed. Callbacks can then do additional things to the
      	dialog, like adding custom buttons.
      
      	* app/tools/gimpcurvestool.h
      	* app/tools/gimplevelstool.h: add boolean member
      	"export_old_format".
      
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c (gimp_*_tool_dialog): connect to
      	the settings box' "file-dialog-setup".
      
      	(gimp_*_tool_export_setup): new callback which adds a toggle to
      	the file choosers that allows to export to the old format.
      	Default saving the new format, we defaulted to the old one before.
      
      	(gimp_*_tool_settings_export): check the "export_old_format"
      	boolean and only save the cruft format if it is TRUE; chain up
      	otherwise, which generically saves the new format.
      
      	* app/tools/gimplevelstool.c (gimp_levels_tool_settings_import):
      	add the same file format detection code as in the curves tool
      	so it transparently loads old and new levels files.
      
      
      svn path=/trunk/; revision=27194
      e21935a7
  4. 07 Aug, 2008 1 commit
    • Sven Neumann's avatar
      fixed comment. · 8f2c6c0d
      Sven Neumann authored
      2008-08-07  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpcurvestool.h: fixed comment.
      
      
      svn path=/trunk/; revision=26412
      8f2c6c0d
  5. 09 Feb, 2008 1 commit
    • Michael Natterer's avatar
      port the "xpos" API to [0.0..1.0] doubles too. · e8313005
      Michael Natterer authored
      2008-02-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcurveview.[ch]: port the "xpos" API
      	to [0.0..1.0] doubles too.
      
      	* app/tools/gimpcurvestool.[ch]: rename "col_value" member to
      	"picked_color" and use gdouble instead of gint. Also use GimpCurve
      	API to map the values instead of accessing the curve directly.
      	Fixes setting curve anchor points by color picking.
      
      
      svn path=/trunk/; revision=24838
      e8313005
  6. 04 Feb, 2008 1 commit
    • Michael Natterer's avatar
      add refcounting and replace free() API by ref() and unref(). · 50ad5cfd
      Michael Natterer authored
      2008-02-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/gimphistogram.[ch]: add refcounting and replace free()
      	API by ref() and unref().
      
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-levels.c
      	* app/widgets/gimphistogrameditor.c
      	* tools/pdbgen/pdb/color.pdb: replace calls to
      	gimp_histogram_free() by gimp_histogram_unref().
      
      	* app/pdb/color_cmds.c: regenerated.
      
      	* app/widgets/gimphistogramview.c: reference the histograms so we
      	don't need the widget's users to keep them around while the widget
      	exists.
      
      	* app/tools/gimpcurvestool.[ch]: remove the histogram from the
      	tool struct and just create one locally to set it on the histogram
      	view widget.
      
      	Unrelated:
      
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpthresholdtool.[ch]: renamed "hist" members to
      	"histogram" plus some cleanup.
      
      
      svn path=/trunk/; revision=24792
      50ad5cfd
  7. 03 Feb, 2008 1 commit
  8. 25 Jan, 2008 1 commit
  9. 23 Jan, 2008 1 commit
    • Michael Natterer's avatar
      app/gegl/Makefile.am app/gegl/gegl-types.h app/gegl/gimpcurvesconfig.[ch] · 89900621
      Michael Natterer authored
      2008-01-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/gegl/Makefile.am
      	* app/gegl/gegl-types.h
      	* app/gegl/gimpcurvesconfig.[ch]
      	* app/gegl/gimpoperationcurves.[ch]: add curves operation and its
      	config object. Hack around badly to be able to use GimpCurve from
      	app/core.
      
      	* app/gegl/gimp-gegl.c: register the curves operation.
      
      	* app/tools/gimpcurvestool.[ch]: added get_operation() implemenetation
      	and use the new config object instead of keeping around 5 curves.
      
      
      svn path=/trunk/; revision=24683
      89900621
  10. 05 Nov, 2007 1 commit
    • Michael Natterer's avatar
      added event handling and completely edit the curve here. · 2d827be2
      Michael Natterer authored
      2007-11-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpcurveview.[ch]: added event handling and
      	completely edit the curve here.
      
      	* app/tools/gimpcurvestool.[ch]: remove all event handling and
      	curve editing code and only listen to curve signals.
      
      
      svn path=/trunk/; revision=24060
      2d827be2
  11. 02 Nov, 2007 2 commits
    • Michael Natterer's avatar
      added API to modify free-form curves and properties to listen to curve · e5927feb
      Michael Natterer authored
      2007-11-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpcurve.[ch]: added API to modify free-form curves
      	and properties to listen to curve changes.
      
      	* app/widgets/gimphistogramview.[ch]: added everything that's
      	needed for rendering a curve with all its color and cursor
      	indicators on top of a histogram. This code will move to a
      	subclass soon.
      
      	* app/tools/gimpcurvestool.[ch]: removed all curve rendering here.
      	Also removed all explicit updating by connecting to curve signals
      	and updating in the callback.
      
      
      svn path=/trunk/; revision=24045
      e5927feb
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h app/core/gimpcurve-save.[ch] · 5dd23ae1
      Michael Natterer authored
      2007-11-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpcurve-save.[ch]
      	* app/core/gimpcurve-load.[ch]
      	* app/core/gimpcurve.[ch]: new GimpData subclass which keeps a
      	curve as known from the curves tool. Pretty much unfinished, but
      	can do everything that used to be done by base/curves.c and more.
      
      	* app/base/curves.[ch]: stripped down to plain arrays of
      	uchar (the actual curve) and the LUT setup function. All the rest
      	is done by GimpCurve now.
      
      	* app/tools/gimpcurvestool.[ch]: use an array of GimpCurves
      	instead of the old Curves cruft. Use Curves only for the last step
      	of creating the LUT. Pretty much unfinished migration here too.
      
      	* tools/pdbgen/pdb/color.pdb: use a GimpCurve here too.
      
      	* app/pdb/color_cmds.c: regenerated.
      
      
      svn path=/trunk/; revision=24041
      5dd23ae1
  12. 09 Dec, 2006 1 commit
  13. 19 Oct, 2005 1 commit
  14. 25 Feb, 2004 2 commits
    • Sven Neumann's avatar
      app/tools/gimpcurvestool.[ch] removed obsoleted variables. · 0a309fe9
      Sven Neumann authored
      2004-02-25  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimplevelstool.h: removed obsoleted variables.
      0a309fe9
    • Sven Neumann's avatar
      app/tools/gimpcurvestool.[ch] app/tools/gimpimagemapoptions.[ch] · c1de6345
      Sven Neumann authored
      2004-02-25  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimpimagemapoptions.[ch]
      	* app/tools/gimpimagemaptool.[ch]
      	* app/tools/gimplevelstool.[ch]: moved the settings file dialog
      	that was duplicated in the curves and levels tools to the
      	GimpImageMapTool class. Store the last used filename in the
      	GimpImageMapOptions (proper fix for bug #135059).
      c1de6345
  15. 24 Jan, 2004 1 commit
    • Michael Natterer's avatar
      fiddle with the passed channel index only for GRAYA drawables, not for all · 00c525ab
      Michael Natterer authored
      2004-01-24  Michael Natterer  <mitch@gimp.org>
      
      	* tools/pdbgen/pdb/color.pdb (levels, curves): fiddle with the
      	passed channel index only for GRAYA drawables, not for all GRAY
      	drawables. Fixes bug #132322.
      
      	* tools/pdbgen/pdb/color.pdb: regenerated.
      
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimplevelstool.[ch]: fixed the same bug here. It never
      	occured because the "channel" field was accidentially initialized
      	with the correct value and never changed after.
      00c525ab
  16. 11 Dec, 2003 1 commit
    • Michael Natterer's avatar
      added a hack that allows to render the histogram in a brighter color. · a1c3265e
      Michael Natterer authored
      2003-12-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimphistogramview.[ch]: added a hack that allows to
      	render the histogram in a brighter color. Fixed initial range for
      	views that are not selectable.
      
      	* app/tools/gimpcurvestool.[ch]: replaced the GtkDrawingArea by a
      	bright GimpHistogramView and render the curves tool controls on
      	top of the histogram. Fixes bug #71633.
      a1c3265e
  17. 14 Mar, 2003 2 commits
    • Sven Neumann's avatar
      themes/Default/images/Makefile.am · 1657c4d6
      Sven Neumann authored
      2003-03-14  Sven Neumann  <sven@gimp.org>
      
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-curve-free-16.png
      	* themes/Default/images/stock-curve-smooth-16.png: added new icons
      	provided by Tuomas Kuosmanen <tigert@gimp.org>.
      
      	* libgimpwidgets/gimpstock.[ch]: register the new icons.
      
      	* app/tools/gimpcurvestool.[ch]: use radio buttons with the new
      	curve type icons.
      1657c4d6
    • Sven Neumann's avatar
      some cleanup to event handling and drawing code. Doesn't draw outside the · 46c234c7
      Sven Neumann authored
      2003-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpcurvestool.[ch]: some cleanup to event handling
      	and drawing code. Doesn't draw outside the expose_event handler
      	any longer but could still be improved.
      46c234c7
  18. 04 Sep, 2002 1 commit
    • Michael Natterer's avatar
      More color correction stuff cleanup: · 163a3f41
      Michael Natterer authored
      2002-09-04  Michael Natterer  <mitch@gimp.org>
      
      	More color correction stuff cleanup:
      
      	* app/base/Makefile.am
      	* app/base/base-types.h
      	* app/base/levels.[ch]: new files containing levels_lut_func(), a
      	new "Levels" parameter struct and the "auto levels" stuff.
      
      	* app/base/lut-funcs.[ch]: removed the levels stuff here, added
      	lots of g_return_if_fail().
      
      	* app/base/color-balance.[ch]
      	* app/base/hue-saturation.[ch]: added init() and reset() functions
      	so we don't need to duplicate this code in the tool and the pdb
      	wrappers.
      
      	* app/base/curves.[ch]: s/gint/GimpHistogramChannel/g, made
      	curves_channel_reset() initialize the curves array.
      
      	* app/tools/gimpcolorbalancetool.[ch]: use the new functions,
      	moved the "Range" frame to the top, added a per-range "Reset"
      	button, made the global "Reset" button reset all ranges and
      	the "Preserve Luminosity" toggle.
      
      	* app/tools/gimpcurvestool.[ch]: don't initialize the curves
      	array manually, as curves_channel_reset() does that,
      	s/gint/GimpHistogramChannel/g.
      
      	* app/tools/gimphuesaturationtool.c: use the new functions, added
      	a per-channel "Reset" button and made the global "Reset" button
      	reset all channels, cleaned up the GUI update function.
      
      	* app/tools/gimplevelstool.[ch]: changed to use the new Levels
      	parameter struct and it's utility functions. Removed stuff
      	which now lives in base/levels.c
      
      	* app/tools/gimpimagemaptool.c: align the "Preview" button
      	bottom-left, not bottom-right.
      
      	* tools/pdbgen/pdb/color.pdb: use the new stuff and removed
      	uglyness because using the "Levels" struct makes the code more
      	straightforward.
      
      	* app/pdb/color_cmds.c: regenerated.
      163a3f41
  19. 26 Aug, 2002 1 commit
    • Michael Natterer's avatar
      Color correction tool chopping: · 1186e83a
      Michael Natterer authored
      2002-08-26  Michael Natterer  <mitch@gimp.org>
      
      	Color correction tool chopping:
      
      	* app/Makefile.am
      	* app/image_map.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpimagemap.[ch]: ...and added here as object.
      
      	* app/base/Makefile.am
      	* app/base/base-types.h
      	* app/base/color-balance.[ch]
      	* app/base/curves.[ch]
      	* app/base/hue-saturation.[ch]
      	* app/base/threshold.[ch]: the lowlevel color correction functions
      	plus their parameter structs cut out of the resp. tools.
      
      	* app/core/core-enums.[ch]: removed GimpTransferMode enum...
      
      	* app/base/base-enums.[ch]: ...added it here. Also added
      	GimpHueRange for the new hue-saturation files.
      
      	* tools/pdbgen/enums.pl
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c: regenerated.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpcolorbalancetool-transfer.c: removed (code went
      	to base/color-balance.c).
      
      	* app/tools/gimpimagemaptool.[ch]: added most code which was
      	diplicated in subclasses. Create the dialog here with a nice title
      	bar including image preview and name (fixes #66033). Added virtual
      	functions map(), dialog() and reset() which need to be implemented
      	by subclasses.
      
      	* app/tools/gimpbrightnesscontrasttool.[ch]
      	* app/tools/gimpcolorbalancetool.[ch]
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimphuesaturationtool.[ch]
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpposterizetool.[ch]
      	* app/tools/gimpthresholdtool.[ch]: removed tons of duplicated
      	code and simply implement GimpImageMapTool's virtual functions.
      	Removed all dialog structs and keep the variables in the tool
      	structs. The dialogs are now created on-the-fly and destroyed when
      	the tool goes away, which makes all callbacks much simpler and
      	safer. Lots of GUI & code cleanup in all dialogs.
      
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c: added separate "Reset Channel"
      	buttons and let the global "Reset" buttons reset all color
      	channels.
      
      	* app/tools/tools.c: the various antique foo_free() functions
      	don't exist any more.
      
      	* app/tools/gimphistogramtool.c: removed ImageMap field from
      	dialog struct (it was unused). Cleaned up dialog a bit.
      
      	* tools/pdbgen/Makefile.am: don't scan tools/gimphuesaturationtool.h
      	for enums.
      
      	* tools/pdbgen/pdb/color.pdb: use the new stuff from base/ and
      	don't include stuff from tools/ any more.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/paint_tools_cmds.c: regenerated.
      1186e83a
  20. 03 May, 2002 1 commit
    • Sven Neumann's avatar
      app/tools/gimpairbrushtool.[ch] app/tools/gimpbezierselecttool.[ch] · 84e1810a
      Sven Neumann authored
      2002-05-03  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpairbrushtool.[ch]
      	* app/tools/gimpbezierselecttool.[ch]
      	* app/tools/gimpblendtool.[ch]
      	* app/tools/gimpbrightnesscontrasttool.[ch]
      	* app/tools/gimpbucketfilltool[.ch]
      	* app/tools/gimpbycolorselecttool[.ch]
      	* app/tools/gimpclonetool[.ch]
      	* app/tools/gimpcolorbalancetool[.ch]
      	* app/tools/gimpcolorpickertool[.ch]
      	* app/tools/gimpconvolvetool[.ch]
      	* app/tools/gimpcroptool[.ch]
      	* app/tools/gimpcurvestool[.ch]
      	* app/tools/gimpdodgeburntool[.ch]
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpellipseselecttool[.ch]
      	* app/tools/gimperasertool[.ch]
      	* app/tools/gimpfliptool[.ch]
      	* app/tools/gimpfreeselecttool[.ch]
      	* app/tools/gimpfuzzyselecttool[.ch]
      	* app/tools/gimphistogramtool[.ch]
      	* app/tools/gimphuesaturationtool[.ch]
      	* app/tools/gimpinktool[.ch]
      	* app/tools/gimpiscissorstool[.ch]
      	* app/tools/gimplevelstool[.ch]
      	* app/tools/gimpmagnifytool[.ch]
      	* app/tools/gimpmeasuretool[.ch]
      	* app/tools/gimpmovetool[.ch]
      	* app/tools/gimppaintbrushtool[.ch]
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool[.ch]
      	* app/tools/gimppenciltool[.ch]
      	* app/tools/gimpperspectivetool[.ch]
      	* app/tools/gimpposterizetool[.ch]
      	* app/tools/gimprectselecttool[.ch]
      	* app/tools/gimprotatetool[.ch]
      	* app/tools/gimpscaletool[.ch]
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsheartool[.ch]
      	* app/tools/gimpsmudgetool[.ch]
      	* app/tools/gimptexttool[.ch]
      	* app/tools/gimpthresholdtool[.ch]
      	* app/tools/gimptool.c
      	* app/tools/gimptoolcontrol.h
      	* app/tools/gimptoolmodule[.ch]
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool[.ch]
      	* app/tools/path_tool.c
      	* app/tools/tool_manager[.ch]
      	* app/tools/tools.c
      	* libgimptool/gimptool.c
      	* libgimptool/gimptoolcontrol.h
      	* libgimptool/gimptoolmodule.h: removed tons of warnings. Do we need
      	to add -Werror to the CFLAGS to avoid such a mess in the future ?!
      	Also had to enforce the GIMP coding style in lots of places :-(
      
      	* libgimp/gimppixelrgn.c: got sick and tired of debugging plug-ins,
      	so I've added checks for most parameters passed to the GimpPixelRgn
      	functions. This will slow down plug-in execution a little bit but
      	should help to find bugs early.
      84e1810a
  21. 29 Mar, 2002 1 commit
  22. 03 Dec, 2001 1 commit
    • Sven Neumann's avatar
      Michael Natterer <mitch@gimp.org> · 4ba6db4e
      Sven Neumann authored
      2001-12-03  Sven Neumann  <sven@gimp.org>
      	    Michael Natterer <mitch@gimp.org>
      
      	* app/paint-funcs/paint-funcs-mmx.h: removed redefiniton of HAS_ALPHA
      	macro.
      
      	* app/core/gimp.c: reverted Daniel's change; it doesn't make the code
      	simpler, only more error-prone.
      
      	* app/gui/info-dialog.h
      	* app/gui/resize-dialog.h
      	* app/core/gimp.h
      	* app/core/gimpbrushgenerated.h
      	* app/core/gimpbrushpipe.h
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpcontainer.h
      	* app/core/gimpcoreconfig.h
      	* app/core/gimpdata.h
      	* app/core/gimpdatafactory.[ch]
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.h
      	* app/core/gimpimagefile.h
      	* app/core/gimplayer.h
      	* app/core/gimplayermask.h
      	* app/core/gimpmoduleinfo.h
      	* app/core/gimppalette.h
      	* app/core/gimpundo.h
      	* app/widgets/gimpbrushfactoryview.h
      	* app/widgets/gimpconstrainedhwrapbox.h
      	* app/widgets/gimpcontainermenu.h
      	* app/widgets/gimpcontainerview.h
      	* app/widgets/gimpdialogfactory.h
      	* app/widgets/gimpimagedock.h
      	* app/widgets/gimplistitem.h
      	* app/widgets/gimpmenuitem.h
      	* app/widgets/gimpnavigationpreview.h
      	* app/widgets/gimppreview.h
      	* app/gimprc.h
      	* app/pathP.h
      	* app/tools/gimpbezierselecttool.h
      	* app/tools/gimpcolorbalancetool.h
      	* app/tools/gimpcurvestool.h
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpfreeselecttool.h
      	* app/tools/gimphuesaturationtool.h
      	* app/tools/gimpinktool-blob.h
      	* app/tools/gimpinktool.h
      	* app/tools/gimpiscissorstool.h
      	* app/tools/gimpmagnifytool.h
      	* app/tools/gimpmeasuretool.h
      	* app/tools/gimppainttool.h
      	* app/tools/gimppathtool.h
      	* app/tools/gimprectselecttool.h
      	* app/tools/gimpthresholdtool.h
      	* app/tools/gimptool.h
      	* app/tools/gimptransformtool.h
      	* app/base/base-config.h
      	* app/base/gimplut.[ch]
      	* app/base/pixel-region.h
      	* app/base/pixel-surround.[ch]
      	* app/base/temp-buf.[ch]
      	* app/base/tile-manager-private.h
      	* app/base/tile-manager.[ch]
      	* app/base/tile-private.h
      	* app/base/tile.[ch]
      	* app/display/gimpdisplay.h
      	* app/display/gimpdisplayshell-selection.h
      	* app/display/gimpdisplayshell.h
      	* app/gui/brush-select.h
      	* app/gui/gradient-editor.h
      	* app/gui/gradient-select.h: reverted most of Daniel's changes.
      
      	There's no reason to use unsigned integers here and in lots of places
      	it is even wrong.
      
      	Then it's way too early to convert gbooleans into bitfields. This
      	change may make sense in a few places but can happen later when the
      	API has settled and the code is more stable.
      
      	* app/gimprc.c: reverted Daniel's change. This is a GCC-ism and this
      	code is about to die soon anyway.
      4ba6db4e
  23. 02 Dec, 2001 1 commit
    • Daniel Egger's avatar
      Convert ugly comments into named structure fields. Much cleaner and less · 1ed91801
      Daniel Egger authored
      2001-12-02  Daniel Egger  <degger@fhm.edu>
      
      	* app/gimprc.c: Convert ugly comments into named structure fields.
      	Much cleaner and less errorprone though may cause troubles on
      	older compilers and then needs to be reverted. Please report!
      
      	* app/base/base-types.h: Add FIXME reminder.
      
      	* app/base/gimplut.c: Use CLAMP macro instead of if-cascade.
      
      	* app/base/temp-buf.c: Remove duplicated calculations and simplify
      	checks.
      
      	* app/base/tile-manager.c:
      	- (tile_manager_get_tile_num): Return success and take an additional
      	  pointer for the tilenumber.
      	- Simplify logic in the rest of the file as a result.
      	- Remove rotten debugging cruft.
      
      	* app/core/gimpbrushgenerated.c: Fix two stylistic nits.
      
      	* app/app_procs.c: Include <stdlib.h> for exit () prototype.
      
      	* app/core/gimpdrawable-blend.c: Include <stdlib.h> for abs ()
      	prototype.
      
      	* app/display/gimpdisplay.c: Include <string.h> for memcpy ()
      	prototype.
      
      	* app/core/gimpimage-convert.c: (HIST_RGB): First parameter is
      	not const. Fixes a gcc warning for a wrong return value.
      
      	* libgimpwidgets/gimpunitmenu.c
      	* app/core/gimpunit.c: Add suggested (by gcc 3.1 cvs) parentheses
      	to group correct logic tests together.
      
      	* app/paint-funcs/paint-funcs-generic.h: Fix my HAS_ALPHA macro
      	to avoid gcc 3.1 cvs warning.
      
      	* app/gimprc.h
      	* pathP.h
      	* base-config.h
      	* app/base/boundary.h
      	* app/base/gimplut.[ch]
      	* app/base/pixel-region.h
      	* app/base/pixel-surround.[ch]
      	* app/base/temp-buf.[ch]
      	* app/base/tile-manager-private.h
      	* app/base/tile-manager.c
      	* app/base/tile-private.h
      	* app/base/tile.[ch]
      	* app/core/gimp.h
      	* app/core/gimpbrushgenerated.h
      	* app/core/gimpbrushpipe.h
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpcontainer.h
      	* app/core/gimpcoreconfig.h
      	* app/core/gimpdata.h
      	* app/core/gimpdatafactory.[ch]
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.h
      	* app/core/gimpimagefile.h
      	* app/core/gimplayer.h
      	* app/core/gimplayermask.h
      	* app/core/gimpmoduleinfo.h
      	* app/core/gimppalette.h
      	* app/core/gimpundo.h
      	* app/display/gimpdisplay.h
      	* app/display/gimpdisplayshell-selection.h
      	* app/display/gimpdisplayshell.h
      	* app/gui/brush-select.h
      	* app/gui/gradient-editor.h
      	* app/gui/gradient-select.h
      	* app/gui/info-dialog.h
      	* app/gui/resize-dialog.h
      	* app/tools/gimpbezierselecttool.h
      	* app/tools/gimpcolorbalancetool.h
      	* app/tools/gimpcolorpickertool.h
      	* app/tools/gimpcurvestool.h
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpfreeselecttool.h
      	* app/tools/gimpfuzzyselecttool.h
      	* app/tools/gimphuesaturationtool.h
      	* app/tools/gimpinktool-blob.h
      	* app/tools/gimpinktool.h
      	* app/tools/gimpiscissorstool.h
      	* app/tools/gimpmagnifytool.h
      	* app/tools/gimpmeasuretool.h
      	* app/tools/gimppainttool.h
      	* app/tools/gimppathtool.h
      	* app/tools/gimprectselecttool.h
      	* app/tools/gimpthresholdtool.h
      	* app/tools/gimptool.h
      	* app/tools/gimptransformtool.h
      	* app/tools/path_toolP.h
      	* app/widgets/gimpbrushfactoryview.h
      	* app/widgets/gimpconstrainedhwrapbox.h
      	* app/widgets/gimpcontainermenu.h
      	* app/widgets/gimpcontainerview.h
      	* app/widgets/gimpdialogfactory.h
      	* app/widgets/gimpimagedock.h
      	* app/widgets/gimplistitem.h
      	* app/widgets/gimpmenuitem.h
      	* app/widgets/gimpnavigationpreview.h
      	* app/widgets/gimppreview.h: Unsignify lots of variables and
      	parameters and use bitfields in structs where possible. First
      	part of a huge cleanup all over the code...
      1ed91801
  24. 22 Nov, 2001 1 commit
    • Sven Neumann's avatar
      bumped version number to 1.3.1. Require Glib/GTK+-1.3.11 and Pango-0.22. · 757017a8
      Sven Neumann authored
      2001-11-23  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: bumped version number to 1.3.1.
      	Require Glib/GTK+-1.3.11 and Pango-0.22. Removed GDK_DISABLE_COMPAT_H
      	and GTK_DISABLE_COMPAT_H from our default CFLAGS since they don't
      	exist any longer.
      
      	* RELEASE-TO-CVS.patch: removed since the glib/gtk+ API is supposed to
      	be frozen now.
      
      	* HACKING: removed reference to RELEASE-TO-CVS.patch
      
      	* app/gui/menus.c
      	* app/tools/gimptexttool.c: applied RELEASE-TO-CVS.patch to conform
      	to the new GTK+/Pango API.
      
      	* app/core/Makefile.am: generate marshallers with gimp_marshal prefix.
      
      	* app/core/gimpmarshal.list: added all marshallers we use.
      
      	* app/core/gimpmarshal.[ch]: regenerated.
      
      	* app/[lots of .c files]: use gimp_marshal_* for all marshallers.
      
      	* data/images/
      	* app/app_procs.c
      	* app/gui/splash.c:
      
      	* libgimpbase/Makefile.am
      	* libgimpbase/gimpbase.h
      	* libgimpbase/gimputils.[ch]: removed since they are no longer needed.
      
      	* app/gimprc.c
      	* plug-ins/common/ps.c
      	* plug-ins/gdyntext/gdyntext.c
      	* plug-ins/gdyntext/gdyntextcompat.c
      	* plug-ins/gfig/gfig.c
      	* plug-ins/gflare/gflare.c
      	* plug-ins/script-fu/script-fu-scripts.c: use glib functions instead
      	of gimp_strescape() and gimpstrcompress().
      
      	* cleaned up all header files: use G_BEGIN_DECLS/G_END_DECLS, declared
      	all _get_type function as G_GNUC_CONST.
      
      	* tools/pdbgen/enumcode.pl
      	* tools/pdbgen/lib.pl: make them generate header files using
      	G_BEGIN_DECLS/G_END_DECLS.
      
      	* pixmaps/Makefile.am
      	* pixmaps/wilber3.xpm: removed ...
      	* data/images/tips_wilber.png: ... and added here as PNG
      
      	* app/gui/tips-dialog.c: load the Wilber on demand using GdkPixbuf.
      
      	* data/images/gimp_splash.ppm: removed ...
      	* data/images/gimp_splash.png: ... and added as PNG
      
      	* app/app_procs.c
      	* app/gui/splash.[ch]: load the splash image using GdkPixbuf.
      
      	* app/gui/about-dialog.c: sink the GtkPreview.
      757017a8
  25. 20 Nov, 2001 1 commit
    • Michael Natterer's avatar
      added GimpToolRegisterFunc, GimpToolRegisterCallback and · a75c675d
      Michael Natterer authored
      2001-11-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-types.h: added GimpToolRegisterFunc,
      	GimpToolRegisterCallback and GimpToolOptionsNewFunc typedefs
      	which are used to register tools.
      
      	* app/tools/tools.c: put the register funcs in an array of
      	GimpToolRegisterFuncs. Pass a Gimp pointer *plus* a
      	GimpToolRegisterCallback (which is tool_manager_register_tool())
      	to the tools' register functions.
      
      	* app/tools/tool_manager.[ch]: added a GimpToolOptionsNewFunc to
      	the parameters of tool_manager_register_tool(). Create the tool
      	options here, not in each tool.
      
      	* app/tools/paint_options.[ch]
      	* app/tools/selection_options.[ch]
      	* app/tools/tool_options.[ch]
      	* app/tools/transform_options.[ch]: all _init() and _new()
      	functions take a GimpToolInfo pointer now. The _reset() func needs
      	to be set manually now.
      
      	* app/tools/[all_tools].[ch]: changed accordingly:
      
      	- pass GimpToolOptionsNewFuncs to the register callback.
      	- don't create the tool options in the tools' _init() function.
      	- removed all static tool options variables.
      	- get the options from the tool system in the cases i missed
      	  in my last commit.
      	- added minor hacks to get rid of the static options pointer
      	  in some pathological cases :) (i.e. the ink tool).
      a75c675d
  26. 17 Oct, 2001 1 commit
    • Michael Natterer's avatar
      app/gimpprogress.[ch] s/GDisplay/GimpDisplay/ · 18dd0728
      Michael Natterer authored
      2001-10-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpprogress.[ch]
      	* app/undo.c: s/GDisplay/GimpDisplay/
      
      	* app/plug_in.[ch]: removed unused boolean "destroy" field of
      	the PlugIn struct.
      
      	* app/core/gimpedit.c: don't include "app_procs.h"
      
      	* app/display/gimpdisplay-callbacks.c: moved the "grab_abd_scroll"
      	stuff from gimpdisplay-scroll.* here (less complicated and easier
      	to cleanup...)
      
      	* app/display/gimpdisplay-scroll.[ch]: removed here.
      
      	* app/display/gimpdisplay-render.[ch]
      	* app/display/gimpdisplay-selection.[ch]
      	* app/display/gimpdisplayshell.c: s/GDisplay/GimpDisplay/g
      
      	* app/display/gimpdisplay.[ch]: ditto, removed gdisplay_active()
      	which was just a wrapper around
      	"gimp_context_get_display (gimp_get_user_context (the_gimp))"
      	(which is more to type but makes the use of the global
      	"the_gimp" variable more obvious).
      
      	* app/gui/color-area.h
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.h
      	* app/gui/paths-dialog.h
      	* app/gui/select-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/tools-commands.c
      	* app/gui/view-commands.c: s/GDisplay/GimpDisplay/, gdisplay_active()
      	removal, include "app_procs.h" for "the_gimp".
      
      	* app/tools/gimpbezierselecttool.h
      	* app/tools/gimpbrightnesscontrasttool.[ch]
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpcolorbalancetool.[ch]
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimpeditselectiontool.h
      	* app/tools/gimphistogramtool.[ch]
      	* app/tools/gimphuesaturationtool.[ch]
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpmovetool.h
      	* app/tools/gimpperspectivetool.h
      	* app/tools/gimpposterizetool.[ch]
      	* app/tools/gimprotatetool.h
      	* app/tools/gimpscaletool.h
      	* app/tools/gimpsheartool.h
      	* app/tools/gimptexttool.h
      	* app/tools/gimpthresholdtool.[ch]
      	* app/tools/gimptool.[ch]
      	* app/tools/gimptransformtool.h
      	* app/tools/tool_manager.[ch]: lots of s/GDisplay/GimpDisplay/, made
      	all *_dialog_hide() functions private, cleanup.
      
      	* app/widgets/*: removed GtkType and gtk_type_* stuff entirely and
      	use GObject functions, removed lots of empty "destroy" methods and
      	use more type checking class cast macros instead of casting
      	directly.
      
      	* app/widgets/gimpcontainermenu.c: fixed item insert order.
      
      	* app/widgets/gimphistogramview.[ch]: cleaned up and renamed all
      	functions.
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed gimp_dialog_hide() as
      	Gtk+ does the right thing (TM) now.
      
      	* tools/pdbgen/pdb/color.pdb: implemented "histogram" without
      	digging into tools/ and widgets/ (needs to be done for all
      	color PDB functions).
      
      	* tools/pdbgen/pdb/gimprc.pdb: no need to use "the_gimp" in a PDB
      	function as a "Gimp" pointer is passed to them all.
      
      	* tools/pdbgen/pdb/image.pdb: don't include "app_procs.h"
      
      	* app/pdb/color_cmds.c
      	* app/pdb/gimprc_cmds.c
      	* app/pdb/image_cmds.c: regenerated.
      
      	* app/pdb/procedural_db.c: don't include "app_procs.h"
      18dd0728
  27. 19 Sep, 2001 1 commit
    • Sven Neumann's avatar
      require GTK+-1.3.8 and PangoFT2-0.19. · 334911e2
      Sven Neumann authored
      2001-09-19  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: require GTK+-1.3.8 and PangoFT2-0.19.
      
      	* app/devices.c:
      	* app/tools/gimppainttool.c: removed intermediate hacks that are no
      	longer needed with the new GTK+ release.
      
      	* app/plug_in.c
      	* libgimp/gimp.[ch]
      	* libgimp/gimpui.c
      	* libgimpbase/gimpprotocol.[ch]: removed use_xshm and color_cube
      	variables and accessor functions.
      
      	* app/errors.c: use gtk_exit() instead of gdk_exit().
      
      	* app/gdisplay.c: use Pango API to determine cursor label width. This
      	does not work correctly, but at least it compiles...
      
      	* app/gui/splash.c: follow Pango API changes.
      
      	* app/tools/gimpcurvestool.[ch]: use PangoLayouts to draw text.
      
      	* app/tools/gimptexttool.c: follow Pango API changes.
      
      	* app/widgets/gimpfontselection-dialog.c
      	* app/widgets/gimpfontselection.c: mostly rewritten following the
      	changes in GtkFontSelection. This is unusable at the moment and
      	crashes, but at least it compiles again...
      
      	* plug-ins/Makefile.am: temporarily disabled build of ifscompose since
      	it does not compile any longer after the latest GDK cleanups.
      
      	* plug-ins/common/nlfilt.c: gimp_color_cube() is obsolete.
      334911e2
  28. 14 Aug, 2001 1 commit
    • Michael Natterer's avatar
      an evil temp_hack which lets GimpContext managing the active display · e2daae31
      Michael Natterer authored
      2001-08-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/gdisplay.h: an evil temp_hack which lets GimpContext managing
      	the active display withoug including "gdisplay.h". Will go away as
      	soon ad context properties are registered dynamically.
      
      	* app/module_db.c: cleaned up the object code in preparation of
      	moving it to core/.
      
      	* app/path.c: connect to GimpImage's
      
      	* app/core/gimpobject.[ch]: derive it from GObject, not from
      	GtkObject any more (yeah :-)
      
      	* app/core/*.c: #include <glib-object.h> instead of <gtk/gtk.h>,
      	removed some remaining GtkObject-isms.
      
      	(left in a few #include <gtk/gtk.h> where bigger changes are needed
      	to get rid of the UI dependency).
      
      	* app/core/core-types.h: #include <gdk-pixbuf/gdk-pixbuf.h> here
      	temporarily.
      
      	* app/core/gimp.c (gimp_create_display): unref the image after
      	creating it's first display.
      
      	* app/core/gimpbrush.[ch]: disabled the parts of the code which
      	depend on GimpPaintTool.
      
      	* app/core/gimpbrushgenerated.c
      	* app/core/gimpbrushpipe.c: changed accordingly.
      
      	* app/core/gimpcontext.[ch]: evil hack (see above) to manage the
      	active display without including "gdisplay.h"
      
      	* app/core/gimpimage-mask.[ch]: pass a context to
      	gimage_mask_stroke() and get the current tool's PDB string from
      	there.
      
      	* app/core/gimpedit.c: changed accordingly.
      
      	* app/core/gimpimage.c: use gimp_image_update() instead of
      	gdisplays_update_full().
      
      	* app/gui/color-area.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/edit-commands.c
      	* app/gui/image-commands.c
      	* app/gui/toolbox.c: changed accordingly (don't use Gtk methods on
      	GObjects).
      
      	* app/gui/menus.c: fix some const warnings by explicit casting.
      
      	* app/tools/*.[ch]: ported all tools to GObject, some minor
      	cleanup while i was on it.
      
      	* app/widgets/gimpdialogfactory.[ch]: ported to GObject.
      
      	* app/widgets/gimplayerlistview.h: added FOO_GET_CLASS() macro.
      
      	* tools/pdbgen/app.pl: added a "widgets_eek" hack like "tools_eek"
      	which inserts #include "widgets/widgets-types.h" before ordinary
      	includes.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/edit_cmds.c: changed according to the stuff above.
      e2daae31
  29. 24 Jul, 2001 1 commit
    • Michael Natterer's avatar
      Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning) · 06b16890
      Michael Natterer authored
      2001-07-24  Michael Natterer  <mitch@gimp.org>
      
      	Port to glib/gtk+ 2.0 episode I (every segfault has it's beginning)
      
      	* configure.in: require glib/gtk+ >= 1.3.7, commented out the
      	gtkxmhtml stuff.
      
      	From now on, you will need glib, pango, atk and gtk+ HEAD from CVS
      	to hack or use GIMP HEAD.
      
      	Beware, it crashes randomly :)
      
      	* app/core/Makefile.am
      	* app/core/gimpmarshal.list: new file plus rules to generate
      	gimpmarshal.[ch] from it.
      
      	* app/core/*
      	* app/tools/*
      	* app/widgets/*
      	* libgimpwidgets/*: started to use the glib object system. All
      	core/ objects are still gtk objects however. All signals are
      	created using g_signal_new(). There are many gtk+ artefacts left.
      	Finally, we will _not_ use the gtk_signal_foo() wrappers and
      	friends any more.
      
      	* app/colormaps.c
      	* app/devices.[ch]
      	* app/disp_callbacks.c
      	* app/errorconsole.c
      	* app/file-save.[ch]
      	* app/interface.c
      	* app/module_db.c
      	* app/nav_window.c
      	* app/ops_buttons.c
      	* app/scroll.c
      	* app/user_install.c
      	* app/gui/about-dialog.c
      	* app/gui/brush-editor.c
      	* app/gui/brushes-commands.c
      	* app/gui/color-notebook.c
      	* app/gui/colormap-dialog.c
      	* app/gui/dialogs-commands.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradients-commands.c
      	* app/gui/image-commands.c
      	* app/gui/info-dialog.[ch]
      	* app/gui/layer-select.c
      	* app/gui/layers-commands.c
      	* app/gui/menus.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-editor.c
      	* app/gui/palettes-commands.c
      	* app/gui/patterns-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.[ch]
      	* app/gui/splash.c
      	* app/gui/tips-dialog.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* libgimp/gimpbrushmenu.c
      	* libgimp/gimpmenu.c
      	* libgimp/gimppatternmenu.c
      	* libgimp/gimpui.c
      	* libgimpbase/gimpenv.c: tons and tons of changes like "const
      	gchar*", switch from GdkDeviceInfo to GdkDevice (very incomplete
      	and currently disables), lots of s/gtk_signal/g_signal/,
      	removal/replacement of deprecated stuff,
      	s/GtkSignalFunc/GCallback/ and lots of small changes and fixes
      	while I was on it, zillions of warnings left...
      
      	* modules/Makefile.am: disabled the water color selector
      	temporarily (XInput issues).
      
      	* plug-ins/Makefile.am
      	* plug-ins/common/.cvsignore
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/plugin-defs.pl: simply excluded all plug-ins
      	which did not build (including Script-Fu). They are trivial to
      	fix.
      06b16890
  30. 07 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · 1bcd3e18
      Michael Natterer authored
      2001-07-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/context_manager.[ch]: removed.
      
      	* app/app_procs.c: call tool_mananger instead of context_manager
      	functions, pass "the_gimp" to some more functions.
      
      	* app/drawable.[ch]: pass a GimpContext to drawable_fill().
      
      	* app/errors.c: behave according to "stack_trace_mode" when using
      	the debugging signal handler.
      
      	* app/gimprc.[ch]: removed the core/ config variables.
      
      	* app/selection.c: set the selection's state to INVISIBLE in
      	selection_pause().
      
      	* app/core/Makefile.am
      	* app/core/gimpcoreconfig.[ch]: new files (the configuration
      	variables used by core/).
      
      	* app/core/gimpcontext.[ch]: removed the global contexts (user,
      	default, ...) and their functions. It's no longer possible to pass
      	NULL to the context functions to manipulate the current context
      	(gimpcontext.c doesn't know the current context any more).
      
      	* app/core/gimp.[ch]: added them here. The functions are now called
      	gimp_[set|get]_*_context(). Added gimp_create_context() which is
      	the only function to create contexts now.
      
      	* app/gui/dialogs.[ch]
      	* app/gui/gui.[ch]: pass "gimp" to all functions.
      
      	* app/tools/tool_manager.[ch]
      	* app/tools/tools.[ch]: pass "gimp" to lots of functions. Added
      	the "global_tool_context" logic and the global/non-global paint
      	options switching from the context_manager. Pass "gimp" to all
      	tools' "register" functions.
      
      	* app/tools/*: changed accordingly.
      
      	* app/devices.c
      	* app/disp_callbacks.c
      	* app/file-open.[ch]
      	* app/file-save.c
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/libgimp_glue.c
      	* app/module_db.c
      	* app/nav_window.c
      	* app/plug_in.c
      	* app/qmask.c
      	* app/undo.c
      	* app/base/base-config.c
      	* app/core/gimpbrushpipe.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpgradient.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimppalette.c
      	* app/core/gimptoolinfo.[ch]
      	* app/core/gimpundo.c
      	* app/gui/brush-select.c
      	* app/gui/channels-commands.c
      	* app/gui/color-area.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/palette-select.c
      	* app/gui/paths-dialog.c
      	* app/gui/pattern-select.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/gui/test-commands.c
      	* app/gui/tool-options-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimpimagedock.c
      	* app/widgets/gimplayerlistview.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/gradients_cmds.c
      	* app/pdb/palette_cmds.c
      	* app/pdb/patterns_cmds.c
      	* app/pdb/procedural_db.c
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/patterns.pdb: changed accordingly: remove usage
      	of gimp_context_[get|set]_*(NULL), create contexts with
      	gimp_create_context(). Get the user/current context with
      	gimp_get_[user|current]_context(). Added/removed access to the
      	global "the_gimp" variable in some places. Get the core's config
      	variables from "core_config".
      1bcd3e18
  31. 24 May, 2001 2 commits
    • Michael Natterer's avatar
      All tools are back :) · 170a9cbc
      Michael Natterer authored
      2001-05-25  Michael Natterer  <mitch@gimp.org>
      
      	All tools are back :)
      
      	* app/tools/Makefile.am
      	* app/tools/brightness_contrast.[ch]
      	* app/tools/color_balance.[ch]
      	* app/tools/curves.[ch]
      	* app/tools/histogram_tool.[ch]
      	* app/tools/hue_saturation.[ch]
      	* app/tools/levels.[ch]
      	* app/tools/posterize.[ch]
      	* app/tools/threshold.[ch]: removed...
      
      	* app/tools/gimpbrightnesscontrasttool.[ch]
      	* app/tools/gimpcolorbalancetool.[ch]
      	* app/tools/gimpcurvestool.[ch]
      	* app/tools/gimphistogramtool.[ch]
      	* app/tools/gimphuesaturationtool.[ch]
      	* app/tools/gimplevelstool.[ch]
      	* app/tools/gimpposterizetool.[ch]
      	* app/tools/gimpthresholdtool.[ch]: ...and ported to the new tool
      	system. Yes, the toolbox looks strange right now.
      
      	* app/tools/gimpimagemaptool.[ch]: base class for all image_map
      	tools. Does nothing at all right now.
      
      	* app/tools/gimpbucketfilltool.h: removed _new() function
      	declaration.
      
      	* app/tools/gimptool.c: removed obsolete stuff and STUB()s.
      
      	* app/tools/tools.c: register the new tools.
      
      	* app/menus.c: removed the #if 0 around the code which reorders
      	the color tool menu entries.
      
      	* app/app_procs.c
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/pdb/color.pdb
      	* app/pdb/color_cmds.c
      	* po/POTFILES.in: changed accordingly.
      170a9cbc
    • Michael Natterer's avatar
      config.guess new versions from CVS (at least that's what my debian package · 6a5242c0
      Michael Natterer authored
      2001-05-24  Michael Natterer  <mitch@gimp.org>
      
      	* config.guess
      	* config.sub: new versions from CVS (at least that's what my
      	debian package says...)
      
      	* app/Makefile.am
      	* app/gimppreviewcache.[ch]: removed.
      
      	* app/core/Makefile.am
      	* app/core/gimppreviewcache.c: added.
      
      	* app/core/gimpdrawable.c: reordered #includes
      
      	* app/apptypes.h: make ImageMap a proper opaque typedef, not
      	simply a gpointer.
      
      	* app/image_map.[ch]: changed accordingly. cleanup.
      
      	* app/tools/color_balance.h
      	* app/tools/curves.h
      	* app/tools/gimptool.c
      	* app/tools/histogram_tool.h
      	* app/tools/hue_saturation.h
      	* app/tools/threshold.h: changed here too.
      
      	* libgimpbase/gimpbasetypes.h: /*< skip >*/ GIMP_UNIT_PERCENT as
      	it's a UI convenience thing and no unit.
      
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimpwidgets/gimpbutton.c: maybe this change makes GimpButton
      	behave even more careful when changing GtkButton's private stuff.
      6a5242c0
  32. 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
  33. 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
  34. 29 Sep, 2000 1 commit
  35. 20 Jan, 2000 1 commit
  36. 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