1. 23 Oct, 2004 3 commits
    • Michael Natterer's avatar
      don't g_return_if_fail() if there is no active drawable, just silently · fa79ae28
      Michael Natterer authored
      2004-10-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/file-commands.c (file_save_cmd_callback): don't
      	g_return_if_fail() if there is no active drawable, just silently
      	return.
      
      	* app/actions/image-commands.c: remember the last merge_type of
      	the "Merge Visible Layers" dialog.
      
      	* app/actions/layers-commands.c: remeber the last values of the
      	"Add Layer Mask" dialog.
      
      	* app/actions/select-commands.c: renamed a bunch of static
      	variables to be consistent with other variables used to remember
      	dialog values.
      
      	* app/actions/view-commands.c (view_fullscreen_cmd_callback): it's
      	useless to update the "view-fullscreen" actions here because the
      	"fullscreen" state of the shell changes asynchronously
      fa79ae28
    • Michael Natterer's avatar
      app/dialogs/Makefile.am one more dialog split out of actions/. · cbaf441f
      Michael Natterer authored
      2004-10-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/layer-add-mask-dialog.[ch]: one more dialog split
      	out of actions/.
      
      	* app/actions/layers-commands.c: removed it here. Some cleanup.
      cbaf441f
    • Michael Natterer's avatar
      When there are variants of actions with and without dialog, let the · fd6d30fd
      Michael Natterer authored
      2004-10-23  Michael Natterer  <mitch@gimp.org>
      
      	When there are variants of actions with and without dialog, let
      	the dialog-less actions try to use the values from the last dialog
      	invocation:
      
      	* app/actions/channels-actions.c
      	* app/actions/channels-commands.[ch]
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.[ch]
      	* app/actions/vectors-actions.c
      	* app/actions/vectors-commands.[ch]: renamed the foo-new-defaults
      	actions to foo-new-last-values and use the last values entered in
      	the dialogs.
      
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpvectorstreeview.c: changed accordingly. Show
      	the dialog on clicking "New" and call the last-values action on
      	<shift>+click.
      
      	* app/actions/select-actions.c
      	* app/actions/vectors-commands.c: renamed the foo-stroke-last-vals
      	to -last-values.
      
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimpvectorstreeview.c: stroke with last values on
      	<shift> clicking the stroke buttons.
      fd6d30fd
  2. 22 Oct, 2004 1 commit
  3. 18 Oct, 2004 1 commit
    • Michael Natterer's avatar
      Action code review and pre-release consistency cleanup: · c49df22e
      Michael Natterer authored
      2004-10-18  Michael Natterer  <mitch@gimp.org>
      
      	Action code review and pre-release consistency cleanup:
      
      	* app/actions/*-actions.c: added some missing and resolved
      	conflicting mnemonics, added missing help IDs. Cleaned up the
      	*_actions_update() functions.
      
      	* app/actions/channels-actions.c
      	* app/actions/layers-actions.c
      	* app/actions/vectors-actions.c (*_actions_update): simplified
      	the code that figures the prev and next channel,layer,vectors.
      
      	* app/actions/qmask-actions.c: use the same accelerator for
      	"qmask-active" and "qmask-toggle". Fixed action sensitivity.
      
      	* app/actions/channels-commands.c
      	* app/actions/dockable-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/image-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c: folded tons of private utility
      	functions into their only callers (they used to be public and
      	called from outside before the switch to action based menus).
      	Renamed functions and variables saying "query" or "qbox" to
      	"dialog". Moved static functions to the end of the files. Misc
      	minor cleanups.
      
      	* app/actions/drawable-actions.c
      	* app/actions/drawable-commands.c: made the "drawable-visible" and
      	"drawable-linked" actions affect the layer if the active drawable
      	is a layer mask.
      
      	* app/actions/select-commands.c: added action to stroke with the
      	last values used in an attempt to address bug #135746 but #if 0'ed
      	it because the approach is too ugly.
      
      	* app/tools/gimpiscissorstool.c: changed mnemonic from I to S.
      
      	* menus/image-menu-xml.in: added more stuff to the (commented out)
      	"context" menu.
      c49df22e
  4. 16 Oct, 2004 1 commit
    • Michael Natterer's avatar
      Ported the layers, channels and paths dialogs from · 8effb0cf
      Michael Natterer authored
      2004-10-16  Michael Natterer  <mitch@gimp.org>
      
      	Ported the layers, channels and paths dialogs from
      	gimp_editor_add_button() to gimp_editor_add_action_button(),
      	removing a massive amount of duplicated code, sensitivity logic
      	and confusing utility functions.
      
      	* app/actions/channels-actions.c
      	* app/actions/channels-commands.[ch]
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.[ch]
      	* app/actions/vectors-actions.c
      	* app/actions/vectors-commands.[ch]: added "foo-new-default"
      	actions and callbacks which create items without a dialog,
      	optionally using default values from a passed template. Removed
      	all public utility function that were passed as function pointers
      	to widget construtors. Added tooltips to all actions which are now
      	used for dialog buttons.
      
      	* app/widgets/gimpeditor.c (gimp_editor_add_action_button):
      	automatically create multi-line tooltips showing the modifiers for
      	extended action buttons. Removes the need for lots of insane
      	format strings that need to be translated correctly.
      
      	* app/widgets/gimpitemtreeview.[ch] (struct GimpItemTreeViewClass):
      	replaced tooltip and help_id strings by action names.
      
      	(struct GimpItemTreeView)
      	(gimp_item_tree_view_new): removed "edit", "new" and "activate"
      	function pointers.
      
      	(gimp_item_tree_view_constructor): create all buttons
      	with gimp_editor_add_action_button(), using the action names
      	from GimpItemTreeViewClass.
      
      	Removed tons of "clicked" callbacks and all code which sets the
      	buttons' sensitivity. They are not needed any longer.
      
      	Require all subclasses to implement GimpItemTreeView::new_item(),
      	a new virtual function which creates a plain new item without
      	showing a dialog.
      
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpvectorstreeview.c: fill in the action names and
      	implement GimpItemTreeView::new_item(). Removed all button
      	sensitivity logic.
      
      	* app/dialogs/dialogs-constructors.c: changed accordingly. Doesn't
      	include anything from actions/ any more.
      8effb0cf
  5. 14 Oct, 2004 1 commit
    • Michael Natterer's avatar
      libgimpwidgets/gimpwidgets.c app/widgets/gimpenumwidgets.[ch] · 27c2be7c
      Michael Natterer authored
      2004-10-14  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpwidgets/gimpwidgets.c
      	* app/widgets/gimpenumwidgets.[ch]
      	* app/widgets/gimppropwidgets.c
      	* app/actions/layers-commands.c
      	* app/dialogs/convert-dialog.c
      	* app/tools/gimpblendoptions.c
      	* app/tools/gimpbucketfilloptions.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcolorizetool.c
      	* app/tools/gimpcoloroptions.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpinkoptions-gui.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimppaintoptions-gui.c
      	* app/tools/gimpselectionoptions.c
      	* app/tools/gimptransformoptions.c: the child of a GimpFrame must
      	not have any border width. Fixes many subtle misalignments.
      27c2be7c
  6. 12 Oct, 2004 1 commit
    • Sven Neumann's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h added new widget · 22a1384b
      Sven Neumann authored
      2004-10-12  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpsizebox.[ch]: added new widget GimpSizeBox.
      
      	* app/widgets/gimppropwidgets.c: the order of setting the X and Y
      	properties does matter.
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/scale-dialog.[ch]: added first version of a new
      	Scale dialog in an attempt to address bug #151022.
      
      	* app/actions/layers-commands.c: use the new scale dialog.
      22a1384b
  7. 20 Sep, 2004 1 commit
  8. 19 Sep, 2004 2 commits
    • Michael Natterer's avatar
      app/actions/channels-commands.c removed massive code duplication by · b9800e44
      Michael Natterer authored
      2004-09-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/channels-commands.c
      	* app/actions/vectors-commands.c: removed massive code duplication
      	by factoring out the code that creates the "New Channel/Path" and
      	"Edit Channel/Path Attributes" dialogs out to utility functions.
      	GUI spacing and Code cleanup.
      
      	* app/actions/layers-commands.c: minor GUI spacing and code
      	cleanup.
      b9800e44
    • Sven Neumann's avatar
      Try to make floating selections more obvious: · c3ef897b
      Sven Neumann authored
      2004-09-19  Sven Neumann  <sven@gimp.org>
      
      	Try to make floating selections more obvious:
      
      	* app/widgets/gimplayertreeview.c
      	(gimp_layer_tree_view_floating_selection_changed): always display
      	"Floating Selection" as the name for a floating selection.
      
      	* app/core/gimpselection.c (gimp_selection_float): call the new
      	layer "Selection" instead of "Floating Selection". This is what
      	will be displayed if the FS is turned into a layer.
      
      	* app/actions/layers-commands.c (layers_edit_layer_query): don't
      	special case floating selections here.
      
      	* app/core/gimplayer-floating-sel.c: cosmetics.
      c3ef897b
  9. 15 Sep, 2004 2 commits
    • Michael Natterer's avatar
      added help IDs for the drawable- and vectors-visible and -liked actions as · 186b5908
      Michael Natterer authored
      2004-09-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimphelp-ids.h: added help IDs for the drawable- and
      	vectors-visible and -liked actions as well as for the layer mask
      	property action.
      
      	* app/actions/drawable-actions.c
      	* app/actions/vectors-actions.c: use them.
      
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.[ch]: ditto. Use
      	GIMP_STOCK_TRANSPARENCY for all layer opacity actions. Replaced
      	"paint_mode" by "mode" in all action and function/variable names
      	because this is the layer mode, not a paint mode.
      
      	* app/actions/channels-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/vectors-commands.c: set the "activates-default"
      	property on the name entry in all "New Foo" and "Edit Foo
      	Attributes" dialogs except in the "New Layer" dialog.
      	Addresses bug #148026.
      
      	* menus/image-menu.xml.in: added a (commented out) layer
      	properties menu containing all the new actions.
      186b5908
    • Michael Natterer's avatar
      app/actions/layers-actions.c added actions and callbacks · 6a723efc
      Michael Natterer authored
      2004-09-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.[ch]: added actions and callbacks
      	"layers-preserve-transparency" and
      	"layers-paint-mode-first,last,previous,next". Update the "active"
      	state of the recently added layer mask property actions in
      	layers_actions_update().
      
      	* app/actions/drawable-actions.c
      	* app/actions/drawable-commands.[ch]: added actions and callbacks
      	for "drawable-visible" and "drawable-linked". Fixes bug #152597.
      
      	* app/actions/vectors-actions.c
      	* app/actions/vectors-commands.[ch]: same here ("vectors-visible"
      	and "vectors-linked").
      
      	* app/widgets/gimplayertreeview.c
      	(gimp_layer_tree_view_preserve_button_toggled): flush the image
      	so the new actions are updated. Compress preserve_trans undos.
      
      	* menus/image-menu.xml.in: added the layer mask property actions
      	to the Layers/Mask submenu.
      
      	* menus/layers-menu.xml: reordered the mask property actions
      	to have the same order as in the image menu.
      6a723efc
  10. 13 Sep, 2004 1 commit
    • Michael Natterer's avatar
      configure.in added new directory app/dialogs and link libappdialogs.c into · 7d065360
      Michael Natterer authored
      2004-09-13  Michael Natterer  <mitch@gimp.org>
      
      	* configure.in
      	* app/Makefile.am: added new directory app/dialogs and link
      	libappdialogs.c into the gimp binary.
      
      	* app/gui/Makefile.am
      	* app/gui/gui-types.h
      	* app/gui/gui-vtable.c
      	* app/gui/gui.c
      
      	* app/gui/about-dialog.[ch]
      	* app/gui/authors.h
      	* app/gui/color-notebook.[ch]
      	* app/gui/convert-dialog.[ch]
      	* app/gui/dialogs-constructors.[ch]
      	* app/gui/dialogs.[ch]
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/file-new-dialog.[ch]
      	* app/gui/file-open-dialog.[ch]
      	* app/gui/file-open-location-dialog.[ch]
      	* app/gui/file-save-dialog.[ch]
      	* app/gui/grid-dialog.[ch]
      	* app/gui/info-dialog.[ch]
      	* app/gui/info-window.[ch]
      	* app/gui/module-browser.[ch]
      	* app/gui/offset-dialog.[ch]
      	* app/gui/palette-import-dialog.[ch]
      	* app/gui/preferences-dialog.[ch]
      	* app/gui/quit-dialog.[ch]
      	* app/gui/resize-dialog.[ch]
      	* app/gui/resolution-calibrate-dialog.[ch]
      	* app/gui/stroke-dialog.[ch]
      	* app/gui/tips-dialog.[ch]
      	* app/gui/tips-parser.[ch]
      	* app/gui/user-install-dialog.[ch]: removed these files...
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/dialogs-types.h
      
      	* app/dialogs/*.[ch]: ...and added them here. Changed some
      	filenames like module-browser -> module-dialog.
      
      	* app/app_procs.c
      	* app/actions/actions-types.h
      	* app/actions/actions.c
      	* app/actions/dialogs-actions.c
      	* app/actions/dialogs-commands.c
      	* app/actions/dockable-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/file-commands.c
      	* app/actions/gradient-editor-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/select-commands.c
      	* app/actions/templates-commands.c
      	* app/actions/templates-commands.h
      	* app/actions/vectors-commands.c
      	* app/actions/view-commands.c
      	* app/display/gimpdisplayshell-cursor.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpdisplayshell.[ch]
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptransformtool.[ch]
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpcolormapeditor.[ch]
      	* app/widgets/gimpcolorpanel.c
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimppaletteeditor.[ch]
      	* app/widgets/gimptoolbox-color-area.c
      	* menus/toolbox-menu.xml.in
      	* tools/authorsgen/authorsgen.pl: changed accordingly.
      7d065360
  11. 20 Aug, 2004 2 commits
  12. 10 Aug, 2004 1 commit
    • Michael Natterer's avatar
      Redid the whole internal progress stuff: don't pass around · 02d2b990
      Michael Natterer authored
      2004-08-10  Michael Natterer  <mitch@gimp.org>
      
      	Redid the whole internal progress stuff: don't pass around
      	progress_callback and progress_data; instead, provide a
      	pointer to a GimpProgressInterface which can be implemented
      	by a variety of backends.
      
      	Addresses (but not yet fixes) bugs #6010, #97266 and #135185.
      
      	* app/display/Makefile.am
      	* app/display/gimpprogress.[ch]: removed the old progress hack.
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimpprogress.[ch]: implement GimpProgressInterface.
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpprogressdialog.[ch]: the standalone progress
      	dialog as widget implementing GimpProgressInterface.
      
      	* app/display/gimpdisplay.c
      	* app/display/gimpstatusbar.[ch]
      	* app/widgets/gimpfiledialog.[ch]
      	* app/widgets/gimpthumbbox.[ch]: added GimpProgressInterface
      	implementation to these classes.
      
      	* app/core/gimp-gui.[ch]
      	* app/gui/gui-vtable.c: replaced the old progress vtable entries
      	by two new to create and destroy a GimpProgressDialog in case
      	no other progress is available.
      
      	* app/pdb/procedural_db.[ch]
      	* app/plug-in/plug-in-run.[ch]
      	* tools/pdbgen/app.pl: pass a GimpProgress to all PDB wrappers and
      	all plug-ins.
      
      	* app/plug-in/plug-in.[ch]
      	* app/plug-in/plug-ins.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-in-progress.c: handle the case there the
      	plug-in was crated with a progress as well as the case where it
      	wasn't.
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/xcf/xcf.c
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimpfontselect.c
      	* app/widgets/gimpgradientselect.c
      	* app/widgets/gimppaletteselect.c
      	* app/widgets/gimppatternselect.c: changed accordingly.
      
      	* app/core/gimpimagefile.[ch]
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-open-location-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: pass a GimpProgress to all file
      	related functions. Embed the progress in the file dialog where
      	possible.
      
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-convert.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage-scale.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/core/gimpselection.c
      	* app/vectors/gimpvectors.c: replaced callback/data by GimpProgress.
      
      	* app/tools/gimpblendtool.c
      	* app/tools/gimptransformtool.c
      	* app/gui/convert-dialog.c
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c
      	* tools/pdbgen/pdb/convert.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb: changed callers accordingly.
      
      	* app/pdb/*_cmds.c: regenerated.
      02d2b990
  13. 03 Aug, 2004 1 commit
    • Michael Natterer's avatar
      new function which checks if undo compression is possible: · b909c2b2
      Michael Natterer authored
      2004-08-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-undo.[ch] (gimp_image_undo_can_compress):
      	new function which checks if undo compression is possible:
      
      	(1) is the image dirty? Fixes bug #148853.
      	(2) is redo stack empty?
      	(3) do both the passed undo object_type and undo_type
      	    match the top undo item?
      
      	Consistently name the GType and GimpUndoType passed to undo
      	functions "object_type" and "undo_type" to avoid confusion.
      
      	* app/actions/layers-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimptexttool.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c: use the new utility function
      	instead of checking the above conditions manually.
      b909c2b2
  14. 23 Jun, 2004 1 commit
    • Michael Natterer's avatar
      removed enum GimpContextSelectType. · d88f23dd
      Michael Natterer authored
      2004-06-23  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/context-commands.h: removed enum GimpContextSelectType.
      
      	* app/actions/actions-types.h: added enum GimpActionSelectType.
      
      	* app/actions/actions.[ch]: added utility functions
      	action_select_value() and action_select_object().
      
      	* app/actions/context-actions.c
      	* app/actions/context-commands.c: changed accordingly.
      
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.[ch]: merged the layer select
      	callbacks into one using the GimpActionSelectType functions. Added
      	actions and callbacks for modifying the active layer's opacity.
      
      	* app/menus/menus-types.h: #incude "actions/action-types.h".
      
      	* app/gui/gui-types.h: #incude "menus/menus-types.h".
      
      	* app/gui/preferences-dialog.c: allow to enable/disable input
      	controllers.
      d88f23dd
  15. 10 Jun, 2004 1 commit
    • Michael Natterer's avatar
      app/actions/image-actions.c app/actions/image-commands.[ch] · 63e5c047
      Michael Natterer authored
      2004-06-10  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/image-actions.c
      	* app/actions/image-commands.[ch]
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.[ch]: made the
      	"image-convert-rgb/grayscale/indexed" and the
      	"layers-mask-apply/delete" actions GimpEnumActions and merged
      	their callbacks.
      63e5c047
  16. 01 Jun, 2004 1 commit
    • Sven Neumann's avatar
      tools/pdbgen/pdb/image.pdb app/pdb/image_cmds.c reverted changes I did to · c509204b
      Sven Neumann authored
      2004-06-01  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/image.pdb
      	* app/pdb/image_cmds.c
      	* app/core/gimpimage.[ch]: reverted changes I did to the image
      	unit earlier. As in 2.0, it will continue to not accept pixels.
      	This makes the PDB API and the XCF format compatible again and
      	fixes bug #142961 (and to some extent bug #137704).
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-unit.[ch]: removed these files. The
      	convenience accessors defined here aren't commonly used any
      	longer.
      
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell.[ch]: added a unit parameter to
      	gimp_display_new(). Made "unit" and "scale" properties of
      	GimpDisplayShell.
      
      	* app/actions/image-commands.c
      	* app/actions/images-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/select-commands.c
      	* app/actions/view-commands.c
      	* app/core/gimp-edit.c
      	* app/core/gimp.[ch]
      	* app/core/gimptemplate.c
      	* app/display/gimpdisplayshell-handlers.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/display/gimpdisplayshell-title.c
      	* app/display/gimpstatusbar.c
      	* app/file/file-open.c
      	* app/gui/gui-vtable.c
      	* app/gui/info-window.c
      	* app/gui/offset-dialog.c
      	* app/gui/resize-dialog.[ch]
      	* app/pdb/display_cmds.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/vectors/gimpvectors-export.c
      	* app/widgets/gimptoolbox-dnd.c
      	* tools/pdbgen/pdb/display.pdb: changed accordingly. Use the
      	display unit where the image unit was used before.
      c509204b
  17. 25 May, 2004 1 commit
    • Michael Natterer's avatar
      added GimpContext parameters to GimpActivateItemFunc, GimpNewItemFunc and · 18d2d499
      Michael Natterer authored
      2004-05-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpitemtreeview.h: added GimpContext parameters
      	to GimpActivateItemFunc, GimpNewItemFunc and GimpEditItemFunc.
      
      	* app/widgets/gimpdrawabletreeview.c
      	* app/widgets/gimpitemtreeview.c: pass the view's context to
      	the functions.
      
      	* app/actions/actions.c (action_data_get_context): return
      	gimp_get_user_context() if "data" is a Gimp.
      
      	* app/actions/channels-commands.[ch]
      	* app/actions/layers-commands.[ch]
      	* app/actions/vectors-commands.[ch]: added GimpContext parameters
      	to the resp. activate, new and edit functions and use the passed
      	context instead of gimp_get_user_context().
      
      	* app/actions/layers-commands.[ch]: removed the merge and flatten
      	callbacks.
      
      	* app/actions/image-commands.[ch]: made public layer merge utility
      	function private and cleaned the whole file up a lot.
      
      	* app/actions/layers-actions.c: use the callbacks from
      	image-commands.c for merge and flatten.
      
      	* app/actions/edit-commands.c
      	* app/actions/file-commands.c
      	* app/actions/select-commands.c: use action_data_get_context()
      	instead of gimp_get_user_context().
      
      	* app/actions/edit-actions.c: some cleanup.
      18d2d499
  18. 12 May, 2004 2 commits
    • Michael Natterer's avatar
      app/actions/documents-actions.c app/actions/documents-commands.c · 2632cd8f
      Michael Natterer authored
      2004-05-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/documents-actions.c
      	* app/actions/documents-commands.c
      	* app/actions/edit-actions.c
      	* app/actions/edit-commands.[ch]
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.c
      	* app/actions/select-actions.c
      	* app/actions/select-commands.[ch]
      	* app/actions/vectors-actions.c
      	* app/actions/vectors-commands.[ch]: added tooltips for actions
      	which are now used for dialog buttons, added callback
      	implementations which formerly lived in various widgets, moved
      	some actions around and did some general cleanups.
      
      	* menus/image-menu.xml.in: s/edit-stroke/select-stroke/
      
      	* menus/Makefile.am
      	* menus/selection-editor-menu.xml: new popup menu.
      
      	* app/menus/menus.c: register <SelectionEditor> and <UndoEditor>
      	UI managers.
      
      	* app/widgets/gimpeditor.[ch]: added construct properties
      	"menu-factory", "menu-identifier", "ui-path" and "popup-data".
      	Implement GObject::constructor() and create the UI manager
      	if all needed properties were set. Enables creating action
      	buttons at widget construction time because they need a
      	UI manager.
      
      	(gimp_editor_add_action_button): changed to take a va_list of
      	"extended" actions which are invoked if the resp. button emits
      	"extended_clicked". Store the actions and their modifier masks in
      	a list attached to the button.
      
      	* app/widgets/gimpcontainerview.c
      	(gimp_container_view_item_selected): if the view has container
      	*and* context, simply change the context and return.
      
      	(gimp_container_view_context_changed): don't emit "select_item"
      	manually but simply call gimp_container_view_select_item().
      
      	(gimp_container_view_viewable_dropped): use
      	gimp_container_view_item_selected() instead of changing the
      	context directly.
      
      	* app/widgets/gimpcontainereditor.c
      	(gimp_container_editor_select_item): update the UI manager.
      
      	* app/widgets/gimpdockable.c: don't try to fiddle with the
      	dialog's menu if it doesn't have a ui_path (happens if the UI
      	manager is just a collection of actions for the dialog buttons and
      	has no menu registered).
      
      	* app/widgets/gimpimageeditor.c: connect to the image's "flush"
      	signal and update the UI manager in the callback.
      
      	* app/widgets/gimpitemtreeview.c: use GimpEditor's construct
      	properties to create the UI manager so GimpItemTreeView subclasses
      	can have action buttons. Update the UI manager in
      	gimp_item_tree_view_select_item().
      
      	* app/widgets/gimpbufferview.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpdatafactoryview.c
      	* app/widgets/gimpfontview.c
      	* app/widgets/gimpimageview.c
      	* app/widgets/gimptemplateview.c
      	* app/widgets/gimptoolview.c: changed calls to
      	gimp_editor_add_action_button() accordingly and removed some
      	unneeded select_item() implementations.
      
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpvectorstreeview.[ch]
      	* app/widgets/gimpdocumentview.[ch]
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpselectioneditor.[ch]
      	* app/widgets/gimpundoeditor.[ch]: use action buttons and removed
      	lots of callbacks which went to the resp. action callbacks.
      
      	* app/widgets/widgets-types.h: removed some now unneeded function
      	prototypes.
      
      	* app/gui/dialogs-constructors.c: changed (simplified) many dialog
      	constructors accordingly.
      2632cd8f
    • Sven Neumann's avatar
      libgimpwidgets/gimpwidgets.c (gimp_scale_entry_new_internal) left-align · 6750667d
      Sven Neumann authored
      2004-05-12  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/gimpwidgets.c (gimp_scale_entry_new_internal)
      	* app/widgets/gimpwidgets-utils.c (gimp_table_attach_stock):
      	left-align the label.
      
      	* app/actions/channels-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/qmask-commands.c
      	* app/actions/vectors-commands.c
      	* app/display/gimpdisplayshell-scale.c
      	* app/gui/brush-select.c
      	* app/gui/file-new-dialog.c
      	* app/gui/info-dialog.c
      	* app/gui/info-window.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/tools/gimpblendoptions.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimppaintoptions-gui.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpselectionoptions.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimptextoptions.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpgrideditor.c
      	* app/widgets/gimphistogrameditor.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpstrokeeditor.c
      	* app/widgets/gimpwidgets-utils.c: left-align labels as suggested
      	by the HIG.
      6750667d
  19. 06 May, 2004 2 commits
  20. 04 May, 2004 1 commit
    • Sven Neumann's avatar
      app/actions/channels-commands.c app/actions/gradient-editor-commands.c · 122e2c78
      Sven Neumann authored
      2004-05-04  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/channels-commands.c
      	* app/actions/gradient-editor-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/qmask-commands.c
      	* app/actions/templates-commands.c
      	* app/actions/vectors-commands.c
      	* app/display/gimpdisplayshell-filter-dialog.c
      	* app/gui/convert-dialog.c
      	* app/gui/module-browser.c
      	* app/gui/offset-dialog.c
      	* app/gui/palette-import-dialog.c
      	* app/gui/resize-dialog.c
      	* app/gui/resolution-calibrate-dialog.c
      	* app/gui/tips-dialog.c
      	* app/gui/user-install-dialog.c
      	* app/widgets/gimpwidgets-utils.c
      	* libgimpwidgets/gimpquerybox.c: set dialog border spacing to 12.
      122e2c78
  21. 03 May, 2004 2 commits
    • Michael Natterer's avatar
      app/actions/actions.h. added the various return_if_no_foo() macros here. · 3590757d
      Michael Natterer authored
      2004-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/actions.h. added the various return_if_no_foo()
      	macros here.
      
      	* app/actions/channels-commands.c
      	* app/actions/dialogs-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-commands.c
      	* app/actions/file-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/qmask-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/actions/view-commands.c: removed them here. Some cleanup.
      3590757d
    • Michael Natterer's avatar
      added some utility functions to get a Gimp, GimpImage, GimpDisplay and · d745841e
      Michael Natterer authored
      2004-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/actions.[ch]: added some utility functions to get a
      	Gimp, GimpImage, GimpDisplay and GtkWidget from the "data" pointer
      	passed to action callbacks.
      
      	* app/actions/channels-actions.c
      	* app/actions/channels-commands.c
      	* app/actions/drawable-actions.c
      	* app/actions/drawable-commands.c
      	* app/actions/edit-actions.c
      	* app/actions/edit-commands.c
      	* app/actions/file-actions.c
      	* app/actions/file-commands.c
      	* app/actions/help-commands.c
      	* app/actions/image-actions.c
      	* app/actions/image-commands.c
      	* app/actions/layers-actions.c
      	* app/actions/layers-commands.c
      	* app/actions/plug-in-actions.c
      	* app/actions/plug-in-commands.c
      	* app/actions/qmask-actions.c
      	* app/actions/qmask-commands.c
      	* app/actions/select-actions.c
      	* app/actions/select-commands.c
      	* app/actions/tools-commands.c
      	* app/actions/vectors-actions.c
      	* app/actions/vectors-commands.c
      	* app/actions/view-commands.c: use the new functions instead of
      	duplicating insane macros and if() constructs over and over again.
      d745841e
  22. 29 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Switch from GtkItemFactory to GtkUIManager. The migration is almost · 46542801
      Michael Natterer authored
      2004-04-29  Michael Natterer  <mitch@gimp.org>
      
      	Switch from GtkItemFactory to GtkUIManager. The migration is
      	almost complete, still stuff missing/incomplete, definitely added
      	a bunch of new bugs...
      
      	* app/actions/*-commands.[ch]: converted all callback from
      	GtkItemFactory callbacks to GtkAction callbacks.
      
      	* app/actions/debug-actions.c
      	* app/actions/gradient-editor-actions.c
      	* app/actions/help-actions.c
      	* app/actions/plug-in-actions.c
      	* app/actions/qmask-actions.c
      	* app/actions/tool-options-actions.c: various fixes.
      
      	* app/display/gimpdisplay.[ch]
      	* app/display/gimpdisplayshell-appearance.[ch]
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/display/gimpdisplayshell.[ch]: move everything from
      	GtkItemFactory to GtkUIManager.
      
      	* app/gui/dialogs.[ch]: added new function dialogs_get_toolbox().
      	Needed because the action callbacks don't have a widget parameter
      	and sometimes we need a parent window for showing dialogs.
      
      	* app/gui/Makefile.am
      	* app/gui/brushes-menu.[ch]
      	* app/gui/buffers-menu.[ch]
      	* app/gui/channels-menu.[ch]
      	* app/gui/colormap-editor-menu.[ch]
      	* app/gui/dialogs-menu.[ch]
      	* app/gui/documents-menu.[ch]
      	* app/gui/error-console-menu.[ch]
      	* app/gui/fonts-menu.[ch]
      	* app/gui/gradient-editor-menu.[ch]
      	* app/gui/gradients-menu.[ch]
      	* app/gui/images-menu.[ch]
      	* app/gui/layers-menu.[ch]
      	* app/gui/palette-editor-menu.[ch]
      	* app/gui/palettes-menu.[ch]
      	* app/gui/patterns-menu.[ch]
      	* app/gui/qmask-menu.[ch]
      	* app/gui/templates-menu.[ch]
      	* app/gui/vectors-menu.[ch]: removed these files.
      
      	* app/gui/gui.c: create a global UI manager for the image popup
      	menu and the toolbox menubar.
      
      	* app/gui/menus.[ch]: removed all GtkItemFactory code.
      
      	* app/gui/image-menu.[ch]
      	* app/gui/toolbox-menu.[ch]: removed everything except the trivial
      	setup_funcs.
      
      	* app/gui/file-open-menu.c
      	* app/gui/file-save-menu.c
      	* app/gui/tool-options-menu.c: don't use the macros from menus.h
      	any more, they are gone.
      
      	* app/gui/gui-vtable.c
      	* app/gui/plug-in-menus.[ch]: create/destroy the dynamic plug-in
      	menu entries.
      
      	* app/tools/gimpimagemaptool.c: s/gimp_item_factory_update/
      	gimp_ui_manager_update/g
      
      	* app/widgets/gimpuimanager.[ch]: added API to get an action
      	group by name.
      
      	* app/widgets/gimpmenufactory.c: don't choke on the item_factory
      	entries being NULL.
      
      	* app/widgets/gimpactiongroup.c: make sure booleans set using
      	g_object_set() only have TRUE or FALSE values.
      
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpcomponenteditor.c
      	* app/widgets/gimpcontainereditor.[ch]
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpdockable.[ch]
      	* app/widgets/gimpdocked.[ch]
      	* app/widgets/gimpeditor.[ch]
      	* app/widgets/gimperrorconsole.c
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptooloptionseditor.c: removed all GtkItemFactory
      	code and enable the #if 0'ed UI manager stuff.
      
      	* menus/gradient-editor-menu.xml: fixed typos.
      
      	* menus/image-menu.xml: duplicate everything so we have both
      	an image menubar and an image popup menu. Badly cries for an
      	XSL processor.
      
      	* menus/toolbox-menu.xml: added an "Extensions" placeholder.
      46542801
  23. 20 Apr, 2004 1 commit
    • Michael Natterer's avatar
      removed... · 661f6dde
      Michael Natterer authored
      2004-04-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/*-commands.[ch]: removed...
      
      	* app/actions/*-commands.[ch]: ...and added here.
      
      	* app/gui/Makefile.am
      	* app/gui/*-menu.c
      	* app/gui/dialogs-constructors.c
      	* app/gui/gui.c
      	* app/gui/menus.c
      	* app/actions/Makefile.am
      	* app/actions/*-actions.c: changed accordingly.
      
      	* app/actions/plug-in-actions.[ch]
      	* app/actions/tools-actions.[ch]: new files.
      
      	* app/Makefile.am: had to add more -u evilness because gui/
      	and actions/ have cyclic dependencies.
      
      	* menus/image-menu.xml: added some more items.
      661f6dde
  24. 18 Apr, 2004 1 commit
    • Sven Neumann's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h removed GimpEnumMenu. · 89cf4554
      Sven Neumann authored
      2004-04-18  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimpenummenu.[ch]: removed GimpEnumMenu.
      
      	* app/widgets/gimpenumwidgets.[ch]: moved widget constructors that
      	don't use GimpEnumMenu from gimpenummenu.[ch] to these new files.
      
      	* app/widgets/gimpenumcombobox.[ch]: added a GtkComboBox widget
      	using GimpEnumStore; replaces GimpEnumMenu.
      
      	* app/widgets/gimpenumstore.[ch]: added new function
      	gimp_enum_store_lookup_by_value().
      
      	* app/widgets/gimppropwidgets.[ch]: replaced
      	gimp_prop_enum_option_menu_new() with gimp_prop_enum_combo_box_new().
      
      	* app/gui/brush-select.[ch]
      	* app/gui/convert-dialog.c
      	* app/gui/layers-commands.c
      	* app/gui/preferences-dialog.c
      	* app/gui/resize-dialog.c
      	* app/tools/gimpblendoptions.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimppaintoptions-gui.c
      	* app/tools/gimpselectionoptions.c
      	* app/tools/gimptransformoptions.c
      	* app/widgets/gimpcolorframe.c
      	* app/widgets/gimpeditor.c
      	* app/widgets/gimpgrideditor.c
      	* app/widgets/gimphistogrameditor.c
      	* app/widgets/gimpstrokeeditor.c
      	* app/widgets/gimptemplateeditor.c
      	* app/widgets/gimptexteditor.c: ported to GimpEnumComboBox.
      89cf4554
  25. 14 Apr, 2004 1 commit
    • Michael Natterer's avatar
      Get rid of the "current_context" which was in fact just a bunch of global · 18d9161e
      Michael Natterer authored
      2004-04-15  Michael Natterer  <mitch@gimp.org>
      
      	Get rid of the "current_context" which was in fact just a bunch of
      	global variables. Instead, pass the needed context all the way
      	from the GUI and the PDB to the core. This is a prerequisite for
      	macro recording and generally helps separating the various
      	subsystems from each other. Work in progress...
      
      	* app/core/gimp.[ch]: removed member "current_context" and
      	gimp_[get|set]_current_context().
      
      	* app/core/gimp-edit.[ch]
      	* app/core/gimpdrawable-blend.[ch]
      	* app/core/gimpdrawable-bucket-fill.[ch]
      	* app/core/gimpdrawable-offset.[ch]
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpimage-crop.[ch]
      	* app/core/gimpimage-flip.[ch]
      	* app/core/gimpimage-merge.[ch]
      	* app/core/gimpimage-resize.[ch]
      	* app/core/gimpimage-rotate.[ch]
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimagefile.[ch]
      	* app/core/gimpitem-linked.[ch]
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.[ch]
      	* app/core/gimpselection.[ch]
      	* app/core/gimptemplate.[ch]
      	* app/file/file-open.[ch]
      	* app/file/file-save.[ch]
      	* app/pdb/procedural_db.[ch]
      	* app/text/gimptext-compat.[ch]
      	* app/text/gimptextlayer-transform.[ch]
      	* app/gui/brush-select.[ch]
      	* app/gui/font-select.[ch]
      	* app/gui/gradient-select.[ch]
      	* app/gui/palette-select.[ch]
      	* app/gui/pattern-select.[ch]: added tons of "GimpContext *context"
      	parameters and use the passed context instead of
      	gimp_get_current_context().
      
      	* app/app_procs.c
      	* app/batch.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/paint/gimperaser.c
      	* app/paint/gimppaintbrush.c
      	* app/plug-in/plug-in-message.c
      	* app/plug-in/plug-ins.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimptransformtool.c
      	* app/vectors/gimpvectors.c
      	* app/gui/convert-dialog.c
      	* app/gui/drawable-commands.c
      	* app/gui/edit-commands.c
      	* app/gui/file-commands.c
      	* app/gui/file-new-dialog.c
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c
      	* app/gui/image-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/offset-dialog.c
      	* app/gui/select-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpdnd.c
      	* app/widgets/gimpdocumentview.c
      	* app/widgets/gimphelp.c
      	* app/widgets/gimpthumbbox.c: pass gimp_get_user_context() or
      	GIMP_CONTEXT(tool_options) or whatever is the right context
      	to the changed core functions.
      
      	* tools/pdbgen/app.pl: pass "GimpContext *context" to all
      	generated PDB invokers.
      
      	* tools/pdbgen/pdb/brush_select.pdb
      	* tools/pdbgen/pdb/brushes.pdb
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/edit.pdb
      	* tools/pdbgen/pdb/font_select.pdb
      	* tools/pdbgen/pdb/gradient_select.pdb
      	* tools/pdbgen/pdb/gradients.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/layer.pdb
      	* tools/pdbgen/pdb/paint_tools.pdb
      	* tools/pdbgen/pdb/palette.pdb
      	* tools/pdbgen/pdb/palette_select.pdb
      	* tools/pdbgen/pdb/palettes.pdb
      	* tools/pdbgen/pdb/paths.pdb
      	* tools/pdbgen/pdb/pattern_select.pdb
      	* tools/pdbgen/pdb/patterns.pdb
      	* tools/pdbgen/pdb/selection.pdb
      	* tools/pdbgen/pdb/text_tool.pdb
      	* tools/pdbgen/pdb/transform_tools.pdb: pass the new context
      	parameter to the changed core functions.
      
      	* app/pdb/*_cmds.c: regenerated.
      18d9161e
  26. 13 Apr, 2004 2 commits
    • Michael Natterer's avatar
      Moved the calls to floating_sel_relax()/rigor() from various places to two · 2e61d12e
      Michael Natterer authored
      2004-04-13  Michael Natterer  <mitch@gimp.org>
      
      	Moved the calls to floating_sel_relax()/rigor() from various
      	places to two single spots in the core where they are actually
      	needed. Fixes bug #138356 (which was caused by the projection
      	being triggered in the middle of changing the floating selection's
      	size or the size of the drawable it is attached to). This commit
      	effectively removes floating selection fiddling from the core's
      	public API.
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_has_floating_sel): new
      	function which returns TRUE if there is a floating selection
      	attached to the drawable.
      
      	* app/core/gimpdrawable.c (gimp_drawable_translate)
      	(gimp_drawable_set_tiles_full): if the drawable *has* a floating
      	selection, relax/rigor it before/after modifying the drawable.
      
      	* app/core/gimplayer.c (gimp_layer_translate)
      	(gimp_layer_set_tiles): if the layer *is* the floating selection,
      	relax/rigor it before/after modifying it.
      
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-flip.c
      	* app/core/gimpimage-resize.c
      	* app/core/gimpimage-rotate.c
      	* app/core/gimpimage-scale.c
      	* app/gui/layers-commands.c
      	* app/tools/gimpeditselectiontool.c
      	* tools/pdbgen/pdb/layer.pdb: removed calls to
      	floating_sel_rigor()/relax() all over the place. Also removed
      	lots of undo groups which are obsolete now.
      
      	* app/pdb/layer_cmds.c: regenerated.
      2e61d12e
    • 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
  27. 18 Mar, 2004 2 commits
    • Sven Neumann's avatar
      app/gui/layers-commands.c (layers_text_tool) treat modified text layers · 2ce9ca73
      Sven Neumann authored
      2004-03-18  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/layers-commands.c (layers_text_tool)
      	* app/gui/layers-menu.c (layers_menu_update): treat modified text
      	layers like normal layers.
      
      	* app/gui/layers-commands.c (layers_edit_layer_query): added a
      	check button that gives access to the "auto-rename" property of a
      	text layer.
      
      	* app/text/gimptextlayer.c: typo.
      
      	* app/widgets/gimppreviewrendererlayer.c
      	(gimp_preview_renderer_layer_render): show the text layer icon for
      	unmodified text layers only.
      2ce9ca73
    • Simon Budig's avatar
      Initialize a new layer unconditionally. Spotted by Roman Joost. · def801b3
      Simon Budig authored
      2004-03-18  Simon Budig  <simon@gimp.org>
      
      	* app/gui/layers-commands.c: Initialize a new layer
      	unconditionally. Spotted by Roman Joost.
      def801b3
  28. 17 Mar, 2004 2 commits
    • Simon Budig's avatar
      app/gui/channels-commands.c app/gui/layers-commands.c · e2d5ed62
      Simon Budig authored
      2004-03-17  Simon Budig  <simon@gimp.org>
      
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c
      	* app/widgets/gimpitemtreeview.c: shuffled some
      	gimp_image_flush()'es around.
      e2d5ed62
    • Simon Budig's avatar
      app/gui/channels-commands.c app/gui/layers-commands.c Make sure that · 23711e13
      Simon Budig authored
      2004-03-17  Simon Budig  <simon@gimp.org>
      
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/gui/vectors-commands.c: Make sure that non-dialog creation
      	of layer/channels/vectors properly updates the image. Also
      	clear the new channel unconditionally.
      
      	Change the name of the newly created item to not include the "Copy".
      	It isn't a copy.
      
      	* app/widgets/gimpitemtreeview.c: Don't try to assemble translated
      	strings.
      
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpvectorstreeview.c: properly overwrite the
      	tooltip for the "New" button.
      
      	Sorry, some real string changes ahere, but they were necessary.
      23711e13
  29. 16 Mar, 2004 1 commit
    • Michael Natterer's avatar
      ref new tiles before unrefing the old ones. · 49238237
      Michael Natterer authored
      2004-03-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.c (gimp_drawable_set_tiles): ref new
      	tiles before unrefing the old ones.
      
      	* app/core/gimpimage-undo-push.c: keep undo memsize exact by
      	adjusting undo->size when the stored data changes.
      
      	* app/core/gimpchannel.[ch] (gimp_channel_new_from_alpha)
      	* app/core/gimpchannel-select.[ch] (gimp_channel_select_alpha):
      	replaced "layer" parameter by "drawable".
      
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.[ch]
      	* app/core/gimpselection.c: remdom cleanup & code review.
      49238237