1. 03 Sep, 2003 2 commits
    • Michael Natterer's avatar
      removed the _value() and _is_empty() wrappers. · e8378499
      Michael Natterer authored
      2003-09-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: removed the _value() and
      	_is_empty() wrappers.
      
      	* app/display/gimpdisplayshell.[ch]: removed
      	gimp_display_shell_mask_value() since it is not used.
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/gui/image-menu.c
      	* app/gui/vectors-menu.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/misc_tools.pdb: changed accordingly.
      
      	* app/pdb/misc_tools_cmds.c: regenerated.
      e8378499
    • Michael Natterer's avatar
      removed the feather(), sharpen(), all(), invert(), border(), grow() and · 6ce4e710
      Michael Natterer authored
      2003-09-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: removed the feather(), sharpen(),
      	all(), invert(), border(), grow() and shrink() wrappers.
      
      	* app/core/gimpselection.[ch]: changed gimp_selection_invalidate()
      	and gimp_selection_push_undo() to take GimpChannel parameters, not
      	GimpSelection ones. They will be made virtual GimpChannel
      	functions anyway.
      
      	* app/core/gimpedit.c
      	* app/gui/select-commands.c
      	* app/widgets/gimpselectioneditor.c
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/selection_cmds.c: regenerated.
      6ce4e710
  2. 26 May, 2003 1 commit
    • Michael Natterer's avatar
      added "gint ref_count" to the TileManager struct. · 707e5976
      Michael Natterer authored
      2003-05-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/base/tile-manager-private.h: added "gint ref_count" to the
      	TileManager struct.
      
      	* app/base/tile-manager.[ch]: replaced tile_manager_destroy()
      	by tile_manager_ref() and tile_manager_unref().
      
      	* app/core/gimpimage-undo-push.c: ref the tile managers stored in
      	the undo system and DON'T destroy them if no undo could be pushed.
      	Should fix the remaining crashes with undo disabled like in
      	bug #9350.
      
      	(!!!) Note that the tiles passed to gimp_image_undo_push_image()
      	and gimp_drawable_push_undo() as well as the tile managers of
      	drawables passed to gimp_image_undo_push_[layer|channel]_mod()
      	must be unref'ed by the caller now.
      
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste):
      	don't take ownership of the passed tiles but ref them if needed.
      
      	(!!!) Callers must unref the passed tiles themselves now.
      
      	* app/core/gimpbuffer.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/paint/gimppaintcore.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimptransformtool-undo.c
      	* app/tools/gimptransformtool.c: changed accordingly.
      707e5976
  3. 08 May, 2003 2 commits
    • Michael Natterer's avatar
      removed gimp_drawable_offsets(). · c1ab39a5
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed gimp_drawable_offsets().
      
      	* app/core/gimpitem.[ch]: added gimp_item_offsets().
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c: regenerated.
      c1ab39a5
    • Michael Natterer's avatar
      More transform virtualization preparation: · 4136e61d
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	More transform virtualization preparation:
      
      	* app/core/gimpdrawable.[ch]: removed "width", "height", "offset_x"
      	and "offset_y"...
      
      	* app/core/gimpitem.[ch]: ...and added them here.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/text/gimptext-compat.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      4136e61d
  4. 25 Mar, 2003 1 commit
    • Sven Neumann's avatar
      Makefile.am removed this header file. · 28fddfd5
      Sven Neumann authored
      2003-03-25  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am
      	* gimpintl.h: removed this header file.
      
      	* gimpmiscui.c: include libgimp-intl.h.
      
      	* gimp.c (gimp_main): call setlocale() and bind to the libgimp
      	textdomain so that plug-ins don't need to do that explicitely.
      
      	* libgimp/stdplugins-intl.h: added the functionality that used to
      	live in gimpintl.h and removed the libgimp related stuff. Got rid
      	of the INIT_I18N_UI() macro.
      
      	* plug-ins/*/*.c: removed all occurances of INIT_I18N_UI().
      	Plug-ins simply call INIT_I18N() once in their run() function.
      
      	* plug-ins/script-fu/script-fu-intl.h: added the functionality
      	that used to live in gimpintl.h and removed the libgimp related
      	stuff.
      
      	* app/Makefile.am
      	* app/gimp-intl.h: new file that defines the gettext macros for
      	the GIMP core.
      
      	* app/*/*.c: include gimp-intl.h instead of libgimp/gimpintl.h.
      
      	* plug-ins/script-fu/scripts/test-sphere.scm: fixed typos.
      28fddfd5
  5. 17 Feb, 2003 1 commit
    • Michael Natterer's avatar
      pass more detailed undo_desc strings instead of always "Fill". · 0da22124
      Michael Natterer authored
      2003-02-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpedit.c (gimp_edit_fill): pass more detailed
      	undo_desc strings instead of always "Fill".
      
      	* app/core/gimpimage-mask-select.c: changed undo_desc strings
      	to match the already existing blurbs of the selection tools.
      0da22124
  6. 14 Feb, 2003 1 commit
    • Michael Natterer's avatar
      Moved the undo step implementations to the core and pass around lots of · 7a6a8d9d
      Michael Natterer authored
      2003-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Moved the undo step implementations to the core and pass around
      	lots of "const gchar *undo_desc". Fixes bug #104367.
      
      	* app/Makefile.am
      	* app/undo.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-undo-push.[ch]: ...and added here.
      
      	* app/paint/Makefile.am
      	* app/tools/Makefile.am
      	* app/paint/gimppaintcore-undo.[ch]
      	* app/tools/gimptransformtool-undo.[ch]: new files for the
      	paint and transform undos.
      
      	* app/core/gimppaintinfo.[ch]: added a blurb.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint-types.h
      	* app/paint/paint.c: pass the blurb when registering the core.
      
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-mask-select.[ch]
      	* app/core/gimpimage-mask.[ch]
      	* app/core/gimpimagemap.[ch]
      	* app/core/gimplayer-floating-sel.[ch]: added "undo_desc" parameters
      	to all undo pushing helper functions.
      
      	* app/undo_history.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-open.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistview.c
      	* app/widgets/gimpselectioneditor.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: changed accordingly: pass
      	"undo_desc" strings, changed includes or simply removed inclusion
      	of "undo.h". Some random cleanups.
      
      	* tools/pdbgen/pdb/guides.pdb: cleaned up a lot. Fixed
      	gimp_image_find_next_guide() to not return guides with
      	position < 0 (and made it shorter and readable).
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c: regenerated.
      7a6a8d9d
  7. 13 Feb, 2003 1 commit
    • Michael Natterer's avatar
      changed FOO_UNDO enum values to GIMP_UNDO_FOO. · b600fd86
      Michael Natterer authored
      2003-02-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: changed FOO_UNDO enum values to
      	GIMP_UNDO_FOO.
      
      	* app/undo.[ch]: removed the undo group wrappers.
      
      	* app/undo_history.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo.c
      	* app/core/gimpimage.c
      	* app/core/gimpitem.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimppaintcore.c
      	* app/text/gimptext-compat.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/undo.pdb: changed accordingly. Pass meaningful
      	undo names to gimp_image_undo_group_start().
      
      	* app/pdb/layer_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      b600fd86
  8. 05 Jan, 2003 1 commit
  9. 02 Jan, 2003 1 commit
    • Michael Natterer's avatar
      Replaced Garry's fix for bug #98843 by a more general solution which stops · ea95a322
      Michael Natterer authored
      2003-01-02  Michael Natterer  <mitch@gimp.org>
      
      	Replaced Garry's fix for bug #98843 by a more general solution
      	which stops the active tool when an undo group start is pushed:
      
      	* app/core/gimpimage.[ch]: removed the "layer_merge" signal
      	and added "undo_start" instead.
      
      	* app/undo.c: emit "undo_start" in undo_push_group_start()
      	_before_ checking if gimage->undo_on is TRUE.
      
      	* app/tools/tool_manager.c: connect to "undo_start" and HALT the
      	active tool if neccessary.
      
      	* app/core/core-types.h: added EDIT_COPY_UNDO_GROUP.
      
      	* app/core/gimpedit.c: push an undo group around the copy
      	operation. Will probably have to add more undo group types to wrap
      	other critical image modifications with.
      
      	* app/core/gimpimage-merge.c
      	* app/gui/convert-dialog.c
      	* app/gui/edit-commands.c
      	* app/gui/test-commands.c
      	* app/tools/gimpimagemaptool.c: removed all special code to
      	stop the active tool.
      ea95a322
  10. 20 Aug, 2002 1 commit
    • Michael Natterer's avatar
      Make sure the selection (gimpimage-mask.c) functionality is really built · 33bba657
      Michael Natterer authored
      2002-08-20  Michael Natterer  <mitch@gimp.org>
      
      	Make sure the selection (gimpimage-mask.c) functionality is really
      	built *on top* of the GimpChannel functionality:
      
      	* app/undo.[ch]: renamed undo_push_image_mask() to
      	undo_push_mask() and generalized it's API to take a GimpChannel
      	param so undos can be pushed for channels which are not the
      	image's selection. Simplified the API and added code which copies
      	the region of interest instead of leaving this to callers.
      
      	* app/undo_types.h: s/IMAGE_MASK_UNDO/MASK_UNDO/
      
      	* app/undo_history.c: changed accordingly.
      
      	* app/core/gimpchannel.[ch]: don't #include "gimpimage-mask.h".
      	Changed gimp_channel_push_undo() to really push a channel undo,
      	not a selection undo. Added "gboolean push_undo" params to all
      	functions which are called from gimpimage-mask.c. Various cleanups
      	and optimizations. Added /*< proxy-foo >*/ stuff to the header so
      	we export just the struct itself to libgimpproxy. Added accessors
      	gimp_channel_[get|set]_show_masked().
      
      	* app/core/gimpimage-mask.[ch]: renamed gimp_image_mask_undo() to
      	gimp_image_mask_push_undo(). Call it before calling GimpChannel
      	functions which modify the mask, also call all GimpChannel
      	functions with push_undo = FALSE. Emit gimp_image_mask_changed()
      	after each operation instead of calling it in
      	gimp_image_mask_invalidate(). Removed gimp_image_mask_none()
      	because it is the same as gimp_image_mask_clear().
      	General cleanup.
      
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-qmask.c: changed accordingly.
      
      	* app/core/gimpedit.c: call gimp_image_mask_clear(), not
      	gimp_channel_clear (gimp_image_get_mask()).
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c: call gimp_image_mask_changed()
      
      	* app/gui/channels-commands.c
      	* app/gui/select-commands.c
      	* app/tools/gimptexttool.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/selection.pdb: follow GimpChannel and
      	gimp_image_mask* API changes.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/selection_cmds.c
      	* libgimpproxy/gimpchannel.h: regenerated.
      
      	Unrelated:
      
      	* app/core/gimpimage.c: call gimp_drawable_push_undo() instead of
      	undo_push_image() directly.
      33bba657
  11. 21 May, 2002 1 commit
    • Sven Neumann's avatar
      added a GimpImageType parameter to specify the desired drawable type. This · 16c289ea
      Sven Neumann authored
      2002-05-21  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimplayer.[ch] (gimp_layer_new_from_tiles): added a
      	GimpImageType parameter to specify the desired drawable type. This
      	is needed when pasting into layer masks.
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c: changed accordingly.
      16c289ea
  12. 13 May, 2002 1 commit
    • Sven Neumann's avatar
      registered GimpFillType enum and added translatable names to · 16e8b1be
      Sven Neumann authored
      2002-05-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.[ch]: registered GimpFillType enum and added
      	translatable names to GimpImageBaseType.
      
      	* app/core/gimp.[ch]
      	* app/core/gimpedit.c
      	* app/core/gimpimage-new.[ch]: removed gimp_image_new_[init|exit]()
      	where we used to create names for the enums mentioned above. Dropped
      	gimp_image_new_set_have_current_cut_buffer() in favor of accessing
      	the value directly.
      
      	* app/gui/file-new-dialog.c (file_new_dialog_create)
      	* app/gui/layers-commands.c (layers_new_layer_query): use
      	GimpEnumMenus to choose the base_type and fill_type.
      16e8b1be
  13. 03 May, 2002 1 commit
    • Michael Natterer's avatar
      devel-docs/Makefile.am new file documenting the core's include policy. · a74a8997
      Michael Natterer authored
      2002-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* devel-docs/Makefile.am
      	* devel-docs/includes.txt: new file documenting the core's
      	include policy.
      
      	* HACKING: mention it here.
      
      	* libgimptool/gimptooltypes.h: removed GimpToolOptions here.
      
      	* app/core/core-types.h: and added it here. This is a temp hack
      	needed because GimpToolInfo needs to know the GimpToolOptions
      	type.
      
      	* libgimpproxy/gimpproxytypes.h: regenerated.
      
      	* libgimptool/gimptoolmodule.h: don't include gimptooltypes.h here...
      	* libgimptool/gimptoolmodule.c: ...but here.
      
      	* app/config/gimpconfig-params.c: include "libgimpbase/gimpbase.h"
      	entirely, not single files from it.
      
      	* app/core/gimp.c
      	* app/core/gimpcontext.c
      	* app/core/gimpcoreconfig.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpdocuments.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-guides.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimpitem.c
      	* app/core/gimpmodules.c
      	* app/core/gimppaintinfo.c
      	* app/core/gimpparasite.c
      	* app/core/gimppreviewcache.c
      	* app/core/gimptoolinfo.c
      	* app/core/gimpunit.c: include "core-types.h" and no other types file.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.c: include "tools/tools-types.h"
      	instead of "libgimptool/gimptooltypes.h", warn about inclusion
      	on "gui/gui-types.h"
      
      	* app/file/file-open.c
      	* app/file/file-save.c: don't include "libgimptool/gimptooltypes.h".
      
      	* app/gui/about-dialog.c
      	* app/gui/brush-select.c
      	* app/gui/brushes-commands.c
      	* app/gui/color-select.c
      	* app/gui/data-commands.c
      	* app/gui/device-status-dialog.c
      	* app/gui/dialogs.c
      	* app/gui/gradients-commands.c
      	* app/gui/help-commands.c
      	* app/gui/info-window.c
      	* app/gui/palettes-commands.c
      	* app/gui/patterns-commands.c
      	* app/gui/resize-dialog.c
      	* app/gui/tips-dialog.c
      	* app/gui/tool-options-dialog.c: include "gui-types.h" and no
      	other types file.
      
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore-stroke.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppaintoptions.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/paint/paint.c: include "paint-types.h" and no other types file.
      
      	* app/pdb/pdb-types.h: don't include "libgimptool/gimptooltypes.h".
      
      	* app/plug-in/plug-in-progress.c: warn about inclusion of
      	"display/display-types.h"
      
      	* app/tools/tools-types.h: include "libgimptool/gimptooltypes.h".
      
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpdodgeburntool.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpellipseselecttool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppaintbrushtool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimppenciltool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpsmudgetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptoolcontrol.c
      	* app/tools/gimptoolcontrol.h
      	* app/tools/gimptransformtool.c
      	* app/tools/gimpvectortool.c
      	* app/tools/tools.c: include "tools-types.h" and no other types file,
      	warn about inclusion of "gui/gui-types.h".
      
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimptoolbox-color-area.c: warn about inclusion of
      	"gui/gui-types.h".
      
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf.c: don't include "libgimptool/gimptooltypes.h".
      
      	Split tool-safe-mode up in two files, one including libgimpproxy,
      	one libgimp.
      
      	* plug-ins/tools/Makefile.am
      	* plug-ins/tools/tool-safe-mode-plug-in.[ch]: new files including
      	libgimp/ stuff only.
      
      	* plug-ins/tools/tool-safe-mode.[ch]: include libgimpproxy/ and
      	libgimptool/ but don't include libgimp/ because of conflicting
      	declarations.
      
      	Unrelated:
      
      	* app/tools/gimpclonetool.c: create the clone core so we don't crash.
      
      	* app/gui/file-open-dialog.c: changed the way we create previews
      	so that only out-of-date previews are created on a click in the
      	preview area. Unconditional creation can still be forced by
      	<Ctrl>+click. Changed the tooltip to document this.
      a74a8997
  14. 29 Mar, 2002 1 commit
  15. 18 Mar, 2002 1 commit
    • Sven Neumann's avatar
      app/core/core-enums.h moved some more enums into the right place and · bba46560
      Sven Neumann authored
      2002-03-18  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.h
      	* app/core/core-types.h: moved some more enums into the right place
      	and namespacified them.
      
      	* app/undo.c
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimplayer.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/menus.c
      	* app/paint-funcs/paint-funcs.c
      	* app/tools/gimpbucketfilltool.c
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb: changed accordingly.
      
      	* libgimp/gimpcompat.h
      	* plug-ins/script-fu/siod-wrapper.c: added compat defines for changed
      	GimpMaskApplyMode enum.
      
      	* tools/pdbgen/enums.pl
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/misc_tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c: regenerated.
      bba46560
  16. 04 Mar, 2002 1 commit
    • Michael Natterer's avatar
      Forgot some gint opacity values: · 95235369
      Michael Natterer authored
      2002-03-04  Michael Natterer  <mitch@gimp.org>
      
      	Forgot some gint opacity values:
      
      	* app/core/gimplayer.[ch]: layer->opacity, gimp_layer_new(),
      	gimp_layer_new_from_tiles()
      
      	* app/core/gimpimage-projection.[ch]: gimp_image_projection_opacity()
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/gui/layers-commands.c
      	* app/tools/gimptexttool.c
      	* app/widgets/gimplayerlistview.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c
      	* libgimp/gimplayer_pdb.c: regenerated.
      95235369
  17. 03 Mar, 2002 1 commit
    • Michael Natterer's avatar
      Use gdouble in a [0.0..1.0] range for opacity values in the whole core's · ce643d27
      Michael Natterer authored
      2002-03-03  Michael Natterer  <mitch@gimp.org>
      
      	Use gdouble in a [0.0..1.0] range for opacity values in the whole
      	core's API. Convert them using (opacity * 255.999) when passing
      	them to base/ and paint-funcs/
      
      	Affected functions:
      
      	* app/core/gimpchannel.[ch]: gimp_channel_[set|get]_opacity()
      	* app/core/gimpimage.[ch]: gimp_image_[apply|replace]_image()
      	* app/paint/gimppaintcore.[ch]: gimp_paint_core_[paste|replace]_canvas()
      
      	* app/core/core-types.h: added defines GIMP_OPACITY_TRANSPARENT
      	and GIMP_OPACITY_OPAQUE, just like the ones from
      	paint-funcs/paint-funcs-types.h
      
      	* app/gimprc.c
      	* app/image_map.c
      	* app/core/gimpcontext.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimplayer.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppalette.c
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimpsmudge.c
      	* app/tools/gimpinktool.c
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimppreview.c
      	* app/xcf/xcf-load.c: changed accordingly, use the new constants.
      ce643d27
  18. 25 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h new base class for something · cdf2a90b
      Michael Natterer authored
      2002-02-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpitem.[ch]: new base class for something which is a
      	child of an image, has a PDB ID, a tattoo, parasites and emits
      	a "removed" signal.
      
      	* app/core/gimpdrawable.[ch]
      	* app/vectors/gimpvectors.[ch]: derive from GimpItem. Removed
      	lots of stuff from GimpDrawable.
      
      	* app/core/gimp.[ch]: changed gimp->drawable_table and
      	gimp->next_drawable_ID to gimp->item_table and gimp->next_item_id.
      
      	* app/undo.[ch]: s/undo_push_drawable_parasite/undo_push_item_parasite/,
      	minor cleanups.
      
      	* app/core/gimplayer.[ch]: changed gimp_layer_new_from_tiles() and
      	gimp_layer_new_from_drawable() to take the "dest_gimage" as
      	second, not first parameter.
      
      	* app/image_map.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/file/file-save.c
      	* app/gui/channels-commands.c
      	* app/gui/file-save-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/paths-dialog.c
      	* app/gui/toolbox.c
      	* app/paint/gimpairbrush.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimppencil.c
      	* app/paint/gimpsmudge.c
      	* app/plug-in/plug-in.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimppainttool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/widgets/gimpdrawablepreview.c: changed accordingly.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpitemlistview.[ch]: new widget implementing most
      	of the stuff formerly done by GimpDrawableListView.
      
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimpdrawablelistview.[ch]
      	* app/widgets/gimplayerlistview.c: changed accordingly.
      
      	* app/widgets/gimpdnd.[ch]: added a vectors DND type.
      
      	* app/gui/menus.c
      	* app/gui/dialogs.c
      	* app/gui/dialogs-constructors.[ch]: added a vectors dialog and
      	a vectors item_factory.
      
      	* app/gui/Makefile.am
      	* app/gui/vectors-commands.[ch]: new files implementing the
      	callbacks for the new vectors dialog and item_factory.
      
      	* app/pdb/pdb_glue.h: some more ugly hacks to keep intermediate
      	perl code working...
      
      	* tools/pdbgen/pdb.pl: added a vectors type, use GimpItem for all
      	ID lookups.
      
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/misc_tools.pdb
      	* tools/pdbgen/pdb/parasite.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/selection_tools.pdb: misc changes according to
      	stuff above.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/misc_tools_cmds.c
      	* app/pdb/paint_tools_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/selection_tools_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/transform_tools_cmds.c: regenerated.
      cdf2a90b
  19. 23 Feb, 2002 1 commit
    • Michael Natterer's avatar
      General undo cleanup: · a3c3e7d3
      Michael Natterer authored
      2002-02-23  Michael Natterer  <mitch@gimp.org>
      
      	General undo cleanup:
      
      	* app/undo.[ch]: made all undo structs private. Changed all
      	undo_push_foo() functions to take useful parameters instead of
      	"gpointer foo_ptr" and create the undo structs internally.
      	Renamed lots of functions so they are more self-explanatory
      	(like undo_push_gimage_mod -> undo_push_image_size). Added some
      	undo functions (channel reordering is undoable now).  Never pass
      	in a UndoType, as they are reseved for groups now (see below).
      	Lots of cleanup and stuff...
      
      	* app/undo_types.h: is a private header now which defines "enum
      	UndoImplType" which is reserved for actual undo operations.
      	All enum values are named "FOO_UNDO".
      
      	* app/core/core-types.h: added the "UndoType" enum here and don't
      	include "undo_types.h" any more. The UndoType values are all
      	named "FOO_UNDO_GROUP" and are reserved for undo groups.
      
      	The ID space of actual undo operations and undo groups
      	is now strictly disjunct.
      
      	* app/core/gimpchannel.h
      	* app/core/gimpimage.h
      	* app/core/gimplayer.h
      	* app/core/gimplayermask.h
      	* app/paint/gimppaintcore.h
      	* app/tools/gimptransformtool.h: removed undo stuct definitions.
      
      	* app/undo_history.c
      	* app/path_transform.h
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/channels-commands.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/paths-dialog.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* tools/pdbgen/pdb/guides.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/undo.pdb: changed accordingly.
      
      	* app/pdb/guides_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/undo_cmds.c: regenerated.
      
      	* app/core/gimpimage.[ch]: added infrastructure for holding a
      	GimpList of GimpVectors objects. The API is the same as for layers
      	and channels. Not used yet.
      a3c3e7d3
  20. 21 Feb, 2002 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed... · 9f9fa587
      Michael Natterer authored
      2002-02-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/floating_sel.[ch]: removed...
      
      	* app/core/Makefile.am
      	* app/core/gimplayer-floating-sel.[ch]: ...and added here.
      
      	* app/undo.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* plug-ins/tools/common/gimpbrushselecttool.c
      	* tools/pdbgen/pdb/floating_sel.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed includes accordingly.
      
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/layer_cmds.c: regenerated.
      9f9fa587
  21. 12 Dec, 2001 1 commit
    • Michael Natterer's avatar
      made gimp->global_buffer a GimpBuffer, not TileManager. · 9b8bf8de
      Michael Natterer authored
      2001-12-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimp.[ch]: made gimp->global_buffer a GimpBuffer,
      	not TileManager.
      
      	* app/core/gimpbuffer.[ch]: added a "gboolean copy_pixels" to
      	gimp_buffer_new().
      
      	* app/core/gimpimage-new.c
      	* app/core/gimpedit.[ch]
      	* app/core/gimpimage-qmask.c
      	* app/widgets/gimpbufferpreview.c
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcontainerview-utils.c: chaned accordingly, don't
      	include "base/tile-manager.h".
      
      	* app/core/gimpdrawable.[ch]: added gimp_drawable_copy().
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimplayermask.[ch]: use it in
      	gimp_[channel|layer|layer_mask]_copy(), added "GType new_type" as
      	paramater to all of them.
      
      	* app/core/gimpimage-duplicate.c
      	* app/gui/channels-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/layers-commands.c
      	* app/widgets/gimpchannellistview.c
      	* tools/pdbgen/pdb/channel.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/channel_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/core/gimplayer.[ch]: removed the "layer_type" parameter from
      	gimp_layer_new_from_tiles() because it always needed to be equal
      	to gimp_image_base_type_with_alpha() of the passed image.
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c: cahanged accordingly.
      
      	* app/core/gimpimage.[ch]: added some new GIMP_IMAGE_TYPE_FOO()
      	marcos to get rid of magic values like "pixels = 3" all over the
      	place.
      
      	* app/core/gimplayer.[ch]: added gimp_layer_new_from_drawable()
      	which creates a layer from an other image's drawable.
      
      	* app/core/gimpimage-convert.[ch]: made the RGB and GRAY converters
      	public to use them above, use the new GIMP_IMAGE_TYPE() macros.
      
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/toolbox.c: removed tile manager stuff and use the new
      	functions.
      
      	* app/widgets/gimpdrawablelistview.[ch]: added a
      	"convert_drawable_func" which is used to handle drops from other
      	images.
      
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplistitem.[ch]: implemented DND of layers between
      	images using gimp_layer_new_from_drawable().
      
      	* app/gui/dialogs-constructors.c: changed accordingly.
      9b8bf8de
  22. 11 Dec, 2001 1 commit
    • Sven Neumann's avatar
      removed GimpImageBaseType enum ... · a611f063
      Sven Neumann authored
      2001-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-types.h: removed GimpImageBaseType enum ...
      
      	* app/core/core-enums.h: and added it here with proper namespace
      	(enum values prefixed with GIMP_).
      
      	* app/gimprc.c
      	* app/core/gimpcoreconfig.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer.c
      	* app/core/gimppalette-import.c
      	* app/display/gimpdisplay-handlers.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/file/file-utils.c
      	* app/gui/colormap-dialog.c
      	* app/gui/convert-dialog.c
      	* app/gui/info-window.c
      	* app/gui/layers-commands.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimppainttool.c
      	* app/widgets/gimpchannellistview.c
      	* tools/pdbgen/Makefile.am
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/image.pdb: changed accordingly.
      
      	* tools/pdbgen/enums.pl
      	* app/pdb/convert_cmds.c
      	* app/pdb/image_cmds.c
      	* libgimp/gimpconvert_pdb.c
      	* libgimp/gimpimage_pdb.c: regenerated.
      
      	* app/config/Makefile.am
      	* app/config/gimpconfig-params.h
      	* app/config/gimpconfig-serialize.c
      	* app/config/gimpcoreconfig.[ch]: added more stuff to GimpCoreConfig.
      a611f063
  23. 08 Dec, 2001 1 commit
    • Sven Neumann's avatar
      app/core/Makefile.am new file that holds enums that are registered with · a65e1a39
      Sven Neumann authored
      2001-12-08  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-enums.h: new file that holds enums that are registered
      	with the type system and is used to generate core-enums.c.
      
      	* app/core/core-types.h: include core-enums.h
      
      	* app/base/base-types.h: namespace cleanup. Prefix all enumeration
      	types with Gimp and their values with GIMP. Moved GimpLayerModeEffects
      	enum ...
      
      	* app/base/base-enums.h: ... here.
      
      	* app/image_map.c
      	* app/base/temp-buf.c
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell-render.c
      	* app/gui/brush-select.c
      	* app/gui/layers-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/paint-funcs/paint-funcs.[ch]
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimperasertool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimppainttool.[ch]
      	* app/tools/gimptexttool.c
      	* app/tools/paint_options.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimpwidgets-constructors.[ch]
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/tools.pdb: changed accordingly.
      
      	* libgimpbase/gimpbasetypes.h: no need to chop GIMP prefix off the
      	enums any longer.
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/brushes_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/procedural_db_cmds.c
      	* app/pdb/tools_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* app/gimprc.c: removed code to parse for "plug_in" keyword which was
      	left over from some very early gimp days.
      
      	* app/plug-in/plug-in.[ch]: removed now unused function plug_in_add().
      a65e1a39
  24. 28 Nov, 2001 1 commit
    • Michael Natterer's avatar
      s/gimage_mask/gimp_image_mask/g · f7bbdc3e
      Michael Natterer authored
      2001-11-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch]: s/gimage_mask/gimp_image_mask/g
      
      	* app/floating_sel.c
      	* app/undo.c
      	* app/undo_history.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage.c
      	* app/display/gimpdisplayshell-qmask.c
      	* app/display/gimpdisplayshell-selection.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/select-commands.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpchannellistview.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      f7bbdc3e
  25. 20 Nov, 2001 1 commit
  26. 31 Oct, 2001 1 commit
    • Michael Natterer's avatar
      Chopped up the display stuff (beware: unfinished)... · 5f63e079
      Michael Natterer authored
      2001-10-31  Michael Natterer  <mitch@gimp.org>
      
      	Chopped up the display stuff (beware: unfinished)...
      
      	The plan is that GimpDisplay is the object which collects
      	updates from the image, compresses them and waits for the GIMP
      	to be idle to actually paint them. It should be a non-GUI object
      	which is the model for the actual widget to connect to.
      
      	GimpDisplayShell has all the widgets and handles painting and
      	exposing of the result. Nobody should actually be required to
      	update ot look at it as it should be a view on the GimpDisplay
      	object.
      
      	Much stuff is still in the wrong place and the functions don't
      	follow their files' filename namespace any more. More to come...
      
      	* app/display/Makefile.am
      	* app/display/gimpdisplay-ops.[ch]: removed. It's functions didn't
      	belong together anyway.
      
      	* app/display/gimpdisplay-area.[ch]: new files: the GimpArea
      	functions.
      
      	* app/display/gimpdisplay-handlers.[ch]: new files: signal
      	handlers for GimpImage signals. Mostly from app/gui.c.
      
      	* app/display/gimpdisplay.[ch]: removed all widgets and other
      	GUI stuff. There is still much undecided here...
      
      	* app/display/gimpdisplayshell.[ch]: actually use the object and
      	filled it with all the stuff from GimpDisplay.
      
      	* app/display/gimpdisplay-callbacks.[ch]
      	* app/display/gimpdisplay-foreach.[ch]
      	* app/display/gimpdisplay-render.c
      	* app/display/gimpdisplay-scale.[ch]
      	* app/display/gimpdisplay-scroll.[ch]
      	* app/display/gimpdisplay-selection.c: changed accordingly.
      
      	* app/core/gimp.[ch]: return a GimpObject from
      	gimp_create_display() so it can be used as single GUI independent
      	point to create displays, require the initial scale as parameter.
      
      	* app/core/gimpcontext.c: changed the ugly EEKWrapper according to
      	the GimpDisplay structure changes. Bugfix: set the image to NULL
      	in gimp_context_display_destroyed().
      
      	* app/core/gimpedit.c
      	* app/core/gimpimage-new.c: changed gimp_create_display() calls
      	accordingly.
      
      	* app/core/gimpimage-convert.c: invalidate the layer & image
      	previews here, not in the caller.
      
      	* app/core/gimpimage-crop.c: update the whole image after cropping.
      
      	* app/core/gimpimage.[ch]: added gimp_image_find_guide(),
      	gimp_image_snap_point() and gimp_image_snap_rectangle(). Added
      	"resolution_changed" and "unit_changed" signals and corresp.
      	public convenience functions to emit them.
      
      	* app/core/gimplayer.c: emit the image's "alpha_changed" signal
      	when adding alpha to the bottom (and only) layer of the image.
      
      	* app/gimpprogress.c
      	* app/image_map.c
      	* app/nav_window.c
      	* app/qmask.c
      	* app/undo.c
      	* app/user_install.c: changed accordingly.
      
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.c
      	* app/gui/preferences-dialog.c
      	* app/gui/toolbox.c
      	* app/gui/view-commands.c: ditto.
      
      	* app/gui/gui.[ch]: removed most gimp->images handlers as the
      	displays connect to them themselves now. chaged gui_display_new()
      	according to the gimp_create_display() changes.
      	Added gui_get_screen_resolution().
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpdrawtool.c
      	* app/tools/gimpeditselectiontool.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/gimpmovetool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimppathtool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimpselectiontool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/xinput_airbrush.c: lots of changes because GimpDisplay
      	has become two objects. Lots of gdisp->shell casting uglyness
      	added. This is fine because exactly these parts will have to go
      	away.
      
      	(GimpDisplay will provide methods for XOR drawing upon the display
      	in image coordinates without the need to transform coordinates all
      	the time. Also the tools shouldn't see GdkEvents but get more
      	useful virtual functions which speak in image coordinates too).
      
      	* app/widgets/gimpcomponentlistitem.c: removed a now useless image
      	update.
      
      	* tools/pdbgen/pdb/display.pdb: use gimp_create_display().
      
      	* app/pdb/display_cmds.c: regenerated.
      5f63e079
  27. 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
  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. 07 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · 37ce6b9a
      Michael Natterer authored
      2001-07-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/drawable.[ch]: removed.
      
      	* app/core/gimpdrawable.[ch]: added the functions here. Made an
      	end to the myth that FG/BG and the undo system (!!!) are not
      	really part of the core.
      
      	* app/disp_callbacks.c
      	* app/floating_sel.c
      	* app/image_map.c
      	* app/qmask.c
      	* app/undo.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-desaturate.c
      	* app/core/gimpdrawable-equalize.c
      	* app/core/gimpdrawable-invert.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-new.c
      	* app/core/gimpimage.[ch]
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/gui/channels-commands.c
      	* app/gui/gui.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpairbrushtool.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpconvolvetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpthresholdtool.c
      	* app/tools/gimptransformtool.c
      	* app/tools/tool_manager.c
      	* app/widgets/gimpchannellistitem.c
      	* app/widgets/gimpchannellistview.c
      	* app/widgets/gimpdrawablelistitem.c
      	* app/widgets/gimplayerlistitem.c
      	* app/widgets/gimplayerlistview.c
      	* app/pdb/channel_cmds.c
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* app/pdb/floating_sel_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/layer_cmds.c
      	* app/pdb/parasite_cmds.c
      	* app/pdb/selection_cmds.c
      	* app/pdb/text_tool_cmds.c
      	* app/pdb/tools_cmds.c
      	* tools/pdbgen/pdb.pl
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly. Misc small
      	fixes and cleanups.
      37ce6b9a
  30. 05 Jul, 2001 2 commits
    • Michael Natterer's avatar
      don't add the image to the image container, don't call undo_free(). · a84d697b
      Michael Natterer authored
      2001-07-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/gimage.c: don't add the image to the image container,
      	don't call undo_free().
      
      	* app/core/gimp.[ch]: add new images to gimp->images, optionally
      	attach the comment parasite.
      
      	* app/core/gimpedit.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-new.c
      	* app/gui/file-open-dialog.c
      	* app/gui/toolbox.c
      	* tools/pdbgen/pdb/image.pdb
      	* app/pdb/image_cmds.c
      	* app/xcf/xcf-load.c: call gimp_create_image() and/or
      	gimp_create_display(), don't attach a comment parasite.
      
      	* app/core/gimpimage.c: call undo_free() in "destroy".
      
      	* app/file-open.c
      	* app/gui/palette-import-dialog.c
      	* app/xcf/xcf-save.c: don't #include "gimage.h"
      a84d697b
    • Michael Natterer's avatar
      app/Makefile.am removed... · a0014f7e
      Michael Natterer authored
      2001-07-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/image_new.[ch]: removed...
      
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpimage-new.[ch]: ...and (partly) added here.
      
      	* app/core/gimp.[ch]: added gimp_create_image() which will be the
      	_only_ place to get new images from soon.
      	Added  a "create_display_func" function pointer...
      
      	* app/gui/gui.[ch]: ...which gets initialized here.
      
      	This way the core can create displays without depending on the
      	interface.
      
      	* app/app_procs.c
      	* app/apptypes.h
      	* app/core/gimpedit.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.[ch]: changed accordingly.
      a0014f7e
  31. 04 Jul, 2001 1 commit
    • Michael Natterer's avatar
      app/core/Makefile.am app/core/core-types.h added an "application object" · 01645960
      Michael Natterer authored
      2001-07-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimp.[ch]: added an "application object" called Gimp.
      
      	Currently, it contains the image list, the clipboard, the data
      	factories, the procedural hashtable and the tool info list.  It's
      	the toplevel object of the core object system. Finally, creating a
      	Gimp object will return a standalone gimp core engine instance
      	with no other global states/variables involved.
      
      	* app/app_procs.[ch]: allocate a "Gimp" instance called "the_gimp" :)
      	Removed stuff which is now done by the "Gimp" object. Merged
      	gimp_init() into app_init() because gimp_init() is taken now.
      
      	* app/context_manager.[ch]: removed stuff done by "Gimp".
      
      	* app/batch.[ch]
      	* app/gimage.[ch]
      	* app/xcf/xcf-load.[ch]
      	* app/xcf/xcf.[ch]
      	* app/core/gimpedit.[ch]
      	* app/tools/tool_manager.[ch]: pass around an additional "Gimp"
      	argument.
      
      	* app/pdb/procedural_db.[ch]: pass a "Gimp" pointer as first
      	parameter to all internal procedures and to all procedural_db_*
      	functions.
      
      	* app/core/gimpcontext.[ch]
      	* app/core/gimpimage.[ch]: added a "Gimp" pointer to the structs.
      
      	* app/devices.c
      	* app/errors.c
      	* app/file-open.c
      	* app/file-save.c
      	* app/gimphelp.c
      	* app/gimpunit.c
      	* app/image_new.c
      	* app/main.c
      	* app/nav_window.c
      	* app/plug_in.c
      	* app/base/base.c
      	* app/core/gimpdatafactory.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimptoolinfo.[ch]
      	* app/gui/brush-select.c
      	* app/gui/convert-dialog.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/edit-commands.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/gradient-editor.c
      	* app/gui/gradient-select.c
      	* app/gui/gui.c
      	* app/gui/image-commands.c
      	* app/gui/info-window.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/test-commands.c
      	* app/gui/toolbox.c
      	* app/gui/tools-commands.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimppainttool.h
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.h
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpcursor.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpimagedock.c: changed accordingly. Cleaned up
      	lots of includes. Many files still access the global "the_gimp"
      	variable exported by app_procs.h.
      
      	* tools/pdbgen/app.pl
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/fileops.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/procedural_db.pdb: changed accordingly. Don't
      	use "the_gimp" here because all procedures get passed a "Gimp"
      	pointer now.
      
      	* app/pdb/*: regenerated.
      01645960
  32. 03 Jul, 2001 1 commit
    • Michael Natterer's avatar
      new directory app/xcf/ · 3e36b8f5
      Michael Natterer authored
      2001-07-03  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in: new directory app/xcf/
      
      	* app/Makefile.am
      	* app/global_edit.[ch]
      	* app/xcf.[ch]: removed.
      
      	* app/core/Makefile.am
      	* app/core/gimpedit.[ch]: added here...
      
      	* app/xcf/.cvsignore
      	* app/xcf/Makefile.am
      	* app/xcf/xcf-load.[ch]
      	* app/xcf/xcf-private.h
      	* app/xcf/xcf-read.[ch]
      	* app/xcf/xcf-save.[ch]
      	* app/xcf/xcf-seek.[ch]
      	* app/xcf/xcf-write.[ch]
      	* app/xcf/xcf.[ch]: ...and here (chopped up).
      
      	* app/app_procs.c
      	* app/disp_callbacks.c
      	* app/floating_sel.c
      	* app/gui/edit-commands.c
      	* app/gui/toolbox.c
      	* app/pdb/edit_cmds.c
      	* app/widgets/gimpbufferview.c
      	* tools/pdbgen/pdb/edit.pdb: changed accordingly.
      3e36b8f5
  33. 02 Jul, 2001 2 commits
    • Sven Neumann's avatar
      applied patch from Peter Kirchgessner <peter@kirchgessner.net> that fixes · 1b8ef8b5
      Sven Neumann authored
      2001-07-03  Sven Neumann  <sven@gimp.org>
      
      	* plug-ins/common/xwd.c: applied patch from Peter Kirchgessner
      	<peter@kirchgessner.net> that fixes bug #56830.
      
      	* app/global_edit.c: attach default comment to image created by
      	gimp_edit_paste_as_new().
      
      	Both changes merged from stable branch.
      1b8ef8b5
    • Michael Natterer's avatar
      allow a NULL gimage argument for gimp_edit_paste_as_new() (don't set · e94f1751
      Michael Natterer authored
      2001-07-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/global_edit.c: allow a NULL gimage argument for
      	gimp_edit_paste_as_new() (don't set resolution and unit).
      
      	* app/disp_callbacks.[ch]
      	* app/interface.c: allow dropping of a GimpBuffer (pastes the
      	buffer).
      
      	* app/gui/toolbox.c: ditto (creates a new image).
      e94f1751
  34. 29 Jun, 2001 1 commit
    • Michael Natterer's avatar
      removed GimpFillType. · d81b47ce
      Michael Natterer authored
      2001-06-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/appenums.h: removed GimpFillType.
      
      	* app/gimprc.c: parse the session-info's new "aux-info" field.
      
      	* app/global_edit.[ch]: removed the old "Paste Named" dialog and
      	prefixed all functions with "gimp_".
      
      	* app/core/core-types.h: added GimpFillType.
      
      	* app/core/gimpbrush.[ch]: new signal "spacing_changed".
      
      	* app/gui/Makefile.am
      	* app/gui/tools-commands.[ch]: one more file cut out of commands.[ch].
      
      	* app/gui/commands.[ch]: removed the tools stuff here.
      
      	* app/gui/brush-select.[ch]
      	* app/gui/dialogs-constructors.c: use the new GimpBrushFactoryView
      	(see below).
      
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/menus.[ch]:
      
      	- Made it 64bit safe again by passing the dialog factory's
      	  identifiers as GQuarks, not as guints created by GPOINTER_TO_UINT().
      	- Added a "gchar *quark_string" field to GimpItemFactoryEntry
      	  which gets transformed into a GQuark by menus_create_item().
      	- Added SEPARATOR() and BRANCH() macros which make the *_entries[]
      	  arrays more readable.
      	- Added a menu item to show/hide GimpImageDock's image menu.
      	- Removed file_last_opened_cmd_callback().
      
      	* app/gui/edit-commands.c: the global_edit functions are "gimp_"
      	prefixed now.
      
      	* app/gui/file-commands.[ch]: added file_last_opened_cmd_callback()
      	here.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpbrushfactoryview.[ch]: new widget: a
      	GimpDataFactory subclass with a "spacing" scale.
      
      	* app/widgets/gimpcontainereditor.[ch]:
      
      	- Connect to the GimpContainerView's "select_item",
      	  "activate_item" and "context_item" signals here once instead of
      	  in each subclass and dispatch them via new virtual functions.
      	- Added a convenience function which makes DND to the buttons much
      	  less painful for subclasses.
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpdatafactoryview.[ch]: changed accordingly.
      
      	* app/widgets/gimpdialogfactory.[ch]:
      
      	- Added gimp_dialog_factory_dialog_raise() which can raise
      	  toplevel dialogs _and_ dockables (and creates them if they are
      	  not open yet).
      	- Keep track of all created dialogs (not only toplevels).
      	- Added an "aux_info" field to GimpSessionInfo which is a GList of
      	  gchar* and is saved in sessionrc.
      	- Remember if GimpImageDock's image menu is visible by using an
      	  aux_info string.
      	- The code did not become nicer with all those new constraints. I
      	  have to add comments before I forget how it works.
      
      	* app/widgets/gimpdockbook.c: set the state of the "Show Image Menu"
      	menu item before popping up the item factory.
      
      	* app/widgets/gimpimagedock.[ch]: added
      	gimp_image_dock_set_show_image_meu().
      
      	* plug-ins/gdyntext/gdyntext.c
      	* plug-ins/perl/examples/fit-text
      	* plug-ins/perl/examples/terral_text
      	* plug-ins/perl/examples/tex-to-float: register all text rendering
      	plug-ins under <Image>/Filters/Text
      
      	* app/pdb/brush_select_cmds.c
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/enums.pl
      	* po/POTFILES.in: changed according to all the stuff above.
      d81b47ce
  35. 26 Jun, 2001 1 commit
    • Michael Natterer's avatar
      app/Makefile.am removed. · d26c2668
      Michael Natterer authored
      2001-06-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/Makefile.am
      	* app/color_transfer.[ch]: removed.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpcolorbalancetool-transfer.[ch]: added.
      
      	* app/tools/gimpcolorbalancetool.c: changed accordingly.
      
      	* app/base/Makefile.am
      	* app/base/tile-manager-crop.[ch]: formerly known as crop_buffer().
      
      	* app/tools/gimptexttool.c: changed accordingly.
      
      	* app/context_manager.[ch]: added the global clipboard and the
      	named buffer list here.
      
      	* app/app_procs.c: don't call color_transfer_init() and don't free
      	the buffer stuff (done by the context manager now).
      
      	* app/errorconsole.c: don't #include "gui/commands.h"
      
      	* app/global_edit.[ch]: removed lots of stuff which is now done by
      	gui/edit-commands.* or the new GimpBuffer object. The "paste
      	named" dialog will go away and this file will be moved to core/
      	soon.
      
      	* app/image_new.c: no need to declare the global_buffer extern any
      	more.
      
      	* app/qmask.c: don't #include "global_edit.h"
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpbuffer.[ch]: new object (aka named buffer)
      
      	* app/core/gimpcontext.[ch]: added a GimpBuffer attribute.
      
      	* app/core/gimpimage.[ch]: one s/int/gboolean/.
      
      	* app/core/gimppattern.c: hmm...
      
      	* app/gui/commands.[ch]: split up in small files:
      
      	* app/gui/Makefile.am
      	* app/gui/edit-commands.[ch]
      	* app/gui/file-commands.[ch]
      	* app/gui/image-commands.[ch]
      	* app/gui/select-commands.[ch]
      	* app/gui/view-commands.[ch]: new files.
      
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.c: added the named buffer list & grid.
      
      	* app/gui/file-new-dialog.[ch]
      	* app/gui/menus.c
      	* app/gui/palette-editor.c
      	* app/gui/test-commands.c: changed accordingly.
      
      	* app/pdb/edit_cmds.c
      	* tools/pdbgen/pdb/edit.pdb: changed for the global_edit stuff.
      
      	* app/widgets/Makefile.am
      	* app/widgets/gimpbufferpreview.[ch]
      	* app/widgets/gimpbufferview.[ch]
      	* app/widgets/gimpcontainereditor.[ch]: new widgets.
      
      	* app/widgets/gimpcontainerview-utils.c
      	* app/widgets/gimpdatafactoryview.[ch]
      	* app/widgets/gimpdnd.[ch]
      	* app/widgets/gimpdrawablepreview.c
      	* app/widgets/gimplayerlistview.c
      	* app/widgets/gimppreview.c
      	* app/widgets/widgets-types.h: changed accordingly for the new
      	GimpBuffer object and it's views, misc. cleanups.
      
      	* pixmaps/Makefile.am
      	* pixmaps/paste-as-new.xpm
      	* pixmaps/paste-into.xpm
      	* pixmaps/paste.xpm: new pixmaps (they all look the same... Tigert? ;-)
      
      	* po/POTFILES.in: added the new files.
      d26c2668
  36. 04 Jun, 2001 1 commit
    • Michael Natterer's avatar
      some s/0/FALSE/ · 80dad0fc
      Michael Natterer authored
      2001-06-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/global_edit.c: some s/0/FALSE/
      
      	* app/resize.[ch]: removed resize_scale_implement() and
      	resize_check_layer_scaling(), cleanup.
      
      	* app/core/gimpimage.[ch]: added gimp_image_check_scaling().
      
      	* app/gui/commands.c: added image_scale_implement() as static
      	function.
      
      	* app/gui/tool-options-dialog.[ch]: add the tool options widgets
      	to the dialog when they are first needed. Removed
      	tool_options_dialog_add().
      
      	* app/tools/tool_manager.c: don't call tool_options_dialog_add().
      80dad0fc