1. 10 Jul, 2005 1 commit
    • Michael Natterer's avatar
      app/actions/layers-actions.c app/actions/layers-commands.[ch] · 20b4769c
      Michael Natterer authored
      2005-07-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.[ch]
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.[ch]
      	* app/text/gimptextlayer-xcf.c
      	* app/widgets/gimphelp-ids.h
      	* app/widgets/gimplayertreeview.[ch]
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-private.h
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb
      	* menus/image-menu.xml.in
      	* libgimp/gimp.def: did a global s/preserve_trans/lock_alpha/ in
      	preparation for more layer locking flags.
      
      	* app/pdb/procedural_db.c
      	* libgimp/gimplayer.[ch]: added compat stuff for preserve_trans.
      
      	* app/pdb/layer_cmds.c
      	* libgimp/gimplayer_pdb.[ch]: regenerated.
      
      	* plug-ins/common/colortoalpha.c
      	* plug-ins/common/iwarp.c
      	* plug-ins/common/psd.c
      	* plug-ins/common/psd_save.c
      	* plug-ins/common/psp.c
      	* plug-ins/common/rotate.c
      	* plug-ins/common/threshold_alpha.c
      	* plug-ins/common/vpropagate.c
      	* plug-ins/script-fu/scripts/3d-outline.scm
      	* plug-ins/script-fu/scripts/alien-glow-bar.scm
      	* plug-ins/script-fu/scripts/alien-glow-bullet.scm
      	* plug-ins/script-fu/scripts/alien-glow-logo.scm
      	* plug-ins/script-fu/scripts/basic1-logo.scm
      	* plug-ins/script-fu/scripts/basic2-logo.scm
      	* plug-ins/script-fu/scripts/beveled-pattern-button.scm
      	* plug-ins/script-fu/scripts/blend-anim.scm
      	* plug-ins/script-fu/scripts/blended-logo.scm
      	* plug-ins/script-fu/scripts/bovinated-logo.scm
      	* plug-ins/script-fu/scripts/burn-in-anim.scm
      	* plug-ins/script-fu/scripts/carved-logo.scm
      	* plug-ins/script-fu/scripts/chalk.scm
      	* plug-ins/script-fu/scripts/chip-away.scm
      	* plug-ins/script-fu/scripts/comic-logo.scm
      	* plug-ins/script-fu/scripts/coolmetal-logo.scm
      	* plug-ins/script-fu/scripts/crystal-logo.scm
      	* plug-ins/script-fu/scripts/drop-shadow.scm
      	* plug-ins/script-fu/scripts/gimp-headers.scm
      	* plug-ins/script-fu/scripts/gimp-labels.scm
      	* plug-ins/script-fu/scripts/glowing-logo.scm
      	* plug-ins/script-fu/scripts/gradient-bevel-logo.scm
      	* plug-ins/script-fu/scripts/image-structure.scm
      	* plug-ins/script-fu/scripts/neon-logo.scm
      	* plug-ins/script-fu/scripts/perspective-shadow.scm
      	* plug-ins/script-fu/scripts/starburst-logo.scm
      	* plug-ins/script-fu/scripts/starscape-logo.scm
      	* plug-ins/script-fu/scripts/textured-logo.scm
      	* plug-ins/script-fu/scripts/title-header.scm
      	* plug-ins/script-fu/scripts/waves-anim.scm
      	* plug-ins/xjt/xjt.c: changed accordingly.
      20b4769c
  2. 03 Jun, 2005 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 72502972
      William Skaggs authored
      	* gimp/app/tools/Makefile.am
      	* gimp/app/tools/gimp-tools.c
      	* gimp/app/tools/gimpalignoptions.c
      	* gimp/app/tools/gimpalignoptions.h
      	* gimp/app/tools/gimpaligntool.c
      	* gimp/app/tools/gimpaligntool.h: Add new tool for
      	aligning layers etc, as described in bug #147437.
      
      	* gimp/app/core/gimpitem.c
      	* gimp/app/core/gimpitem.h (gimp_item_align): add
      	function required by new tool.
      
      	* gimp/app/core/core-enums.c
      	* gimp/app/core/core-enums.h: add enum for alignment
      	types.
      
      	* gimp/themes/Default/images/stock-hcenter-24.png
      	* gimp/themes/Default/images/stock-vcenter-24.png
      	* gimp/libgimpwidgets/gimpstock.c
      	* gimp/libgimpwidgets/gimpstock.h
      	* gimp/themes/Default/images/Makefile.am
      	* gimp/themes/Default/images/makefile.msc: add two
      	stock symbols, modeled on the gravity symbols.
      72502972
  3. 22 May, 2005 1 commit
    • Sven Neumann's avatar
      use quotewords() from Text::ParseWords to split the trigraph. This · d21f31d0
      Sven Neumann authored
      2005-05-22  Sven Neumann  <sven@gimp.org>
      
      	* tools/gimp-mkenums (parse_trigraph): use quotewords() from
      	Text::ParseWords to split the trigraph. This function correctly
      	deals with commas inside quotes.
      
      	* app/core/core-enums.[ch]: tweaked descriptions in the
      	GimpDashPreset enum.
      d21f31d0
  4. 04 Apr, 2005 1 commit
    • Sven Neumann's avatar
      app/core/core-enums.[ch] handle a floating selection attached to the layer · 0778559f
      Sven Neumann authored
      2005-04-05  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage.c
      	(gimp_image_remove_layer, gimp_image_remove_channel): handle a
      	floating selection attached to the layer or channel that is being
      	removed.  Fixes bug #168582 but doesn't handle floating selections
      	attached to layer masks.
      0778559f
  5. 24 Mar, 2005 5 commits
    • Michael Natterer's avatar
      app/core/core-enums.[ch] app/core/gimpimage-undo-push.[ch] eek, my · 46a25c2c
      Michael Natterer authored
      2005-03-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]
      	* app/core/gimplayermask.[ch]: eek, my fault... removed
      	GIMP_UNDO_LAYER_MASK_EDIT stuff again because that just determines
      	the active drawable, which must not affect undo.
      
      	* app/pdb/pdb_glue.h
      	* app/actions/layers-commands.c (layers_mask_edit_cmd_callback):
      	changed accordingly.
      
      	(layers_mask_disable_cmd_callback): reverted last change. the old
      	code was correct.
      46a25c2c
    • Michael Natterer's avatar
      reordered values so layer and layer mask undos are grouped together. · b17e5b4a
      Michael Natterer authored
      2005-03-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType) : reordered values
      	so layer and layer mask undos are grouped together.
      
      	* app/core/gimpimage-undo-push.[ch]: same here. Changed the new
      	layer mask undos to have 3 simple push functions for the 3
      	properties, just as the layer property undos. Also made the code
      	look like the layer properties undo stuff.
      
      	* app/core/gimplayermask.c (gimp_layer_mask_set_apply,edit,show):
      	changed accordingly.
      b17e5b4a
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · b5f1ae88
      William Skaggs authored
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]
      	* app/core/gimplayermask.[ch]:
      	* app/pdb/pdb_glue.h
      	* app/actions/layers-commands.c: try again from clean tree;
      	hopefully will work this time.  (bug #148852)
      b5f1ae88
    • Sven Neumann's avatar
      app/actions/layers-commands.c app/core/core-enums.[ch] · 4314dca0
      Sven Neumann authored
      2005-03-24  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/layers-commands.c
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]
      	* app/pdb/pdb_glue.h: reverted Bill's changes to fix the build.
      4314dca0
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 72241e5e
      William Skaggs authored
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]
      	* app/pdb/pdb_glue.h
      	* app/actions/layers-commands.c: make layer mask property changes
      	undoable, should fix bug #148852.  Note that a little shape-layer
      	stuff is in core-enums, will be needed shortly.
      72241e5e
  6. 05 Mar, 2005 1 commit
    • Michael Natterer's avatar
      app/actions/view-actions.c app/actions/view-commands.[ch] · be6a9d2a
      Michael Natterer authored
      2005-03-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]
      	* app/config/gimprc-blurbs.h
      	* app/core/core-enums.[ch]
      	* app/core/gimp.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-undo-push.[ch]
      	* app/core/gimpimage.c
      	* app/display/gimpdisplayoptions.[ch]
      	* app/display/gimpdisplayshell-appearance.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-draw.[ch]
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: reordered stuff to be in guides, grid,
      	sample points order. Some cleanup and indentation.
      be6a9d2a
  7. 04 Mar, 2005 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · ea267753
      William Skaggs authored
      	* app/core/gimpimage-sample-points.c
      	* app/core/gimpimage-sample-points.h: new files
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.c
      	* app/actions/view-commands.h
      	* app/config/gimprc-blurbs.h
      	* app/core/Makefile.am
      	* app/core/core-enums.c
      	* app/core/core-enums.h
      	* app/core/core-types.h
      	* app/core/gimp.c
      	* app/core/gimp.h
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-duplicate.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage-undo-push.h
      	* app/core/gimpimage.c
      	* app/core/gimpimage.h
      	* app/display/gimpdisplayoptions.c
      	* app/display/gimpdisplayoptions.h
      	* app/display/gimpdisplayshell-appearance.c
      	* app/display/gimpdisplayshell-appearance.h
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell-draw.c
      	* app/display/gimpdisplayshell-draw.h
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell.c
      	* app/display/gimpdisplayshell.h
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: add support for a list of "sample
      	points" in each image, coded and handled very similarly to
      	guides, for use mainly in color correction.  See bug #137776.
      ea267753
  8. 01 Mar, 2005 1 commit
  9. 24 Feb, 2005 1 commit
    • Michael Natterer's avatar
      Allow to resize layers with the image. Fixes bug #87789. · 03182eba
      Michael Natterer authored
      2005-02-24  Michael Natterer  <mitch@gimp.org>
      
      	Allow to resize layers with the image. Fixes bug #87789.
      
      	* app/core/core-enums.[ch]: added enum GimpImageResizeLayers which
      	can be one of { NONE, MATCHING, ALL }.
      
      	* app/core/gimpimage-resize.[ch]: added new function
      	gimp_image_resize_with_layers().
      
      	* app/dialogs/resize-dialog.[ch]: added a "Layers" frame
      	containing a "Resize Layers" combo box offering the choices above.
      	Changed GimpResizeCallback signature accordingly.
      
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c: changed accordingly.
      03182eba
  10. 22 Jan, 2005 1 commit
    • Sven Neumann's avatar
      app/core/core-enums.h moved enums to libgimpbase (from app/core and · 0aa90155
      Sven Neumann authored
      2005-01-23  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.h
      	* libgimpbase/gimpbaseenums.h: moved enums to libgimpbase (from
      	app/core and libgimp). The remaining enums in app/core/core-enums.h
      	need special treatment.
      
      	* app/core/core-enums.c:
      	* libgimp/gimpenums.h
      	* libgimpbase/gimpbaseenums.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimpbase/gimpbase.def
      	* libgimp/gimp.def: updated.
      0aa90155
  11. 14 Jan, 2005 1 commit
    • Michael Natterer's avatar
      added GIMP_UNDO_INK. · d4177c88
      Michael Natterer authored
      2005-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): added GIMP_UNDO_INK.
      
      	* app/paint/gimppaintcore.[ch]: added virtual function
      	GimpPaintCore::push_undo() and call it.
      
      	* app/paint/gimppaintcore-undo.[ch]: made it the default
      	implementation.
      
      	* app/paint/gimpink-blob.[ch]: added blob_duplicate().
      
      	* app/paint/gimpink.[ch]: added a "start_blob" (just like
      	GimpPaintCore::start_coords) which gets set whenever we start a
      	new stroke or line. Removed ink->lastx and ink->lasty because
      	they are the same as paint_core->last_coords.
      
      	* app/paint/Makefile.am
      	* app/paint/gimpink-undo.[ch]: new files implementing an
      	undo step for ink which restores the last blob used along
      	with the whole ink state. Fixes bug #163670.
      d4177c88
  12. 25 Oct, 2004 1 commit
    • Michael Natterer's avatar
      Don't store human readable and translatable enum/flag strings in · 67116466
      Michael Natterer authored
      2004-10-25  Michael Natterer  <mitch@gimp.org>
      
      	Don't store human readable and translatable enum/flag strings in
      	GEnumValue's and GTypeValue's fields but attach them to their
      	GType using separate structs and utility functions:
      
      	* tools/gimp-mkenums: added params and perl voodoo to support
      	generating a second array of values, which is used by the
      	Makefiles below to create and register arrays of value
      	descriptions.
      
      	* libgimpbase/gimpbasetypes.[ch]: added API to attach/retreive
      	arrays of translatable strings to/from enum and flags types. Added
      	structs GimpEnumDesc and GimpFlagsDesc for that purpose.
      
      	* libgimpbase/gimputils.[ch]: changed existing enum utility
      	functions, added new ones and added a symmetric API for flags.
      
      	* app/base/Makefile.am
      	* app/core/Makefile.am
      	* app/display/Makefile.am
      	* app/paint/Makefile.am
      	* app/text/Makefile.am
      	* app/tools/Makefile.am
      	* app/widgets/Makefile.am
      	* libgimp/Makefile.am
      	* libgimpbase/Makefile.am: changed *-enums.c generation rules
      	accordingly.
      
      	* app/base/base-enums.c
      	* app/core/core-enums.c
      	* app/display/display-enums.c
      	* app/paint/paint-enums.c
      	* app/text/text-enums.c
      	* app/tools/tools-enums.c
      	* app/widgets/widgets-enums.c
      	* libgimpbase/gimpbaseenums.c: regenerated.
      
      	* app/widgets/gimpenumstore.c
      	* app/widgets/gimpenumwidgets.c
      	* app/widgets/gimptemplateeditor.c
      	* libgimpwidgets/gimppreviewarea.c: follow the enum utility
      	function API changes.
      67116466
  13. 22 Oct, 2004 1 commit
    • Michael Natterer's avatar
      added new enum GimpStrokeMethod which can be one of { LIBART, PAINT_CORE · 06447c00
      Michael Natterer authored
      2004-10-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: added new enum GimpStrokeMethod which
      	can be one of { LIBART, PAINT_CORE }.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpstrokedesc.[ch]: new object which encapsulates
      	the params and setup logic for the different stroke methods.
      
      	* app/core/gimpitem.[ch]: use it in GimpItem::stroke() and
      	in the gimp_item_stroke() wrapper.
      
      	* app/core/gimpchannel.c (gimp_channel_stroke)
      	* app/core/gimpselection.c (gimp_selection_stroke)
      	* app/vectors/gimpvectors.c (gimp_vectors_stroke): changed accprdingly.
      
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/dialogs/stroke-dialog.c
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/paths.pdb: use GimpStrokeDesc. Simplifies the
      	code quite a bit.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/paths_cmds.c: regenerated.
      06447c00
  14. 14 Oct, 2004 1 commit
    • Michael Natterer's avatar
      register GimpConvertPaletteType with the type system. · 1e4203e6
      Michael Natterer authored
      2004-10-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: register GimpConvertPaletteType with
      	the type system.
      
      	* app/widgets/gimpwidgets-utils.c (gimp_enum_radio_frame_add):
      	fixed to insert the widget at the right place in the radio box.
      
      	* app/dialogs/convert-dialog.c: use enum widgets and
      	gimp_enum_radio_frame_add(), resulting in a much better looking
      	dialog with much less lines of code.
      1e4203e6
  15. 25 Sep, 2004 1 commit
    • Michael Natterer's avatar
      added comment about not changing the silly "Qmask" string because it is · 5aeac72e
      Michael Natterer authored
      2004-09-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-qmask.h: added comment about not changing the
      	silly "Qmask" string because it is used to identify the Quick Mask
      	in the XCF.
      
      	* app/core/gimpchannel.c: implement GimpViewable::get_description()
      	and return "Quick Mask" if it's the Quick Mask.
      
      	* app/actions/qmask-actions.c
      	* app/actions/qmask-commands.c
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-qmask.c
      	* app/display/gimpdisplayshell.c: s/QuickMask/Quick Mask/.
      5aeac72e
  16. 29 Aug, 2004 1 commit
    • David Odin's avatar
      Renamed GimpPreviewSize to GimpViewSize. · b7f58e16
      David Odin authored
      * app/core/core-enums.h: Renamed GimpPreviewSize to GimpViewSize.
      
      * app/core/core-enums.c: Regenerated.
      
      * app/actions/dockable-actions.c
      
      * app/config/gimpcoreconfig.c
      * app/config/gimpcoreconfig.h
      * app/config/gimpdisplayconfig.c
      * app/config/gimpdisplayconfig.h
      
      * app/core/gimpundo.c
      
      * app/display/gimpnavigationeditor.c
      
      * app/gui/dialogs.c
      * app/gui/file-open-location-dialog.c
      
      * app/tools/gimppaintoptions-gui.c
      * app/tools/gimptextoptions.c
      
      * app/widgets/gimpbrushselect.c
      * app/widgets/gimpcontainerpopup.c
      * app/widgets/gimpcontainerview.c
      * app/widgets/gimpdialogfactory.c
      * app/widgets/gimpfontselect.c
      * app/widgets/gimpgradientselect.c
      * app/widgets/gimppaletteselect.c
      * app/widgets/gimppatternselect.c
      * app/widgets/gimpselectioneditor.c
      * app/widgets/gimpsessioninfo.c
      * app/widgets/gimptemplateeditor.c
      * app/widgets/gimpundoeditor.c
      * app/widgets/gimpundoeditor.h
      * app/widgets/gimpviewablebutton.c: Changed accordingly.
      b7f58e16
  17. 01 Aug, 2004 1 commit
    • Simon Budig's avatar
      app/core/core-enums.h Implement three different brush shapes for generated · c40e2939
      Simon Budig authored
      2004-08-01  Simon Budig  <simon@gimp.org>
      
      	* app/core/core-enums.h
      	* app/core/gimpbrushgenerated.[ch]: Implement three different
      	brush shapes for generated brushes.
      
      	* app/core/gimpbrush.c: changed accordingly.
      	* app/core/core-enums.c: regenerated.
      
      	* app/widgets/gimpbrusheditor.[ch]: Add toggles for the shape.
      	* themes/Default/images/stock-brush-generated-*-16.png: New stock
      	icons for the brush shapes.
      
      	* themes/Default/images/Makefile.am
      	* libgimpwidgets/gimpstock.[ch]: changed accordingly
      
      	untabified the files touched.
      c40e2939
  18. 29 Jul, 2004 2 commits
    • Michael Natterer's avatar
      Replaced the concept of having a boolean indicating if an undo step · 4b582b48
      Michael Natterer authored
      2004-07-29  Michael Natterer  <mitch@gimp.org>
      
      	Replaced the concept of having a boolean indicating if an undo
      	step dirties the image by a bitfield indicating which parts
      	of the image are dirtied:
      
      	* app/core/core-enums.[ch]: reordered two values in enum
      	GimpUndoType, added GIMP_DIRTY_IMAGE_SIZE to enum GimpDirtyMask.
      
      	The values of GimpDirtyMask are still questionable and will
      	probably change...
      
      	* app/core/gimpimage.[ch]: removed signal "undo_start" and added
      	a GimpDirtyMask parameter to the "dirty" and "clean" signals.
      
      	* app/core/gimpimage-undo.[ch] (gimp_image_undo_push): replaced
      	"gboolean dirties_image" by "GimpDirtyMask dirty_mask" and pass
      	it to gimp_image_dirty().
      
      	(gimp_image_undo_group_start): added *ugly* code which tries to
      	figure GimpDirtyMask from the group's GimpUndoType and store it in
      	the GimpUndoGroup. Call gimp_image_dirty() instead of the removed
      	gimp_image_undo_start(). This means the undo group now dirties the
      	image just like one of its undo steps, but that's no problem since
      	undoing cleans it in the same way.
      
      	* app/core/gimpundo.[ch]: s/dirties_image/dirty_mask/g
      
      	(gimp_undo_pop): emit clean/dirty signals *before* performing the
      	actual undo step so listeners can detach from the image before it
      	is changed by undo.
      
      	* app/core/gimpimage-undo-push.c (gimp_image_undo_push_*): pass a
      	GimpDirtyMask instead of TRUE/FALSE to gimp_image_undo_push().
      
      	* app/core/gimpimagemap.[ch]: removed "gboolean interactive"
      	because it makes no sense to use GimpImageMap noninteractively.
      	Don't freeze()/thaw() undo while the image_map is active which
      	fixes many ways of trashing the image's undo state but probably
      	introduces new ways of doing evil things.
      
      	* app/display/gimpdisplay-foreach.c
      	* app/display/gimpdisplayshell-handlers.c: changed according
      	to the GimpImage::clean()/dirty() signal changes. Small fixes
      	in the quit dialog's dirty image container.
      
      	* app/tools/gimptoolcontrol.[ch]: added member and API to
      	set/get the dirty_mask.
      
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c: whenever setting "preserve" to
      	FALSE, also set a "dirty_mask" which specifies on which image
      	changes the tool wants to be canceled.
      
      	* app/tools/tool_manager.c: removed "undo_start" connection and
      	connect to both "dirty" *and* "clean" to check if the active_tool
      	needs to be canceled. Cancel the tool only if the dirty_mask
      	passed in the signal has common bits with the tool's dirty_mask.
      
      	Fixes bug #109561 and probably opens some new ones...
      4b582b48
    • Sven Neumann's avatar
      removed enums GimpImageType and GimpImageBaseType ... · e10ebe18
      Sven Neumann authored
      2004-07-29  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.h: removed enums GimpImageType and
      	GimpImageBaseType ...
      
      	* libgimpbase/gimpbaseenums.h: ... and added them here. Also moved
      	all enums from gimpbasetypes.h to this new file.
      
      	* libgimpbase/Makefile.am
      	* tools/pdbgen/Makefile.am: changed accordingly.
      
      	* app/core/core-enums.c
      	* libgimp/gimpenums.h
      	* libgimpbase/gimpbaseenums.c
      	* tools/pdbgen/enums.pl: regenerated.
      
      	* libgimpbase/gimpparasite.c
      	* libgimpbase/gimpprotocol.c
      	* libgimp/gimp.c: include <glib-object.h>
      
      	* libgimpbase/gimpbasetypes.[ch]: added API to set and get a
      	translation domain on a GType. This is used for translatable enum
      	values.
      
      	* libgimpbase/gimputils.[ch]: added API to retrieve the translated
      	name for an enum value.
      
      	* app/widgets/gimpenumstore.c
      	* app/widgets/gimpenumwidgets.c: use the new API in libgimpbase.
      e10ebe18
  19. 28 Jul, 2004 1 commit
    • Michael Natterer's avatar
      added still unused flags type GimpDirtyMask. · ee42d8f5
      Michael Natterer authored
      2004-07-28  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.h: added still unused flags type
      	GimpDirtyMask.
      
      	* app/base/Makefile.am
      	* app/core/Makefile.am
      	* app/display/Makefile.am
      	* app/paint/Makefile.am
      	* app/text/Makefile.am
      	* app/tools/Makefile.am
      	* app/widgets/Makefile.am
      	* libgimpthumb/Makefile.am: changed calls to gimp-mkenums to
      	support GTypeFlags and to make the value arrays private to the
      	get_type() functions.
      
      	* app/base/base-enums.c
      	* app/core/core-enums.c
      	* app/display/display-enums.c
      	* app/paint/paint-enums.c
      	* app/text/text-enums.c
      	* app/tools/tools-enums.c
      	* app/widgets/widgets-enums.c: regenerated.
      ee42d8f5
  20. 30 Jun, 2004 1 commit
  21. 26 May, 2004 1 commit
  22. 18 May, 2004 1 commit
    • Michael Natterer's avatar
      Allow plug-ins to register menu icons. Fixes bug #120500. · 3fb934b2
      Michael Natterer authored
      2004-05-18  Michael Natterer  <mitch@gimp.org>
      
      	Allow plug-ins to register menu icons. Fixes bug #120500.
      
      	* app/core/core-enums.[ch]: added enum GimpIconType which can
      	be one of { STOCK_ID, IMAGE_FILE, INLINE_PIXBUF }.
      
      	* app/config/gimpconfigwriter.[ch] (gimp_config_writer_data)
      	* app/config/gimpscanner.[ch] (gimp_scanner_parse_data): new
      	functions which write/parse raw binary data. Needed for storing
      	inline pixbufs in pluginrc.
      
      	* app/config/gimpconfigwriter.[ch] (gimp_config_writer_identifier):
      	new function which writes out an unquoted and unescaped string.
      
      	* app/plug-in/plug-in-proc.[ch] (struct PlugInProcDef): added
      	new members "icon_type", "icon_data_length" and "icon_data".
      	Reordered members so file_proc specific stuff is at the end.
      
      	(plug_in_proc_def_get_stock_id)
      	(plug_in_proc_def_get_pixbuf): new functions to access the
      	procedure's icon.
      
      	* app/plug-in/plug-in-rc.c: save/restore the registered icons.
      
      	* app/actions/file-dialog-actions.c
      	* app/actions/plug-in-actions.c: set the action's stock ID from
      	the procedure's stock ID.
      
      	* app/widgets/gimppluginaction.c
      	(gimp_plug_in_action_connect_proxy): if the procedure provides a
      	pixbuf, set it as icon for the menu item.
      
      	* app/menus/file-dialog-menu.[ch]
      	* app/menus/file-open-menu.c
      	* app/menus/file-save-menu.c
      	* app/xcf/xcf.c: changed accordingly.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_icon_register): new PDB
      	function which can be called during query().
      
      	* tools/pdbgen/enums.pl
      	* app/pdb/internal_procs.c
      	* app/pdb/plug_in_cmds.c
      	* libgimp/gimpenums.h
      	* libgimp/gimpplugin_pdb.c
      	* libgimp/gimpplugin_pdb.h
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c: regenerated.
      
      	* plug-ins/common/plugindetails.c
      	* plug-ins/common/uniteditor.c
      	* plug-ins/print/print.c: register stock_id icons.
      
      	* plug-ins/common/screenshot.c: register an inline_pixbuf icon for
      	testing purposes (used emblem-camera.png from gnome-icon-theme).
      
      	* app/actions/dialogs-actions.c
      	* app/actions/file-actions.c: unrelated: added some more icons
      	to menu items.
      3fb934b2
  23. 07 May, 2004 1 commit
    • Sven Neumann's avatar
      added a const qualifier. · 8e6d919c
      Sven Neumann authored
      2004-05-07  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-colormap.[ch]: added a const qualifier.
      
      	Changed how the image unit and dot-for-dot mode is handled. Might
      	break things and certainly needs more changes (mainly in tools):
      
      	* app/core/gimptemplate.c: allow GIMP_UNIT_PIXEL as image unit.
      
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpstatusbar.c: always use the image unit for the
      	rulers and to display lengths.
      
      	* app/widgets/gimptemplateeditor.c: redone GimpTemplateEditor
      	based on a dialog mockup from Jimmac and Tigert.
      
      	* app/core/core-enums.[ch]: changed some descriptions used by the
      	template editor.
      8e6d919c
  24. 13 Apr, 2004 1 commit
    • Michael Natterer's avatar
      GimpItem undo group cleanup in preparation of fixing bug #138356: · 069489fb
      Michael Natterer authored
      2004-04-13  Michael Natterer  <mitch@gimp.org>
      
      	GimpItem undo group cleanup in preparation of fixing bug #138356:
      
      	* app/core/core-enums.[c]: renamed LAYER_SCALE and LAYER_RESIZE
      	undo groups to ITEM_SCALE and ITEM_RESIZE.
      
      	* app/core/gimpitem.[ch]: always push undo groups around
      	GimpItem::translate(), scale(), resize(), flip(), rotate() and
      	transform(). Added the resp. undo_desc strings to GimpItemClass.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimpdrawable.[ch]
      	* app/core/gimplayer.c: removed all undo groups from
      	implementations of the above methods. Removed the undo_desc
      	strings which were moved to GimpItemClass.
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpselection.c
      	* app/gui/layers-commands.c
      	* app/vectors/gimpvectors.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      069489fb
  25. 01 Apr, 2004 1 commit
    • Michael Natterer's avatar
      added undo type GIMP_UNDO_TEXT_LAYER_MODIFIED and undo group types · acc72b62
      Michael Natterer authored
      2004-04-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): added undo type
      	GIMP_UNDO_TEXT_LAYER_MODIFIED and undo group types
      	GIMP_UNDO_GROUP_DRAWABLE and GIMP_UNDO_GROUP_DRAWABLE_MOD.
      
      	* app/core/gimpimage-undo-push.[ch]: added new new function
      	gimp_image_undo_push_text_layer_modified() which makes
      	modifications of the text_layer's "modified" boolean undoable.
      
      	* app/core/gimpdrawable.[ch]: added new virtual function
      	GimpDrawable::push_undo() and moved the actual undo pushing into
      	the default implementation gimp_drawable_real_push_undo().
      
      	* app/text/gimptextlayer.c (gimp_text_layer_push_undo): new
      	function. Pushes the text_layer's modified state to the undo stack
      	after upchaining and sets modified to TRUE.
      
      	(gimp_text_layer_set_tiles): ditto.
      
      	(gimp_lext_layer_apply_region)
      	(gimp_text_layer_replace_region): removed because their default
      	implementations already call gimp_drawable_push_undo().
      
      	(gimp_text_layer_swap_pixels): removed because swap_pixels() is
      	used by undo only and doesn't need to care about the text_layer's
      	modified state.
      
      	(gimp_text_layer_render): don't set modified to FALSE here because
      	we can't push an undo step here.
      
      	(gimp_text_layer_set): push the modified state to the undo stack
      	and set it to FALSE here. Also push the layer's tiles if the
      	layer was modified.
      
      	* app/tools/gimptexttool.c (gimp_text_tool_apply): push "modified"
      	to the undo stack and set it to FALSE here, too.
      
      	Fixes bug #137767.
      acc72b62
  26. 29 Mar, 2004 1 commit
    • Michael Natterer's avatar
      added new group GIMP_UNDO_GROUP_FS_REMOVE. · 110dc4e2
      Michael Natterer authored
      2004-03-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.h (enum GimpUndoType): added new group
      	GIMP_UNDO_GROUP_FS_REMOVE.
      
      	* app/core/gimplayer-floating-sel.c (floating_sel_remove): push an
      	undo group. Fixes undo corruption spotted by Pedro Gimeno.
      110dc4e2
  27. 15 Mar, 2004 2 commits
    • Michael Natterer's avatar
      replaced GIMP_UNDO_LAYER_MOD and GIMP_UNDO_CHANNEL_MOD by · 5ef7c774
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): replaced
      	GIMP_UNDO_LAYER_MOD and GIMP_UNDO_CHANNEL_MOD by
      	GIMP_UNDO_DRAWABLE_MOD.
      
      	* app/core/gimpimage-undo-push.[ch]: ditto: replaced
      	gimp_image_undo_push_layer_mod() and
      	gimp_image_undo_push_channel_mod() by
      	gimp_image_undo_push_drawable_mod().
      
      	* app/core/gimpdrawable.[ch]: added undo_desc strings for "resize"
      	and "scale" to the GimpDrawableClass struct.
      
      	(gimp_drawable_scale)
      	(gimp_drawable_resize): pass push_undo = TRUE to
      	gimp_drawable_set_tiles_full() and use the undo_desc from the
      	class.
      
      	(gimp_drawable_real_set_tiles): push a GIMP_UNDO_DRAWABLE_MOD here...
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: ...and don't push undos in
      	GimpItem::scale(), GimpItem::resize(), GimpDrawable::set_tiles().
      
      	* app/core/gimpchannel.c: Removed even more bounds_known = FALSE
      	assignments from functions which already call
      	gimp_drawable_set_tiles().
      5ef7c774
    • Michael Natterer's avatar
      Prepare the undo system for proper text layer undo: · a18a1d12
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	Prepare the undo system for proper text layer undo:
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): replaced
      	GIMP_UNDO_IMAGE and GIMP_UNDO_IMAGE_MOD by GIMP_UNDO_DRAWABLE.
      
      	* app/core/gimpimage-undo-push.[ch]: ditto: replaced
      	gimp_image_undo_push_image() and gimp_image_undo_push_image_mod()
      	by gimp_image_undo_push_drawable() which *always* expects to get a
      	TileManager passed. Also added g_return_if_fail()s to check if the
      	passed in tile manager follows the semantics of the "sparse"
      	boolean.
      
      	(undo_pop_drawable): removed all code and call the new
      	gimp_drawable_swap_pixels() instead (see below).
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_push_undo): if tiles
      	are NULL, create a copy of the area here and always pass tiles to
      	gimp_image_undo_push_drawable(). Added lots of g_return_if_fail()
      	here too.
      
      	Added new vitrual function GimpDrawable::swap_pixels() which
      	does what undo_pop_drawable() did.
      
      	* app/core/gimpchannel.c: implement swap_pixels() and invalidate
      	the channel's bounds and boundary.
      a18a1d12
  28. 14 Feb, 2004 1 commit
    • Michael Natterer's avatar
      Fixed lots of QuickMask brokenness by letting the image adjust its · 25b81b15
      Michael Natterer authored
      2004-02-14  Michael Natterer  <mitch@gimp.org>
      
      	Fixed lots of QuickMask brokenness by letting the image adjust
      	its qmask_state automatically:
      
      	* app/core/gimpimage-qmask.h: #define GIMP_IMAGE_QMASK_NAME "Qmask".
      	Use the define in all files below.
      
      	* app/core/gimpimage.[ch]: split gimp_image_drawable_add,_remove()
      	into separate handlers for layers and channels. Added a
      	"name_changed" handler for all channels. In the channel "add",
      	"remove" and "name_changed" handlers, check if it was a channel
      	named "Qmask" that was added, removed or renamed and call
      	gimp_image_set_qmask_state() accordingly.
      
      	* app/core/core-enums.[ch]
      	* app/core/gimpimage-undo-push.[ch]
      	* app/core/gimpundo.c: removed all Qmask undo code because the image
      	does the right thing without undo interaction now.
      
      	* app/core/gimpimage-qmask.c (gimp_image_set_qmask_state): set
      	gimage->qmask_state early so we can return early when called
      	recursively. Removed calls to gimp_image_undo_push_image_qmask().
      	Returned "removed" callback (it was utterly broken the way it was
      	implemented).
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_qmask_toggled): check if the image's
      	qmask state needs to be changed before changing it.
      
      	* app/xcf/xcf-load.c (xcf_load_channel): removed code which
      	recognized the qmask. GimpImage does this automatically now.
      
      	* app/gui/qmask-commands.c: cleanup.
      
      	* app/widgets/gimpimagedock.c (gimp_image_dock_constructor):
      	destroy the "/Select/By Color" and "/Select/Toggle QuickMask" menu
      	items.
      
      	* app/widgets/image-menu.c (image_menu_update): changed accordingly.
      25b81b15
  29. 06 Jan, 2004 1 commit
    • Michael Natterer's avatar
      Enabled skipping enum values for either the PDB or GType registration · dec20d82
      Michael Natterer authored
      2004-01-06  Michael Natterer  <mitch@gimp.org>
      
      	Enabled skipping enum values for either the PDB or GType
      	registration (don't always skip both targets):
      
      	* tools/gimp-mkenums: skip enum values only if there is a literal
      	"skip" (don't match "pdb-skip").
      
      	* tools/pdbgen/enumgen.pl: skip only "pdb-skip" values, not "skip"
      	ones.
      
      	* app/base/base-enums.h
      	* app/core/core-enums.h
      	* app/paint/paint-enums.h
      	* libgimpbase/gimpbaseenums.h: use the right "pdb-skip"/"skip"
      	combination to skip enum values. Changed comments accordingly.
      
      	Cleaned up the fill functions:
      
      	* app/core/core-enums.[ch]: added GIMP_PATTERN_FILL enum value to
      	the GimpFillType enum. Don't export GIMP_NO_FILL to the PDB
      	because it's completely useless to export a NOP.
      
      	* app/core/gimp-edit.c (gimp_edit_fill, gimp_edit_fill_internal):
      	handle pattern fill requests.
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_fill): added GimpPattern
      	parameter and fill with it if it's non-NULL.
      
      	(gimp_drawable_fill_by_type): handle pattern fill and pass the
      	current pattern to gimp_drawable_fill().
      
      	* app/text/gimptextlayer.c: changed accordingly.
      
      	* app/gui/edit-commands.c
      	* app/gui/image-menu.c: use gimp_edit_fill() instead of
      	gimp_drawable_bucket_fill() for FG, BG and pattern filling.
      
      	* libgimp/gimpcompat.h
      	* plug-ins/script-fu/siod-wrapper.c: removed NO_IMAGE_FILL compat
      	enum value. It should have never been exported to the PDB.
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/edit_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      dec20d82
  30. 05 Jan, 2004 1 commit
    • Sven Neumann's avatar
      added GIMP_UNDO_TEXT_LAYER to GimpUndoType enum. · 3451c82f
      Sven Neumann authored
      2004-01-05  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.[ch]: added GIMP_UNDO_TEXT_LAYER to
      	GimpUndoType enum.
      
      	* app/core/gimpimage-undo-push.[ch]: added new undo function
      	gimp_image_undo_push_text_layer().
      
      	* app/text/gimptextlayer.[ch]: renamed gimp_text_layer_render() to
      	gimp_layer_text_layer_flush().
      	Added new function gimp_text_layer_discard().
      
      	* app/text/gimptextlayer-transform.c: changed accordingly.
      
      	* app/gui/image-menu.c
      	* app/gui/layers-commands.[ch]
      	* app/gui/layers-menu.c: added menu entries that allow to discard
      	the text information of a text layer (bug #118547).
      
      	* app/widgets/gimppreviewrendererlayer.c
      	(gimp_preview_renderer_layer_render): treat text layers without a
      	text object like ordinary layers.
      
      	* app/widgets/gimppreviewrenderer-utils.c: include gimplayer.h
      	instead of gimptextlayer.h.
      3451c82f
  31. 28 Dec, 2003 1 commit
    • Simon Budig's avatar
      Some default dash pattern enum. regenerated. · 411b54d1
      Simon Budig authored
      2003-12-28  Simon Budig  <simon@gimp.org>
      
      	* app/core/core-enums.h: Some default dash pattern enum.
      	* app/core/core-enums.c: regenerated.
      
      	* app/core/gimpstrokeoptions.[ch]: Implement default dash
      	patterns, add a signal when the dash pattern changes.
      
      	* app/widgets/gimpstrokeeditor.c: Add an option menu for
      	the dash pattern and connect it to the signal mentioned above.
      411b54d1
  32. 09 Dec, 2003 1 commit
    • Michael Natterer's avatar
      removed enum value GIMP_UNDO_GROUP_EDIT_COPY (I have no idea why we used · 2d56352b
      Michael Natterer authored
      2003-12-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: removed enum value
      	GIMP_UNDO_GROUP_EDIT_COPY (I have no idea why we used to push an
      	undo group around "Copy"...).
      
      	* app/core/gimp-edit.c (gimp_edit_extract): new utility function
      	which does everything needed for cut and copy and does not push an
      	undo group for copy.
      
      	(gimp_edit_cut,copy): removed lots of duplicated code and call
      	gimp_edit_extract().
      
      	(gimp_edit_paste,paste_as_new): no need to call
      	gimp_item_set_image() on newly created layers.
      2d56352b
  33. 26 Nov, 2003 2 commits
    • Michael Natterer's avatar
      eek, it should be GIMP_ADD_ALPHA_TRANSFER_MASK, not · c97d090d
      Michael Natterer authored
      2003-11-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: eek, it should be
      	GIMP_ADD_ALPHA_TRANSFER_MASK, not GIMP_ADD_ALPHA_MASK_TRANSFER.
      
      	* app/core/gimplayer.c (gimp_layer_create_mask): changed accordingly.
      
      	* app/pdb/layer_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      c97d090d
    • Michael Natterer's avatar
      added enum values GIMP_ADD_ALPHA_MASK_TRANSFER and · e0e8a34f
      Michael Natterer authored
      2003-11-26  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch]: added enum values
      	GIMP_ADD_ALPHA_MASK_TRANSFER and GIMP_UNDO_GROUP_LAYER_ADD_MASK.
      
      	* app/core/gimplayer.c (gimp_layer_create_mask): applied patch
      	from Pedro Gimeno which implements the new ADD_MASK type and
      	added undo. Fixes bug #127930.
      
      	* app/gui/layers-commands.c: push an undo group around layer mask
      	creation & adding since the creation may change the layer now.
      
      	* app/pdb/layer_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/pygimp/gimpenums.py
      	* plug-ins/script-fu/script-fu-constants.c
      	* tools/pdbgen/enums.pl: regenerated.
      e0e8a34f