1. 19 Apr, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/brush_header.h app/pattern_header.h · 26dee230
      Michael Natterer authored
      2001-04-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/brush_header.h
      	* app/pattern_header.h
      	* app/desaturate.[ch]
      	* app/equalize.[ch]
      	* app/invert.[ch]: removed.
      
      	* app/gimpbrush-header.h
      	* app/gimppattern-header.h
      	* app/gimpdrawable-desaturate.[ch]
      	* app/gimpdrawable-equalize.[ch]
      	* app/gimpdrawable-invert.[ch]: new files.
      
      	* app/gui/commands.c: put some stuff from desaturate, equalize and
      	invert here. While it's ok to check the drawable type in the
      	callback, this is the wrong place for PDB wrappers.
      
      	* app/gimpbrush.c
      	* app/gimpbrushpipe.c
      	* app/gimplayer.c
      	* app/gimppattern.c
      	* app/pdb/color_cmds.c
      	* plug-ins/common/gbr.c
      	* plug-ins/common/gih.c
      	* plug-ins/common/pat.c
      	* po/POTFILES.in
      	* tools/pdbgen/pdb/color.pdb: changed accordingly.
      26dee230
  2. 18 Apr, 2001 3 commits
    • Michael Natterer's avatar
      renamed ChannelOffsetType to GimpOffsetType. · 8de3fb64
      Michael Natterer authored
      2001-04-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpdrawable-offset.[ch]: renamed ChannelOffsetType to
      	GimpOffsetType.
      
      	* app/pdb/channel_ops_cmds.c
      	* libgimp/gimpchannelops_pdb.[ch]
      	* tools/pdbgen/pdb/channel_ops.pdb: removed.
      
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/image.pdb: put the "offset" and "duplicate"
      	functions where they belong.
      
      	* app/gui/offset-dialog.c
      	* app/pdb/Makefile.am
      	* app/pdb/drawable_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/Makefile.am
      	* libgimp/gimp_pdb.h
      	* libgimp/gimpdrawable_pdb.[ch]
      	* libgimp/gimpenums.h
      	* libgimp/gimpimage.h
      	* libgimp/gimpimage_pdb.[ch]
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enumcode.pl
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/groups.pl
      	* plug-ins/common/guillotine.c
      	* plug-ins/print/print.c
      	* plug-ins/script-fu/script-fu-constants.c: changed accordingly.
      8de3fb64
    • Michael Natterer's avatar
      app/Makefile.am removed · 63d3ff38
      Michael Natterer authored
      2001-04-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/channel_ops.[ch]: removed
      
      	* app/gimpdrawable-offset.[ch]
      	* app/gimpimage-duplicate.[ch]: new files without GUI.
      
      	* app/gui/Makefile.am
      	* app/gui/offset-dialog.[ch]: new files.
      
      	* app/gui/commands.c
      	* app/pdb/channel_ops_cmds.c
      	* po/POTFILES.in
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/pdb/channel_ops.pdb: changed accordingly.
      63d3ff38
    • Michael Natterer's avatar
      app/Makefile.am removed. new files: the convert functionality without GUI · addaad45
      Michael Natterer authored
      2001-04-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/convert.[ch]: removed.
      	* app/gimpimage-convert.[ch]: new files: the convert functionality
      	without GUI (now called gimp_image_convert()).
      
      	* app/gui/Makefile.am
      	* app/gui/convert-dialog.[ch]: new files.
      
      	* app/gui/commands.c
      	* app/pdb/convert_cmds.c
      	* po/POTFILES.in
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enums.pl: changed accordingly.
      addaad45
  3. 17 Apr, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am app/gui/Makefile.am app/about_dialog.[ch] · ddc91452
      Michael Natterer authored
      2001-04-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/gui/Makefile.am
      	* app/about_dialog.[ch]
      	* app/brush_edit.[ch]
      	* app/brush_select.[ch]
      	* app/channels_dialog.[ch]
      	* app/color_area.[ch]
      	* app/color_notebook.[ch]
      	* app/color_select.[ch]
      	* app/colormap_dialog.[ch]
      	* app/commands.[ch]
      	* app/file_new_dialog.[ch]
      	* app/gradient_editor.[ch]
      	* app/gradient_select.[ch]
      	* app/indicator_area.[ch]
      	* app/info_dialog.[ch]
      	* app/info_window.[ch]
      	* app/layer_select.[ch]
      	* app/layers_dialog.[ch]
      	* app/menus.[ch]
      	* app/palette.[ch]
      	* app/palette_import.[ch]
      	* app/palette_select.[ch]
      	* app/paths_dialog.[ch]
      	* app/pattern_select.[ch]
      	* app/preferences_dialog.[ch]
      	* app/session.[ch]
      	* app/test_commands.[ch]
      	* app/tips_dialog.[ch]
      	* app/toolbox.[ch]: moved to gui/ (s/_/-/ and some more useful
      	filenames on the way).
      
      	* app/app_procs.c
      	* app/context_manager.c
      	* app/convert.c
      	* app/disp_callbacks.c
      	* app/errorconsole.c
      	* app/file-open.c
      	* app/file-save.c
      	* app/file-utils.c
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/gimprc.c
      	* app/image_new.c
      	* app/interface.c
      	* app/nav_window.c
      	* app/path.c
      	* app/plug_in.c
      	* app/gui/dialogs-constructors.c
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/gradient_select_cmds.c
      	* app/pdb/pattern_select_cmds.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpcolorpanel.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* po/POTFILES.in: changed accordingly.
      ddc91452
  4. 13 Apr, 2001 1 commit
    • Michael Natterer's avatar
      removed the ID system from the pdb/ subdir... · 86dc6004
      Michael Natterer authored
      2001-04-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/pdb/procedural_db.[ch]: removed the ID system from the pdb/
      	subdir...
      
      	* app/gimpimage.[ch]: ...and temporarily added it back to GimpImage.
      
      	The ID stuff is not only used by the PDB but is a more general
      	type of service which is needed for the PDB, DND and some parts of
      	the GUI. Finally, a GimpFactory class with subclasses for data
      	objects, images etc. will maintain the ID spaces.
      
      	* app/colormap_dialog.c
      	* app/file-open.c
      	* app/file-save.c
      	* app/gdisplay.c
      	* app/gimpdnd.c
      	* app/gimpdrawable.c
      	* app/info_window.c
      	* app/lc_dialog.c
      	* app/nav_window.c
      	* app/palette_import.c
      	* app/paths_dialog.c
      	* app/plug_in.c
      	* app/xcf.c
      	* app/tools/gimptexttool.c
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/image.pdb: use GimpImage's ID functions.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/channel_ops_cmds.c
      	* app/pdb/convert_cmds.c
      	* app/pdb/display_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/fileops_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/paths_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/tools_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      86dc6004
  5. 11 Apr, 2001 1 commit
    • Michael Natterer's avatar
      configure.in new directory containing all widgets. Some of them will go to · 594496b1
      Michael Natterer authored
      2001-04-11  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* app/widgets/*: new directory containing all widgets. Some of them
      	will go to libgimpwidgets.
      
      	* app/color_panel.[ch]
      	* app/gimpbrushpreview.[ch]
      	* app/gimpconstrainedhwrapbox.[ch]
      	* app/gimpcontainergridview.[ch]
      	* app/gimpcontainerlistview.[ch]
      	* app/gimpcontainerview.[ch]
      	* app/gimpdatafactoryview.[ch]
      	* app/gimpdock.[ch]
      	* app/gimpdockable.[ch]
      	* app/gimpdockbook.[ch]
      	* app/gimpdrawablelistitem.[ch]
      	* app/gimpdrawablelistview.[ch]
      	* app/gimpdrawablepreview.[ch]
      	* app/gimpgradientpreview.[ch]
      	* app/gimpimagepreview.[ch]
      	* app/gimplayerlistitem.[ch]
      	* app/gimplayerlistview.{ch]
      	* app/gimplistitem.[ch]
      	* app/gimppalettepreview.[ch]
      	* app/gimppatternpreview.[ch]
      	* app/gimppreview.[ch]
      	* app/gimptoolinfopreview.[ch]
      	* app/gtkhwrapbox.[ch]
      	* app/gtkvwrapbox.[ch]
      	* app/gtkwrapbox.[ch]
      	* app/histogramwidget.[ch]: removed from here.
      
      	* app/Makefile.am
      	* app/appenums.h
      	* app/brush_select.c
      	* app/channels_dialog.c
      	* app/devices.c
      	* app/gimpdnd.c
      	* app/gimpdrawable-preview.c
      	* app/gimphistogram.h
      	* app/gradient_editor.c
      	* app/gradient_select.c
      	* app/indicator_area.c
      	* app/info_window.c
      	* app/palette.c
      	* app/palette_select.c
      	* app/pattern_select.c
      	* app/qmask.c
      	* app/test_commands.c
      	* app/toolbox.c
      	* app/pdb/color_cmds.c
      	* app/tools/paint_options.c
      	* app/tools/tool_options_dialog.c
      	* tools/pdbgen/pdb/color.pdb: changed accordingly.
      594496b1
  6. 07 Apr, 2001 1 commit
    • Michael Natterer's avatar
      app/paint_funcs.c app/paint_funcs.h removed the old files. · f6f19012
      Michael Natterer authored
      2001-04-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint_funcs.c
      	* app/paint_funcs.h
      	* app/paint_funcs_simd.S: removed the old files.
      
      	* tools/pdbgen/Makefile.am
      	* app/app_procs.c
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/desaturate.c
      	* app/disp_callbacks.c
      	* app/floating_sel.c
      	* app/gimage.c
      	* app/gimage_mask.c
      	* app/gimpchannel.c
      	* app/gimpdrawable-preview.c
      	* app/gimpdrawable.c
      	* app/gimpimage.c
      	* app/gimplayer.c
      	* app/gimplayermask.c
      	* app/global_edit.c
      	* app/image_map.c
      	* app/image_new.c
      	* app/layers_dialog.c
      	* app/temp_buf.c
      	* app/toolbox.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/paint-funcs/paint-funcs.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      f6f19012
  7. 31 Mar, 2001 5 commits
    • Michael Natterer's avatar
      app/apptypes.h pass the ToolOptions to the ToolOptionsResetFunc instead of · 0486fdab
      Michael Natterer authored
      2001-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/apptypes.h
      	* app/tools/tool_options_dialog.c: pass the ToolOptions to the
      	ToolOptionsResetFunc instead of a useless (void).
      
      	* app/tools/paint_options.[ch]
      	* app/tools/selection_options.[ch]: pass ToolOptions pointers here too.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c: changed accordingly. Removed many
      	"reset" callbacks which just redirected the call to
      	paint_options_reset() or selection_options_reset().
      0486fdab
    • Michael Natterer's avatar
      made undo_pop_paint() work again. · 2824801f
      Michael Natterer authored
      2001-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo.c: made undo_pop_paint() work again.
      
      	* app/tools/gimppainttool.[ch]: store the tool ID and the tool
      	type in the PaintUndo struct.
      
      	* app/tools/gimppenciltool.c: removed unused variable.
      
      	* app/tools/gimptool.c: removed and reordered STUB()s and cruft.
      2824801f
    • Michael Natterer's avatar
      app/tools/Makefile.am applied a patch from Dave Neary which re-activates · f81a8b00
      Michael Natterer authored
      2001-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/Makefile.am
      	* app/tools/gimpfliptool.[ch]: applied a patch from Dave Neary
      	which re-activates this tool. Enabled the tool options too.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimptexttool.c: trivial fixes.
      
      	* app/tools/gimptool.c: removed cruft.
      
      	* app/tools/gimptransformtool.[ch]: a special case for the flip
      	tool, cleanup.
      
      	* app/tools/tools.c: register the flip tool.
      f81a8b00
    • Michael Natterer's avatar
      re-enabled transform undo. Fixes the transform tool crashes. · 4ee31d0c
      Michael Natterer authored
      2001-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/undo.c: re-enabled transform undo. Fixes the transform tool
      	crashes.
      
      	* app/tools/gimptool.[ch]: put tool->ID back because the undo
      	system uses it. Also, a unique tool serial number will be not too
      	bad to have once we have module tools.
      
      	* app/tools/gimptransformtool.[ch]: changed accordingly.
      4ee31d0c
    • Michael Natterer's avatar
      app/Makefile.am lowlevel stuff taken out of the transform tool. · 47f987f8
      Michael Natterer authored
      2001-03-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/pixel_surround.[ch]: lowlevel stuff taken out of the transform
      	tool.
      
      	* app/tools/gimpscaletool.[ch]: minor cleanups, declare
      	gimp_scale_tool_register() publically.
      
      	* app/tools/gimptransformtool.[ch]: removed the PixelSurround stuff,
      	hardcode tr_tool->interactive to TRUE, removed the no_draw() function,
      	register the tool options, misc. other fixes and bad hacks that need
      	to go away.
      
      	(All this non-interactive stuff needs to be done outside the tool
      	system. A "non-interactive tool" is just pure nonsense)
      
      	* app/tools/gimptool.h: spacing.
      
      	* app/tools/tool_manager.c: tool_manager_register_tool_options():
      	return after warning, don't simply continue and crash.
      
      	* app/tools/tools.c: register the bezier select tool.
      47f987f8
  8. 30 Mar, 2001 1 commit
    • Michael Natterer's avatar
      some random cleanups in pre-historic code. · ce51c440
      Michael Natterer authored
      2001-03-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/app_procs.[ch]: some random cleanups in pre-historic code.
      
      	* app/fileops.c: useless cleanup (will be split into file-open.[ch]
      	and file-save.[ch] soon).
      
      	* app/gimppattern.c: implement GimpData's "duplicate" method.
      
      	* app/global_edit.c: cleanup in preparation for making a view on a
      	GimpContainer of cut buffers out of it.
      
      	* app/gradient_editor.c: don't let the name entry expand vertically.
      
      	* app/menus.c: typos.
      ce51c440
  9. 25 Mar, 2001 2 commits
    • 18:16:50  Adam D. Moss's avatar
      Define accessor function/macro for histogram reads and writes. This slows · f05240ac
      18:16:50 Adam D. Moss authored
      2001-03-25 18:16:50  Adam D. Moss <adam@gimp.org>
      
      	* app/convert.c: Define accessor function/macro for histogram
      	reads and writes.  This slows us down a little because we avoid
      	some of the dirty tricks we used when we knew that the histogram
      	was a straight 3d array, so I've recovered some of the speed loss
      	by implementing a 5d accessor function with good locality of
      	reference.  This change is the first step towards quantizing in a
      	more interesting colourspace than frumpy old RGB.
      f05240ac
    • Nate Summers's avatar
      scale tool! · cbbc1363
      Nate Summers authored
      cbbc1363
  10. 16 Mar, 2001 1 commit
    • Hans Breuer's avatar
      app/makefile.msc adapted to current state of file renaming/restructuring. · 787ffe3e
      Hans Breuer authored
      2001-03-16  Hans Breuer  <hans@breuer.org>
      
      	* app/makefile.msc
      	* app/tools/makefile.msc : adapted to current state of file
      	renaming/restructuring. Probably will break again soon ...
      
      	* app/context_manager.c : needs register_tools () prototype
      
      	* app/gimplist.c
      	* app/gimppalette-import.c : #include <string.h> for memcpy, strcmp
      	and friends
      
      	* app/pdb/fileops_cmds.c : #include <process.h>	/* for _getpid() */
      	(Yes I know that this is not the right place to change it, but hacking
      	pdbgen.pl to get platform specific headers is out of my scope)
      
      	* app/test_commands.c : explicit casts to (GimpSetDrawableFunc) make
      	it compile even with strict checks turned on.
      
      	* app/undo.c (undo_pop_paint) : return a value even if the function
      	does nothing at the moment (makes it compile)
      
      	* libgimp/gimp.def : updated
      
      	* libgimp/gimpcolorselector.h : include <gmodule.h> to make
      	gimp_color_selector_(un)register prototypes conform to their
      	implementation
      
      	* libgimp/gimpfeatures.h : reflect 1.3 version
      
      	* libgimpmath/gimpmatrix.c
      	* libgimpwidgets/gimpdialog.c : more <string.h> inclusion
      
      	* libgimp/makefile.msc : moved gimpadativesupersample.c to
      	libgimpcolor, which makes it reusable from the core, too.
      
      	* libgimp/gimp.def : updated
      
      	* libgimp/gimpproceduraledb.c : #include <string.h>
      
      	* libgimpcolor/gimpcolor.def
      	* libgimpcolor/makefile.msc : added gimpadaptivesupersample
      
      	* libgimpmath/gimpmatrix.c : #include <string.h> for memcmp
      	* libgimpwidgets/gimpdialog.c - " - for strcmp
      787ffe3e
  11. 15 Mar, 2001 1 commit
  12. 12 Mar, 2001 1 commit
    • Michael Natterer's avatar
      pixmaps/Makefile.am new pixmap. "Someone" needs to go over the pixmaps one · 16fa029b
      Michael Natterer authored
      2001-03-12  Michael Natterer  <mitch@gimp.org>
      
      	* pixmaps/Makefile.am
      	* pixmaps/edit.xpm: new pixmap. "Someone" needs to go over the
      	pixmaps one day ;)
      
      	* app/gimpdatafactoryview.c
      	* app/gimpdrawablelistview.c: use the new icon.
      
      	* app/floating_sel.c: stupid: the new gimp_layer_get_opacity()
      	accessor speaks in normalized [0.0..1.0] values, so the
      	floating selection was invisible after blindly using it.
      
      	* app/gimpimage.c: more stupid: a totally useless sanity clamping
      	made the composite preview ugly. Fixed.
      
      	* app/tools/tool_manager.c: why the heck did this never crash before:
      	don't dereference a NULL GDisplay pointer.
      16fa029b
  13. 11 Mar, 2001 3 commits
    • Michael Natterer's avatar
      minor cleanups. · 543bf745
      Michael Natterer authored
      2001-03-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimplayerlistview.c: minor cleanups.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpblendtool.[ch]: back again.
      
      	* app/tools/gimptool.[ch]
      	* app/tools/paint_options.c
      	* app/tools/tools.c: changed accordingly.
      543bf745
    • Michael Natterer's avatar
      app/Makefile.am app/apptypes.h new subclass of GimpDrawableListView (the · b51d761f
      Michael Natterer authored
      2001-03-11  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/apptypes.h
      	* app/gimplayerlistview.[ch]: new subclass of GimpDrawableListView
      	(the upcoming replacement of the layers dialog). Connects to the
      	new GimpLayer signals using the layer container as signal proxy
      	(see below).
      
      	* app/gimpcontainerview.[ch]: made "set_container" a virtual
      	function.  This is needed by the GimpLayerListView to
      	connect/disconnect signals. Subclasses implementing this method
      	MUST obey the following order of instructions:
      
      	1. disconnect from signals related to GimpContainerView->container
      	2. chain up (!!!)
      	3. connect to signals related to GimpContainerView->container
      
      	And yes, I will add DocBook files for all those new objects :)
      
      	* app/gimppreview.[ch]: made "border_color" a GimpRGB instead of
      	guchar[3]. Added gimp_preview_set_border_color().
      
      	* app/gimpcontainergridview.c
      	* app/gimplayerlistitem.c: use gimp_preview_set_border_color().
      
      	* app/gimpcontainerlistview.c
      	* app/gimpdrawablelistview.c: cleanup.
      
      	* app/gimpdrawablelistitem.c: we can safely asume that our parent
      	widget is a GimpDrawableListView and use it's "reorder_drawable"
      	function pointer (after checking that it's there).
      
      	* app/gimplistitem.c: connect the correct DND type when changing
      	the container of a list item with "reorderable" enabled.
      
      	* app/gimplayer.[ch]: added accessors and "*_changed" signals for
      	layer->mode, layer->opacity and layer->preserve_trans.
      
      	* app/disp_callbacks.c: fixed a FIXME: use the correct bucket fill
      	tool context again.
      
      	* app/tools/paint_options.[ch]: paint_mode_menu_new(): added a
      	boolean which toggles the "Behind" item on/off to the same
      	constructor can be used for all paint mode menus.
      
      	* app/tools/gimptoolinfo.c: rect. select is the standard tool again.
      
      	* app/brush_select.c
      	* app/floating_sel.c
      	* app/gimpimage.c
      	* app/layers_dialog.c
      	* app/pdb/layer_cmds.c
      	* app/tools/gimpeditselectiontool.c
      	* tools/pdbgen/pdb/layer.pdb: use the new layer accessors and the
      	paint_mode_menu constructor.
      
      	* app/commands.c
      	* app/gdisplay.c
      	* app/menus.c
      	* app/undo.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimptool.c
      	* app/tools/paint_options.c
      	* app/tools/tool_manager.c: put the #warning's back inside
      	#ifdef __GNUC__
      b51d761f
    • Garry R. Osgood's avatar
      Garry R. Osgood <grosgood@rcn.com> · b8a72df5
      Garry R. Osgood authored
      * app/Makefile.am
      Inclusion of David's MMX code into Makefile now
      depends on prior definition of HAVE_ASM_MMX.
      * app/pdb/procedural_db.c
      Line 276 cast of va_args to type GimpRGB seems
      very problematical on SGI, as the va_args macro
      expands to Extreme Ugliness and
      (GimpRGB)(Extreme Ugliness) does not compile.
      RH Linux seems indifferent and accepts either.
      * app/commands.c
      * app/gdisplay.c
      * app/menus.c
      * app/plug_in_cmds.c
      * app/undo.c
      * app/tools/gimppainttool.c
      * app/tools/gimptool.c
      * app/tools/paint_options.c
      * app/tools/tool_manager.c
      s|#<remark about extreme buggedness>|
      /* #<remark about extreme buggedness> */|
      Not all compilers are at peace with non-standard
      pre-compiler directives. SGI MIPs compilers are
      among the latter species.
      b8a72df5
  14. 10 Mar, 2001 1 commit
  15. 09 Mar, 2001 1 commit
  16. 08 Mar, 2001 2 commits
    • Michael Natterer's avatar
      app/apptypes.h app/channel_ops.c app/commands.c app/convert.[ch] · 469faaf3
      Michael Natterer authored
      2001-03-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/apptypes.h
      	* app/channel_ops.c
      	* app/commands.c
      	* app/convert.[ch]
      	* app/fileops.c
      	* app/floating_sel.c
      	* app/gimage.h
      	* app/gimage_mask.[ch]
      	* app/gimpchannel.c
      	* app/global_edit.h
      	* app/image_map.c
      	* app/layer_select.[ch]
      	* app/layers_dialogP.h
      	* app/lc_dialog.c
      	* app/resize.c
      	* app/toolbox.c
      	* app/undo.h
      	* app/undo_history.c
      	* app/xcf.c
      	* app/tools/gimpbycolorselecttool.h
      	* app/tools/gimpcroptool.[ch]
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimppainttool.c
      	* app/tools/transform_core.h: removed the GImage typedef, cleanup.
      469faaf3
    • Michael Natterer's avatar
      app/tools/Makefile.am lots of files renamed to gimp*tool.[ch] · 1d987a3b
      Michael Natterer authored
      2001-03-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/Makefile.am
      	* app/tools/[almost *]: lots of files renamed to gimp*tool.[ch]
      
      	* app/commands.c
      	* app/context_manager.c
      	* app/disp_callbacks.c
      	* app/gdisplay.c
      	* app/gimage.c
      	* app/gimage_mask.c
      	* app/gimpdnd.c
      	* app/gimprc.c
      	* app/global_edit.c
      	* app/info_window.c
      	* app/scale.c
      	* app/scroll.c
      	* app/undo.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/tools_cmds.c
      	* po/POTFILES.in
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/enums.pl
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      1d987a3b
  17. 06 Mar, 2001 1 commit
    • Michael Natterer's avatar
      removed the layer mask functions. · af76f2bb
      Michael Natterer authored
      2001-03-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimage.[ch]: removed the layer mask functions.
      
      	* app/gimpchannel.[ch]: added a boolean "dummy" parameter to
      	gimp_channel_copy() so it has the same signature as
      	gimp_layer_copy() and can be used by the GimpDrawableListView to
      	generically duplicate drawables.
      
      	* app/gimpcontainerview.c: call "select_item" with a NULL item
      	before changing the underlying GimpContainer so subclasses have
      	a chance to update (e.g. set button sensitivity).
      
      	* app/gimpdnd.c: folded all the GtkType comparing code into a
      	utility function (much more readable now).
      
      	* app/gimpdrawablelistview.[ch]: activated the "raise", "lower",
      	"duplicate" and "delete". I'm not really happy with all those
      	function pointers passed to the constructor (and the dummy
      	parameters I've added to some GimpChannel functions) -- OTOH the
      	generic view maybe worth the "gboolean dummy" cruft hanging around
      	in the channel class.
      
      	* app/gimplayer.[ch]: removed the "apply_mask", "edit_mask" and
      	"show_mask" booleans ...
      
      	* app/gimplayermask.[ch]: .. and added them here together with
      	proper accessors and "*_changed" signals.
      
      	This also makes the layer mask undo code much clearer as we don't
      	have to store the booleans separately.
      
      	* app/gimplayerlistitem.c: badly hacked to acheive the correct
      	indicator being drawn around the active drawable. This needs
      	a new GimpPreview function for setting the border color.
      
      	* app/gimplistitem.c: smaller horizontal spacing.
      
      	* app/gimppreview.[ch]: added the "border_width" parameter also to
      	gimp_preview_set_size() so we can modify all previews the same way
      	after creation.
      
      	* app/layers_dialog.c: no need to push an undo group around
      	the "duplicate layer" code. Was this an artefact or did I miss
      	something here ???
      
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/gimage_mask.c
      	* app/gimpcontainergridview.c
      	* app/gimpcontainerlistview.c
      	* app/gimpdrawablelistitem.c
      	* app/gimpimage.[ch]
      	* app/qmask.c
      	* app/test_commands.c
      	* app/undo.c
      	* app/xcf.c
      	* app/pdb/channel_cmds.c
      	* tools/pdbgen/pdb/channel.pdb
      	* app/pdb/selection_cmds.c
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/internal_procs.c
      	* app/pdb/layer_cmds.c
      	* libgimp/gimplayer_pdb.[ch]
      	* tools/pdbgen/pdb/layer.pdb: commented out the layer mask accessors
      	from the perl code, so the functions temporarily disappeared all
      	over the place.
      
      	* plug-ins/Makefile.am: don't build XJT until the layer mask stuff
      	is back.
      
      	* pixmaps/eye.xpm: cropped it to it's minimal size.
      af76f2bb
  18. 05 Mar, 2001 1 commit
    • Sven Neumann's avatar
      app/Makefile.am app/apptypes.h app/gimpimage-undo.[ch] app/gimpundo.[ch] · 75e8e387
      Sven Neumann authored
      2001-03-05  Sven Neumann  <sven@gimp.org>
      
      	* app/Makefile.am
      	* app/apptypes.h
      	* app/gimpimage-undo.[ch]
      	* app/gimpundo.[ch]
      	* app/gimpundostack.[ch]: added new GimpUndo and GimpUndoStack objects
      	which will be used for the upcoming new undo system. Actually my
      	current plan for the undo system is to keep it pretty much as it is...
      
      	* app/gimpimage.[ch]: added new GimpUndoStacks but temporarily kept
      	old GSLists around, so I don't break everything now.
      75e8e387
  19. 04 Mar, 2001 3 commits
    • Michael Natterer's avatar
      app/gimpbrushpreview.c app/gimpgradientpreview.c app/gimppalettepreview.c · a1778515
      Michael Natterer authored
      2001-03-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpbrushpreview.c
      	* app/gimpgradientpreview.c
      	* app/gimppalettepreview.c
      	* app/gimppatternpreview.c
      	* app/gimptoolinfopreview.c: removed all dnd code ...
      
      	* app/gimppreview.c: ... and put it where is belongs.
      
      	* app/gimpcontext.c: use g_type_is_a() instead of comparing the
      	types directly.
      
      	* app/gimpdnd.[ch]: same g_type_is_a() fix here. New function
      	gimp_dnd_viewable_source_unset().
      
      	* app/gimpdrawablelistitem.c: gtk_signal_connect_while_alive() to
      	GimpDrawable's "visibility_changed" fixes a crash here.
      
      	* app/gimplayerlistitem.c: check more strictly if DND reordering
      	of layers is allowed.
      
      	* app/gimplistitem.c: more DND reordering checking.
      	Start drawing the drop indicator at x = name_label->allocation.x
      	(looks better IMHO).
      a1778515
    • Michael Natterer's avatar
      app/Makefile.am app/apptypes.h new widget derived from · 9860ad1b
      Michael Natterer authored
      2001-03-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/apptypes.h
      	* app/gimplayerlistitem.[ch]: new widget derived from
      	GimpDrawableListItem (additionally displays the layer mask),
      
      	* app/gimplistitem.[ch]: added the preview_size to the struct so
      	subclasses can create previews at arbitrary times. Removed the
      	"preview_size" parameter from "set_viewable".
      
      	* app/gimpimage.[ch]: removed the layer mask functions because
      	they belong to GimpLayer.
      
      	* app/gimplayer.[ch]: folded the layer mask code from GimpImage
      	into GimpLayer's layer mask functions. Added a "mask_changed"
      	signal which is emitted when a mask is added/removed. Added
      	"push_undo" parameters to the functions so we can use them from
      	the undo system.
      
      	* app/undo.c: instead of badly poking the GimpLayer struct, use
      	the accessors with push_undo = FALSE.
      
      	* app/gimage_mask.c
      	* app/gimpdrawablelistitem.c
      	* app/layers_dialog.c
      	* app/xcf.c
      	* app/pdb/image_cmds.c
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      9860ad1b
    • Michael Natterer's avatar
      new function gimp_drawable_set_visible(). Renamed gimp_drawable_visible() · 65235b91
      Michael Natterer authored
      2001-03-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimpdrawable.[ch]: new function gimp_drawable_set_visible().
      	Renamed gimp_drawable_visible() to gimp_drawable_get_visible().
      	Added a "visibility_changed" signal.
      
      	* app/gimplistitem.[ch]: new virtual function "set_viewable"
      	which allows subclasses to connect to the viewable's signals.
      
      	* app/gimpdrawablelistitem.[ch]: added an eye button. Implement
      	"set_viewable" to connect to the "visibility_changed" signal.
      
      	* app/gimpchannel.[ch]: removed unused function
      	gimp_channel_toggle_visibility().
      
      	* app/channels_dialog.c
      	* app/floating_sel.c
      	* app/gimage_mask.c
      	* app/gimpimage.c
      	* app/gimplayer.c
      	* app/layers_dialog.c
      	* app/xcf.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/pdb_glue.h
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb: removed direct access of
      	drawable->visible and use the functions instead. Also makes PDB
      	code generation nicer.
      
      	* pixmaps/eye.xpm: cropped it a bit.
      65235b91
  20. 01 Mar, 2001 1 commit
  21. 28 Feb, 2001 3 commits
    • jaycox's avatar
      app/appenums.h app/gimplayer.c When adding a layer mask allow the option · b56e0e18
      jaycox authored
      
      	* app/appenums.h
      	* app/gimplayer.c
      	* app/layers_dialog.c: When adding a layer mask allow the option
      	of using the current selection (or it's inverse) to initialise
      	the mask.
      b56e0e18
    • Michael Natterer's avatar
      app/gdisplay.c app/gimage.c. #include "tools/tool.h" · a138eae7
      Michael Natterer authored
      2001-02-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/gdisplay.c
      	* app/gimage.c. #include "tools/tool.h"
      
      	* app/tools/edit_selection.[ch]: the arrow_key function is not
      	a method of edit_selection but of any tool that needs it.
      
      	* app/tools/gimppaintbrushtool.c: removed variables.
      
      	* app/tools/move.c: use the arrow_key function.
      
      	* app/tools/tool_manager.h: removed the include of "tool.h"
      a138eae7
    • Michael Natterer's avatar
      app/tools/Makefile.am one more... · 4e3b5a1e
      Michael Natterer authored
      2001-02-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/Makefile.am
      	* app/tools/bucket_fill.[ch]: one more...
      
      	* app/tools/fuzzy_select.c: everything commented out except the
      	find_region stuff.
      
      	* app/tools/gimpcolorpickertool.c: cosmetic.
      
      	* app/tools/paint_options.c: #include "bucket_fill.h"
      
      	* app/tools/tool.[ch]: removed STUB()'s.
      
      	* app/tools/tools.c: register it.
      4e3b5a1e
  22. 27 Feb, 2001 4 commits
    • Michael Natterer's avatar
      made the global_paint_options public. · 3d78cbd5
      Michael Natterer authored
      2001-02-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/context_manager.[ch]: made the global_paint_options public.
      
      	* app/tools/gimptoolinfo.[ch]: added a "tool_context" boolean to
      	the constructor and create a private context for the tool
      	initialized with global_paint_options's values.
      
      	* app/tools/tool_manager.[ch]: changed tool_manager_register_tool()
      	accordingly.
      
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/measure.c
      	* app/tools/move.c
      	* app/tools/text_tool.c: changed accordingly.
      
      	* app/tools/paint_options.[ch]: added the fade out and gradient
      	options here so they can be used by all paint tools.
      
      	* app/tools/gimppaintbrushtool.c: removed them here. Changed
      	the non_gui stuff: removed the non_gui_paint_func and handle
      	the non_gui stuff in the normal paint method. Allocate a
      	non_gui_paintbrush instead of the old non_gui_paint_core.
      
      	The non_gui stuff will change totally and will be handled
      	by GimpPaintTool only.
      
      	* app/tools/tool.c: removed the STUB()'s again.
      3d78cbd5
    • Michael Natterer's avatar
      build the measure tool again. · 84b634f2
      Michael Natterer authored
      2001-02-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/Makefile.am: build the measure tool again.
      
      	* app/tools/gimpcolorpickertool.c: correct prototypes for some
      	functions so we don't get warnings about incompatible assignments
      	in "class_init", chain up in "control".
      
      	* app/tools/gimpdrawtool.c: added an implementation of "control"
      	which can be called from subclasses so we don't need to call
      	GimpDrawTool's methods directly from there.
      
      	* app/tools/gimppaintbrushtool.[ch]: create it's tool options so it
      	doesn't crash. Commented out the non_gui stuff. We need a different
      	interface for this.
      
      	* app/tools/gimppainttool.[ch]: some cleanups: call the draw tool's
      	"control" function, fixed "cursor_update", fixed indentation.
      
      	* app/tools/measure.[ch]: made it work again (properly subclass
      	GimpDrawTool).
      
      	* app/tools/tool.c: re-added the non_gui paintbrush STUB()'s
      
      	* app/tools/tools.c: don't allocate the non_gui stuff.
      	GimpPaintTool is an abstract superclass, so we cannot create
      	an instance of it. Moreover, the current non_gui stuff assumes
      	that there is something like a "paint_core" and changes it's
      	virtual function pointers, breaking the object system totally.
      84b634f2
    • Michael Natterer's avatar
      app/apptypes.h app/Makefile.am new widget. The upcoming replacement for · 8e3259d0
      Michael Natterer authored
      2001-02-27  Michael Natterer  <mitch@gimp.org>
      
      	* app/apptypes.h
      	* app/Makefile.am
      	* app/gimpdrawablelistview.[ch]: new widget. The upcoming replacement
      	for the layers and channels dialogs.
      
      	* app/test_commands.[ch]: put the test dialogs here...
      
      	* app/commands.[ch]: ... and made this one clean again.
      
      	* app/gimpcontainergridview.c
      	* app/gimpcontainerlistview.c
      	* app/gimpcontainerview.[ch]: some signal handling fine tuning.
      
      	* app/gimpimage.[ch]: emits "active_layer_changed" and
      	"active_channel_changed" signals now. The semantics of
      	gimage->active_layer and gimage->active_channel have changed a bit.
      	We now have either an active layer _or_ and active channel (there
      	is no active layer any more if a channel is active).
      
      	* app/channel_ops.c
      	* app/floating_sel.c
      	* app/gdisplay.c
      	* app/layers_dialog.c
      	* app/menus.c: changed accordingly.
      
      	* app/tools/gimpcolorpickertool.c: actually assign the draw_class
      	vraiable in the class_init function.
      
      	* app/tools/gimpdrawtool.[ch]
      	* app/tools/tool.c: removed the _new() functions because these
      	objects are abstract superclasses. Did some cleanup.
      	Nathan, please configure you editor to _not_ produce any tabs
      	in the source code.
      
      	* app/tools/gimppaintbrushtool.[ch]: "blurb" and "help" are tagged
      	with _(), not N_(). Put the register function to the header.
      
      	* po/POTFILES.in: made it compile again.
      8e3259d0
    • Nate Summers's avatar
      Introduced GimpPaintTool and GimpDrawTool · 80a8d5a7
      Nate Summers authored
      80a8d5a7
  23. 25 Feb, 2001 1 commit
    • Michael Natterer's avatar
      app/channel_ops.c app/channels_dialog.c app/commands.c app/floating_sel.c · 2fd2a4e6
      Michael Natterer authored
      2001-02-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/channel_ops.c
      	* app/channels_dialog.c
      	* app/commands.c
      	* app/floating_sel.c
      	* app/gdisplay.c
      	* app/gimpimage.[ch]
      	* app/layer_select.c
      	* app/layers_dialog.c
      	* app/undo.c
      	* app/xcf.c
      	* app/tools/move.c: remove direct access of gimage->active_layer and
      	gimage->active_channel. Reading access is of course harmless, but
      	gimp_image_set_active_blah() will trigger a signal emission soon.
      
      	It will probably be neccessary to change the functions to accept
      	NULL layers and channels to acheive exactly what weird places like
      	floating_sel.c did before by setting it directly.
      
      	* gimptool-1.4.in
      	* libgimp/Makefile.am
      	* libgimpcolor/Makefile.am
      	* libgimpmath/Makefile.am
      	* libgimpwidgets/Makefile.am
      	* plug-ins/libgck/gck/Makefile.am: made linking against stable
      	GIMP installed in the same prefix work again by renaming all our
      	libraries explicitly to libgimp<foo>-1.3.* (not as part of the
      	libtool revision but as part of the library name). Removed the
      	libtool revision to avoid double versioning. This has to be
      	hardcoded in the libraries' Makefile.am ...
      
      	* app/Makefile.am
      	* plug-ins/FractalExplorer/Makefile.am
      	* plug-ins/Lighting/Makefile.am
      	* plug-ins/MapObject/Makefile.am
      	* plug-ins/bmp/Makefile.am
      	* plug-ins/common/Makefile.am
      	* plug-ins/common/mkgen.pl
      	* plug-ins/dbbrowser/Makefile.am
      	* plug-ins/faxg3/Makefile.am
      	* plug-ins/fits/Makefile.am
      	* plug-ins/flame/Makefile.am
      	* plug-ins/fp/Makefile.am
      	* plug-ins/gap/Makefile.am
      	* plug-ins/gdyntext/Makefile.am
      	* plug-ins/gfig/Makefile.am
      	* plug-ins/gflare/Makefile.am
      	* plug-ins/gfli/Makefile.am
      	* plug-ins/gimpressionist/Makefile.am
      	* plug-ins/helpbrowser/Makefile.am
      	* plug-ins/ifscompose/Makefile.am
      	* plug-ins/imagemap/Makefile.am
      	* plug-ins/maze/Makefile.am
      	* plug-ins/mosaic/Makefile.am
      	* plug-ins/pagecurl/Makefile.am
      	* plug-ins/plugin-helper/Makefile.am
      	* plug-ins/print/Makefile.am
      	* plug-ins/rcm/Makefile.am
      	* plug-ins/script-fu/Makefile.am
      	* plug-ins/sel2path/Makefile.am
      	* plug-ins/sgi/Makefile.am
      	* plug-ins/webbrowser/Makefile.am
      	* plug-ins/xjt/Makefile.am: ... while all other Makefiles can simply
      	link against "libgimp<foo>-$(LT_REVISION).la"
      2fd2a4e6