1. 16 Mar, 2005 1 commit
    • Sven Neumann's avatar
      app/actions/layers-actions.c app/actions/plug-in-actions.c · d08584c0
      Sven Neumann authored
      2005-03-17  Sven Neumann  <sven@gimp.org>
      	* app/actions/layers-actions.c
      	* app/actions/plug-in-actions.c
      	* app/actions/view-actions.c
      	* plug-ins/common/compose.c
      	* plug-ins/common/dog.c
      	* plug-ins/pygimp/plug-ins/py-slice.py
      	* plug-ins/script-fu/scripts/i26-gunya2.scm
      	* plug-ins/script-fu/scripts/news-text.scm
      	* plug-ins/script-fu/scripts/text-circle.scm: applied patch from
      	Michael Terry that adds missing mnemonics (bug #106991).
  2. 11 Feb, 2005 2 commits
  3. 18 Nov, 2004 1 commit
    • Michael Natterer's avatar
      added boolean property "value-variable" which specifies if the · 567bb7b2
      Michael Natterer authored
      2004-11-18  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpenumaction.[ch]: added boolean property
      	"value-variable" which specifies if the GimpEnumAction::selected()
      	signal may be emitted with arbirtary values (value-variable = TRUE)
      	or *only* with enum_action->value (value-variable = FALSE).
      	* app/widgets/gimpactiongroup.[ch]: added "gboolean
      	value_variable" to GimpEnumActionEntry and set it in
      	* app/actions/channels-actions.c
      	* app/actions/colormap-editor-actions.c
      	* app/actions/context-actions.c
      	* app/actions/drawable-actions.c
      	* app/actions/edit-actions.c
      	* app/actions/error-console-actions.c
      	* app/actions/gradient-editor-actions.c
      	* app/actions/image-actions.c
      	* app/actions/layers-actions.c
      	* app/actions/palette-editor-actions.c
      	* app/actions/plug-in-actions.c
      	* app/actions/vectors-actions.c
      	* app/actions/view-actions.c: set "variable" to FALSE for all enum
      	actions except those which are used with the GIMP_ACTION_SELECT_SET
      	* app/widgets/gimpcontrollers.c (gimp_controllers_event_mapped):
      	fall back to gtk_action_activate() if the action specified in a
      	GIMP_CONTROLLER_EVENT_VALUE mapping is not variable. Enables
      	triggering of enum actions from GIMP_CONTROLLER_EVENT_VALUE events
      	(like midi note-on and note-off).
  4. 14 Nov, 2004 1 commit
    • Manish Singh's avatar
      Fix a bunch of warnings from Sparse: · 5d015810
      Manish Singh authored
      2004-11-13  Manish Singh  <yosh@gimp.org>
              Fix a bunch of warnings from Sparse:
              * app/actions/dockable-commands.c
              * app/actions/layers-actions.c
              * app/actions/view-commands.c
              * app/base/pixel-surround.c
              * app/config/gimpconfig-utils.c
              * app/config/gimpscanner.c
              * app/core/gimpbrushgenerated.c
              * app/core/gimpcontainer.c
              * app/core/gimpimage.c
              * app/dialogs/palette-import-dialog.c
              * app/file/gimprecentlist.c
              * app/plug-in/plug-in-params.c
              * app/text/gimptext-compat.c
              * app/text/gimptext-parasite.c
              * app/vectors/gimpbezierstroke.c
              * app/vectors/gimpstroke.c
              * app/widgets/gimpcellrendereraccel.c
              * app/widgets/gimpselectiondata.c
              * app/xcf/xcf.c
              * libgimp/gimp.c
              * libgimpthumb/gimpthumb-utils.c
              * libgimpthumb/gimpthumbnail.c
              * modules/cdisplay_proof.c
              * plug-ins/Lighting/lighting_ui.c
              * plug-ins/common/csource.c
              * plug-ins/common/glasstile.c
              * plug-ins/common/nova.c
              * plug-ins/common/pcx.c
              * plug-ins/common/pnm.c
              * plug-ins/common/randomize.c
              * plug-ins/common/screenshot.c
              * plug-ins/common/sel_gauss.c
              * plug-ins/common/spheredesigner.c
              * plug-ins/common/wind.c
              * plug-ins/gfig/gfig-dialog.c
              * plug-ins/gfig/gfig-dobject.c
              * plug-ins/gimpressionist/gimpressionist.c
              * plug-ins/ifscompose/ifscompose.c
              * plug-ins/print/gimp_main_window.c
              * plug-ins/print/print.c: Cleanup integer vs. pointer confusion.
              * app/base/temp-buf.c
              * app/dialogs/about-dialog.c
              * plug-ins/common/bumpmap.c
              * plug-ins/common/jigsaw.c
              * plug-ins/gfig/gfig-dobject.c: Cosmetic cleanups.
              * app/config/gimpconfig-deserialize.c
              * app/config/gimpconfig-path.c
              * app/config/gimpconfigwriter.c
              * app/core/gimpgradient.c
              * app/tools/gimpdrawtool.c
              * plug-ins/common/nlfilt.c
              * plug-ins/common/unsharp.c
              * plug-ins/common/zealouscrop.c: Define inline functions before they
              are used.
              * app/core/gimpdrawable-blend.c: PixelRegion definition was changed
              some time ago, but the initialization here didn't change. Fix it.
              * app/plug-in/plug-in-rc.c (plug_in_extra_deserialize): No need to
              assign token twice in a row.
              * libgimpbase/gimpdatafiles.c (gimp_datafiles_read_directories): No
              need to initialize file_data, since the code fills out all the fields.
              * plug-ins/common/CML_explorer.c
              * plug-ins/common/vpropagate.c: Declare function pointers fully.
              * plug-ins/common/grid.c (pix_composite): G_INLINE_FUNC isn't needed,
              we assume we can use the "inline" keyword always.
              * plug-ins/common/psd_save.c
              * plug-ins/common/vinvert.c
              * plug-ins/gfig/gfig-arc.c
              * plug-ins/gfig/gfig-bezier.c
              * plug-ins/gfig/gfig-circle.c
              * plug-ins/gfig/gfig-dialog.c
              * plug-ins/gfig/gfig-dobject.c
              * plug-ins/gfig/gfig-ellipse.c
              * plug-ins/gfig/gfig-line.c
              * plug-ins/gfig/gfig-poly.c
              * plug-ins/gfig/gfig-spiral.c
              * plug-ins/gfig/gfig-star.c
              * plug-ins/gfig/gfig.c
              * plug-ins/gimpressionist/orientmap.c
              * plug-ins/gimpressionist/placement.c
              * plug-ins/gimpressionist/sizemap.c
              * plug-ins/imagemap/imap_grid.c
              * plug-ins/imagemap/imap_main.c
              * plug-ins/imagemap/imap_preferences.c
              * plug-ins/imagemap/imap_settings.c
              * plug-ins/maze/maze.c
              * plug-ins/sel2path/curve.c
              * plug-ins/sel2path/fit.c
              * plug-ins/sel2path/pxl-outline.c
              * plug-ins/sel2path/spline.c
              * plug-ins/xjt/xjt.c: Functions with no args should be declared
              with (void).
              * plug-ins/common/retinex.c (MSRCR): Initialize max_preview to quiet
              the compiler.
  5. 13 Nov, 2004 1 commit
  6. 28 Oct, 2004 1 commit
    • Sven Neumann's avatar
      do not set the "layers-mask-add" action insensitive if there's no alpha · 279d9010
      Sven Neumann authored
      2004-10-28  Sven Neumann  <sven@gimp.org>
      	* app/actions/layers-actions.c (layers_actions_update): do not set
      	the "layers-mask-add" action insensitive if there's no alpha channel.
      	* app/actions/layers-commands.c (layers_add_mask_response): add an
      	alpha channel if there isn't one already. Fixes bug #156676.
  7. 23 Oct, 2004 1 commit
    • 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
      	* 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
      	* 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.
  8. 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.
  9. 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.
  10. 12 Oct, 2004 1 commit
    • Sven Neumann's avatar
      set "layers-crop" insensitive if the selection is empty. · 1fca86a6
      Sven Neumann authored
      2004-10-12  Sven Neumann  <sven@gimp.org>
      	* app/actions/layers-actions.c (layers_actions_update): set
      	"layers-crop" insensitive if the selection is empty.
      	* plug-ins/script-fu/scripts/alien-glow-button.scm
      	* plug-ins/script-fu/scripts/alien-glow-logo.scm
      	* plug-ins/script-fu/scripts/basic2-logo.scm
      	* plug-ins/script-fu/scripts/gradient-bevel-logo.scm: use "Sans
      	Bold" instead of "Futura_Poster". The underscore in the font name
      	used to confuse intltool (bug #137029) and the freefont package
      	isn't that widely used any longer anyway.
  11. 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.
    • 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
      	* 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.
  12. 20 Aug, 2004 1 commit
    • Sven Neumann's avatar
      app/actions/layers-actions.[ch] app/actions/layers-commands.[ch] added · c04ddea8
      Sven Neumann authored
      2004-08-21  Sven Neumann  <sven@gimp.org>
      	* app/actions/layers-actions.[ch]
      	* app/actions/layers-commands.[ch]
      	* app/widgets/gimplayertreeview.c: added actions to handle layer
      	masks as suggested in bug #150446.
      	* menus/layers-menu.xml: added menu entries for new actions,
      	commented out raise/lower menu entries.
  13. 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
  14. 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.
  15. 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
      	* 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.
  16. 12 May, 2004 1 commit
    • 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
      	* 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
      	* app/gui/dialogs-constructors.c: changed (simplified) many dialog
      	constructors accordingly.
  17. 03 May, 2004 1 commit
    • 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.
  18. 02 May, 2004 1 commit
    • Michael Natterer's avatar
      added help IDs to all actions representing the toplevel popups and menus · 9377b26e
      Michael Natterer authored
      2004-05-02  Michael Natterer  <mitch@gimp.org>
      	* app/actions/*-actions.c: added help IDs to all actions
      	representing the toplevel popups and menus (as fallbacks for the
      	still-to-be-written help system intrgration of GimpUIManager).
      	* app/display/gimpdisplayshell.c (gimp_display_shell_new): removed
      	call to gtk_ui_manager_ensure_update() because that's done by
      	gimp_ui_manager_ui_get() now.
      	* app/widgets/gimpmenufactory.[ch]: removed API to register and
      	create item factories.
      	* app/gui/menus.c: changed accordingly.
      	* app/gui/dialogs.c
      	* app/actions/plug-in-commands.c
      	* app/gui/file-dialog-utils.c
      	* app/gui/file-save-dialog.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdockable.c
      	* app/widgets/gimpdockbook.[ch]
      	* app/widgets/gimpimagedock.c
      	* app/widgets/gimpitemtreeview.c: removed leftover item factory
      	* app/widgets/widgets-types.h: removed item factory typedefs...
      	* app/widgets/gimpitemfactory.h: ...and added them here.
      	* app/widgets/gimpactiongroup.[ch]: added new function
      	* app/actions/plug-in-actions.c: use it here instead of adding
      	the actions manually.
      	* app/widgets/gimptoolbox.c: ported the code which dynamically
      	updates the tool button tooltips on accelerator changes to
      	GtkAction. Disabled the whole stuff because GTK+ lacks
  19. 27 Apr, 2004 1 commit
    • Michael Natterer's avatar
      app/widgets/Makefile.am app/widgets/widgets-types.h new GtkAction subclass · aae726ee
      Michael Natterer authored
      2004-04-27  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/Makefile.am
      	* app/widgets/widgets-types.h
      	* app/widgets/gimppluginaction.[ch]: new GtkAction subclass which
      	remembers the PlugInProcDef.
      	* app/widgets/gimpactiongroup.[ch]: added "gpointer user_data" to
      	the GimpActionGroup struct and to gimp_action_group_new(). Removed
      	the user_data parameter from gimp_action_group_add_*_actions().
      	* app/widgets/gimpactionfactory.[ch]: changed accordingly.
      	* app/actions/*-actions.[ch]: removed user_data from all setup_funcs.
      	* app/actions/plug-in-actions.c: use a GimpPlugInAction and
      	finally use the right user_data for the callback so plug-in
      	callbacks have a proper context.
      	* app/gui/plug-in-menus.[ch]: renamed plug_in_menus_create2() to
      	* app/gui/image-menu.c
      	* app/gui/toolbox-menu.c: changed accordingly.
  20. 22 Apr, 2004 1 commit
    • Michael Natterer's avatar
      implemented gimp_action_group_set_action_color() and · 42f79826
      Michael Natterer authored
      2004-04-22  Michael Natterer  <mitch@gimp.org>
      	* app/widgets/gimpactiongroup.[ch]: implemented
      	gimp_action_group_set_action_color() and
      	* app/actions/*-actions.c: added stock IDs to all actions which
      	represent toplevel popup menus. Fixed typos.
      	* menus/brushes-menu.xml
      	* menus/colormap-editor-menu.xml
      	* menus/dockable-menu.xml
      	* menus/gradients-menu.xml
      	* menus/patterns-menu.xml
      	* menus/toolbox-menu.xml: fixed typos.
  21. 21 Apr, 2004 2 commits
    • Michael Natterer's avatar
      forgot to register the "patterns" actions. · 2c601c7d
      Michael Natterer authored
      2004-04-21  Michael Natterer  <mitch@gimp.org>
      	* app/actions/actions.c: forgot to register the "patterns" actions.
      	* app/actions/*-actions.c: added actions representing the toplevel
      	menus (popups and menubars). Fixed some typos.
      	* menus/*-menu.xml: added action="foo" attributes to all toplevel
      	menus. Fixed typos here too.
      	* menus/gtkuimanager.dtd: fixed possible attributes.
    • Michael Natterer's avatar
      app/actions/qmask-actions.c prepared qmask_actions_update() and the qmask · 62dcfaec
      Michael Natterer authored
      2004-04-21  Michael Natterer  <mitch@gimp.org>
      	* app/actions/qmask-actions.c
      	* app/actions/qmask-commands.c: prepared qmask_actions_update()
      	and the qmask callbacks to be merged into the image ui manager.
      	* app/actions/dialogs-actions.c
      	* app/actions/edit-actions.c
      	* app/actions/file-actions.c
      	* app/actions/image-actions.c
      	* app/actions/layers-actions.c
      	* app/actions/plug-in-actions.c
      	* app/actions/tools-actions.c
      	* app/actions/view-actions.c: fixed lots of typos and buglets
      	spotted in my first test run.
      	* app/gui/menus.c: register the needed action groups with the
      	<Image> menu.
      	* app/tools/gimp-tools.c
      	* app/tools/gimpdodgeburntool.[ch]
      	* app/tools/gimppaintoptions-gui.c: s/dodgeburn/dodge_burn/g.
      	* app/widgets/gimpactionfactory.c
      	* app/widgets/gimpmenufactory.[ch]: s/G_GNUC_FUNCTION/G_STRFUNC/g,
      	updated copyright header.
      	* menus/image-menu.xml: fixed typos and added the "Filters"
  22. 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.
  23. 19 Apr, 2004 1 commit
    • Michael Natterer's avatar
      More GtkAction stuff (still unused): · 8848558f
      Michael Natterer authored
      2004-04-19  Michael Natterer  <mitch@gimp.org>
      	More GtkAction stuff (still unused):
      	* configure.in: added new directories menus/ and app/actions/
      	* Makefile.am: build menus/
      	* menus/.cvsignore
      	* menus/Makefile.am
      	* menus/*-menu.xml: new files: XML menu descriptions for each menu
      	which is now defined in gui/*-menu.c.
      	* app/widgets/widgets-types.h: some typedefs for GimpActionGroup.
      	* app/widgets/gimpactiongroup.[ch]: added a "Gimp" construct-only
      	property. Added APIs to set actions visible/sensitive/active
      	and an unimplemented stub for setting the action's color.
      	* app/Makefile.am: build actions/ and link libappactions.a
      	* app/actions/.cvsignore
      	* app/actions/Makefile.am
      	* app/actions/*-actions.[ch]: new files: GtkActions for each
      	*-commands.c file in gui/. Ported all "update" functions from the
      	*-menu.c files.
      	(everything completely unused, untested and partly #if 0'ed)
      	* app/core/gimpimage.[ch]: for reasons of (action-) symmetry, added
      	API to raise/lower channels/vectors to top/bottom.
      	* app/gui/channels-commands.[ch]
      	* app/gui/vectors-commands.[ch]: added callbacks for the new
      	to top/bottom functions.
      	* app/gui/Makefile.am
      	* app/gui/dockable-commands.[ch]: new files split out of
      	* app/gui/dialogs-commands.[ch]
      	* app/gui/dialogs-menu.c: changed accordingly.
      	* app/gui/edit-commands.[ch]: added edit_paste_into_cmd_callback()
      	and remove usage of "guint action".
      	* app/gui/image-menu.c: changed accordingly.
      	* app/gui/palette-editor-commands.[ch]: split
      	+palette_editor_new_color_cmd_callback() into separate callbacks
      	for adding from FG and BG.
      	* app/gui/palette-editor-menu.c: changed accordingly.