1. 07 Feb, 2007 1 commit
    • Sven Neumann's avatar
      app/actions/view-actions.c app/actions/view-commands.[ch] · ea4ed72e
      Sven Neumann authored
      2007-02-07  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]
      	* app/display/gimpdisplayshell.[ch]
      	* app/display/gimpdisplayshell-scale.[ch]
      	* app/widgets/gimphelp-ids.h
      	* menus/image-menu.xml.in: applied patch from Robert Helgesson 
      that
      	adds "Revert Zoom" functionality (bug #338168).
      
      
      svn path=/trunk/; revision=21855
      ea4ed72e
  2. 02 Feb, 2007 1 commit
    • Sven Neumann's avatar
      app/actions/error-console-commands.c app/actions/gradients-commands.c · aae05d4e
      Sven Neumann authored
      2007-02-02  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/error-console-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/text-editor-commands.c
      	* app/dialogs/vectors-export-dialog.c
      	* app/dialogs/vectors-import-dialog.c
      	* app/tools/gimpimagemaptool.c 
      (gimp_image_map_tool_settings_dialog):
      	set default response and do-overwrite-confirmation on the file
      	chooser dialogs. Fixes bug #403449 for all core dialogs.
      
      
      svn path=/trunk/; revision=21832
      aae05d4e
  3. 24 Jan, 2007 1 commit
  4. 20 Jan, 2007 1 commit
    • Michael Natterer's avatar
      Close the display after "Save as" when invoked via the "Close Without · a4863593
      Michael Natterer authored
      2007-01-20  Michael Natterer  <mitch@gimp.org>
      
      	Close the display after "Save as" when invoked via the "Close
      	Without Saving" dialog. Fixes bug #383700.
      
      	* app/actions/actions-types.h: added enum GimpSaveMode { SAVE,
      	SAVE_AS, SAVE_A_COPY, SAVE_AND_CLOSE }.
      
      	* app/actions/file-actions.c: changed the 4 save actions into
      	GimpEnumActions with above enum as values.
      
      	* app/actions/file-commands.[ch]: merged the save callbacks into
      	one and pass a "close_after_saving" boolean to
      	file_save_dialog_show().
      
      	* app/widgets/gimpfiledialog.[ch]: added "gboolean
      	close_after_saving" parameter to gimp_file_dialog_set_image() and
      	to the GimpFileDialog struct.
      
      	* app/dialogs/file-save-dialog.c: if the file was saved
      	successfully and close_after_saving is TRUE, close the display if
      	the image has not become dirty again in the meantime.
      
      
      svn path=/trunk/; revision=21743
      a4863593
  5. 16 Jan, 2007 1 commit
  6. 15 Jan, 2007 1 commit
    • Sven Neumann's avatar
      app/actions/file-commands.[ch] app/actions/file-actions.c removed · 00268bb3
      Sven Neumann authored
      2007-01-15  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/file-commands.[ch]
      	* app/actions/file-actions.c
      	* menus/image-menu.xml.in: removed "file-open-from-image" action
      	and simply use "file-open-image" from both File menus. Makes the
      	behavior more predictable and removes unneeded complexity.
      
      
      svn path=/trunk/; revision=21716
      00268bb3
  7. 13 Jan, 2007 1 commit
    • Hans Breuer's avatar
      updated #include "file/file-utils.h" for file_utils_uri_display_name · f8d14112
      Hans Breuer authored
      2007-01-13  Hans Breuer  <hans@breuer.org>
      
      	* **/makefile.msc app/gimpcore.def : updated
      	* app/display/gimpdisplay-handlers.c : #include "file/file-utils.h"
      	for file_utils_uri_display_name
      	* plug-ins/imagemap/imap_statusbar.c : g_snprintf instead of snprintf
      
      
      svn path=/trunk/; revision=21705
      f8d14112
  8. 30 Dec, 2006 1 commit
  9. 18 Dec, 2006 1 commit
  10. 15 Dec, 2006 2 commits
    • Sven Neumann's avatar
    • Sven Neumann's avatar
      added new function gimp_ui_manager_activate_action() as a shortcut for · 50fabff9
      Sven Neumann authored
      2006-12-15  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpuimanager.[ch]: added new function
      	gimp_ui_manager_activate_action() as a shortcut for looking up the
      	action and activating it.
      
      	* app/actions/dialogs-actions.c
      	* app/display/gimpdisplayshell-close.c
      	* app/widgets/gimpcolormapeditor.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimppaletteeditor.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimptooloptionseditor.c: use the new function.
      
      	* app/actions/file-commands.c
      	* app/dialogs/file-save-dialog.c: minor code cleanup.
      50fabff9
  11. 14 Dec, 2006 1 commit
  12. 12 Dec, 2006 1 commit
    • Sven Neumann's avatar
      plugged a tiny memleak. · 04ef165e
      Sven Neumann authored
      2006-12-12  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/edit-actions.c (edit_actions_update): plugged a tiny
      	memleak.
      04ef165e
  13. 11 Dec, 2006 3 commits
    • Sven Neumann's avatar
      don't message "Image saved" from here. · 5ef17494
      Sven Neumann authored
      2006-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/file-commands.c: don't message "Image saved" from
      here.
      
      	* app/core/gimpimage.[ch]: introduced new signal "saved".
      
      	* app/file/file-save.c (file_save): call gimp_image_saved() from
      here.
      
      	* app/display/gimpdisplay-handlers.c: connect to
      GimpImage::saved
      	and show the "Image saved" message. Makes it show up on all
      displays
      	and regardless of how the file was saved.
      
      	* app/display/gimpdisplay.c: fixed typo in comment.
      5ef17494
    • Sven Neumann's avatar
      app/actions/file-actions.c app/actions/file-commands.[ch] introduced new · 7f6033fe
      Sven Neumann authored
      2006-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/file-actions.c
      	* app/actions/file-commands.[ch]
      	* app/display/gimpdisplayshell-close.c: introduced new action
      	'file-save-and-close' and moved display deletion there.
      7f6033fe
    • Sven Neumann's avatar
      app/actions/tool-options-commands.c app/core/gimptoolpresets.[ch] code · 6dc91417
      Sven Neumann authored
      2006-12-11  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/tool-options-commands.c
      	* app/core/gimptoolpresets.[ch]
      	* app/tools/gimp-tools.c: code cleanup.
      6dc91417
  14. 10 Dec, 2006 2 commits
    • Sven Neumann's avatar
      pass the toplevel widget as parent to gimp_query_string_box(). · dea94bb4
      Sven Neumann authored
      2006-12-10  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/tool-options-commands.c
      	(tool_options_save_new_cmd_callback): pass the toplevel widget
      as
      	parent to gimp_query_string_box().
      dea94bb4
    • Sven Neumann's avatar
      app/core/Makefile.am app/core/core-types.h added GimpToolPresets, derived · df8bf728
      Sven Neumann authored
      2006-12-10  Sven Neumann  <sven@gimp.org>
      
      	* app/core/Makefile.am
      	* app/core/core-types.h
      	* app/core/gimptoolpresets.[ch]: added GimpToolPresets, derived
      	from GimpList.
      
      	* app/core/gimptoolinfo.[ch]: use the new type, renamed
      	member "options_presets" to "presets".
      
      	* app/actions/tool-options-actions.c
      	* app/actions/tool-options-commands.c
      	* app/core/gimptooloptions.[ch]
      	* app/menus/tool-options-menu.c
      	* app/widgets/gimptooloptionseditor.c: changed accordingly.
      
      	* app/tools/gimp-tools.c: let the GimpToolPresets object deal
      with
      	loading and saving the presets from ${gimpdir}/tool-options.
      
      	* app/core/gimpcontainer-filter.c
      	* app/core/gimpdocumentlist.c
      	* app/core/gimplist.c
      	* app/text/gimpfontlist.c: use canonical property names.
      df8bf728
  15. 09 Dec, 2006 1 commit
  16. 25 Nov, 2006 1 commit
    • Simon Budig's avatar
      libgimpwidgets/gimpresolutionentry.c fix typo in a function name. · 223a578b
      Simon Budig authored
      2006-11-25  Simon Budig  <simon@gimp.org>
      
      	* libgimpwidgets/gimpresolutionentry.c
      	* libgimpwidgets/gimpwidgets.def: fix typo in a function name.
      
      	* app/widgets/gimpgradienteditor.c
      	* app/widgets/gimppaletteeditor.c
      	* app/actions/gradient-editor-actions.c
      	* app/actions/palette-editor-actions.c: handle all enum values
      	and use sane ones.
      
      	* app/widgets/gimpcontrollerinfo.c: fix a warning.
      223a578b
  17. 22 Nov, 2006 1 commit
    • Michael Natterer's avatar
      add support for G_TYPE_INT properties. · a10d6099
      Michael Natterer authored
      2006-11-22  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/actions.c (action_select_property): add support for
      	G_TYPE_INT properties.
      
      	* app/actions/tools-actions.c
      	* app/actions/tools-commands.[ch]: add actions and callback which
      	affect the foreground select tool's stroke-width property.
      
      	* app/tools/gimpforegroundselecttool.c: map tool-action-value-2
      	(tool tip size) to the new action.
      
      	* app/tools/gimppaintoptions-gui.c: fixed visibility of the brush
      	scale slider.
      a10d6099
  18. 17 Nov, 2006 3 commits
    • Michael Natterer's avatar
      Got rid of the word "editor" were it was good for nothing but exposing an · 02de3076
      Michael Natterer authored
      2006-11-17  Michael Natterer  <mitch@gimp.org>
      
      	Got rid of the word "editor" were it was good for nothing but
      	exposing an implementation detail in public API and installed
      	files.  Fixes bug #345251:
      
      	* app/actions/colormap-editor-actions.[ch]
      	* app/actions/colormap-editor-commands.[ch]
      	* app/actions/sample-point-editor-actions.[ch]
      	* app/actions/sample-point-editor-commands.[ch]
      	* menus/colormap-editor-menu.xml
      	* menus/sample-point-editor-menu.xml
      	* menus/selection-editor-menu.xml
      	* menus/undo-editor-menu.xml: removed.
      
      	* app/actions/colormap-actions.[ch]
      	* app/actions/colormap-commands.[ch]
      	* app/actions/sample-points-actions.[ch]
      	* app/actions/sample-points-commands.[ch]
      	* menus/colormap-menu.xml
      	* menus/sample-points-menu.xml
      	* menus/selection-menu.xml
      	* menus/undo-menu.xml: added.
      
      	* app/actions/Makefile.am
      	* menus/Makefile.am
      	* app/actions/actions.c
      	* app/menus/menus.c
      	* app/menus/plug-in-menus.c
      	* app/...
      02de3076
    • Simon Budig's avatar
      Hack up gimp_value_set_item() to do the correct thing for subtypes of · a8411dc7
      Simon Budig authored
      2006-11-17  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpparamspecs.c: Hack up gimp_value_set_item() to do
      	the correct thing for subtypes of GimpItems.
      
      	* app/actions/plug-in-commands.c: Don't rely on the GimpValues for
      	type checking, pass the param specs to the _collect functions and
      	use them for typechecking.
      a8411dc7
    • Michael Natterer's avatar
      app/actions/tools-actions.c added actions and callbacks for the new paint · c8cb6bfc
      Michael Natterer authored
      2006-11-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/tools-actions.c
      	* app/actions/tools-commands.[ch]: added actions and callbacks for
      	the new paint options brush scale property. Assigned new
      	shortcuts: '<' and '>' are now changing tool-value-1 and '[' and
      	']' are changing tool-value-2
      
      	* app/actions/context-actions.c: removed the shortcuts from the
      	brush size actions.
      
      	* app/tools/gimpbrushtool.c
      	* app/tools/gimpcolortool.c: set tool-value-2 to brush-scale and
      	to color-average-radius, so '[' and ']' always affect the size of
      	the tip of the active tool. tool-value-1 is connected to
      	context-opacity so that is changeable using '<' and '>' now.
      c8cb6bfc
  19. 05 Nov, 2006 1 commit
  20. 30 Oct, 2006 1 commit
    • Michael Natterer's avatar
      app/actions/brush-editor-actions.c app/base/tile-manager-crop.c · c18faa20
      Michael Natterer authored
      2006-10-30  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/brush-editor-actions.c
      	* app/base/tile-manager-crop.c
      	* app/config/gimpconfig-file.c
      	* app/core/gimp-gradients.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpimage-colorhash.c
      	* app/core/gimpimage-undo-push.c
      	* app/dialogs/convert-dialog.c
      	* app/dialogs/preferences-dialog.c
      	* app/display/gimpdisplayshell-callbacks.c
      	* app/gui/gui-vtable.c
      	* app/paint/gimpheal.c
      	* app/paint/gimppaintcore-undo.c
      	* app/plug-in/plug-in-enums.h
      	* app/vectors/gimpstroke-new.c
      	* app/vectors/gimpvectors-warp.c
      	* app/widgets/gimpviewablebox.c
      	* app/widgets/gimpviewrenderer-frame.c
      	* app/widgets/gimpviewrenderer-utils.c
      	* app/xcf/xcf-save.c
      	* libgimpwidgets/gimpcontroller.c: all .c files should include
      	their headers and all private functions should be static.
      	(-Wmissing-declarations -Wmissing-prototypes rocks!)
      c18faa20
  21. 29 Oct, 2006 2 commits
    • Michael Natterer's avatar
      use the "value" field for the GimpRunMode, it used to be "0" to reference · f30ac3ca
      Michael Natterer authored
      2006-10-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/plug-in-actions.c (plug_in_repeat_action): use the
      	"value" field for the GimpRunMode, it used to be "0" to reference
      	the first plug-in in the history.
      
      	* app/actions/plug-in-commands.[ch] (plug_in_repeat_cmd_callback):
      	always pick the first item from the history and use the passed
      	value as GimpRunMode instead of determining it from the action's
      	name.
      f30ac3ca
    • Michael Natterer's avatar
      use GimpPlugInActions instead of GimpEnumActions so the menu items show · b4396809
      Michael Natterer authored
      2006-10-29  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/plug-in-actions.c: use GimpPlugInActions instead of
      	GimpEnumActions so the menu items show any kind of icons (not only
      	stock-id icons). Now if any plug-in that shows up in the history
      	registered non-stock-id icons, this change would be actually
      	useful ;) Fixes bug #338525.
      
      	* app/actions/plug-in-commands.[ch] (plug_in_history_cmd_callback):
      	new callback for the history, much simpler than
      	plug_in_repeat_cmd_callback().
      b4396809
  22. 25 Oct, 2006 1 commit
    • Simon Budig's avatar
      extended gimp_vectors_import() and friends with a parameter for returning · ab4d8b03
      Simon Budig authored
      2006-10-25  Simon Budig  <simon@gimp.org>
      
              * app/vectors/gimpvectors-import.[ch]: extended gimp_vectors_import()
              and friends with a parameter for returning the newly generated vectors.
      
              * app/actions/edit-commands.c
              * app/actions/vectors-commands.c
              * app/display/gimpdisplayshell-dnd.c
              * app/widgets/gimpvectorstreeview.c: Changed accordingly.
      
              * app/vectors/vectors-enums.h: moved the GimpVectorsStrokeType to...
              * libgimpbase/gimpbaseenums.h: ... this file.
      
              * app/vectors/Makefile.am: Changed accordingly
              * app/vectors/vectors-enums.c: removed accordingly.
      
              * tools/pdbgen/pdb/vectors.pdb: new functions
              gimp_vectors_new_from_file() and gimp_vectors_new_from_string().
      
              * tools/pdbgen/pdb/paths.pdb: deprecated the previous functions.
      
              * app/pdb/internal_procs.c
              * app/pdb/paths_cmds.c
              * app/pdb/vectors_cmds.c
              * app/vectors/vectors-enums.c
              * libgimp/gimpenums.h
              * tools/pdbgen/enums.pl
              * libgimp/gimppaths_pdb.[ch]
              * libgimp/gimpvectors_pdb.[ch]
              * libgimpbase/gimpbaseenums.c
              * devel-docs/libgimp/tmpl/gimpfontselectbutton.sgml
              * devel-docs/libgimp/tmpl/gimptools.sgml: regenerated.
      ab4d8b03
  23. 21 Oct, 2006 1 commit
    • Michael Natterer's avatar
      Added "Edit -> Fade" which allows to modify the paint mode and opacity of · e634d4d7
      Michael Natterer authored
      2006-10-21  Michael Natterer  <mitch@gimp.org>
      
      	Added "Edit -> Fade" which allows to modify the paint mode and
      	opacity of the last drawable operation (fill, plugins etc.).
      	Started from a patch by Bill Skaggs. Fixes bug #170707.
      
      	* app/base/base-enums.[ch] (enum GimpLayerModeEffects): register
      	the values REPLACE_MODE, ERASE_MODE and ANTI_ERASE_MODE with
      	the type system.
      
      	* app/widgets/gimppropwidgets.[ch]
      	* app/widgets/gimpwidgets-constructors.[ch]: added "gboolean
      	with_replace_modes" to the paint mode menu constructors.
      
      	* app/tools/gimppaintoptions-gui.c
      	* app/widgets/gimpbrushselect.c
      	* app/widgets/gimplayertreeview.c: pass with_replace_modes = FALSE.
      
      	* app/core/gimpdrawableundo.[ch]: added members which keep tiles,
      	paint mode and opacity of the pasted pixels.
      
      	* app/core/gimpimage-undo.[ch] (gimp_image_undo_get_fadeable):
      	returns a GimpUndo suitable for a fade operation, or NULL.
      
      	* app/core/gimp-edit.[ch] (gimp_edit_fade): implements the actual
      	fade by undoing the last operation and then re-applying the pixels
      	with different paint mode and opacity.
      
      	* app/core/gimpdrawable-combine.c: store the pasted pixels in
      	the GimpDrawableUndo.
      
      	* app/actions/edit-actions.c
      	* app/actions/edit-commands.[ch]: action and callback for fade.
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/fade-dialog.[ch]: the fade dialog.
      
      	* app/widgets/gimphelp-ids.h: the fade help ID.
      
      	* menus/image-menu.xml.in: added a menu entry in "Edit".
      e634d4d7
  24. 19 Oct, 2006 1 commit
    • Michael Natterer's avatar
      remove the accelerator from the "Arbitrary Rotation" action, Shift+R · 50733702
      Michael Natterer authored
      2006-10-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/tools-actions.c (tools_alternative_actions): remove
      	the accelerator from the "Arbitrary Rotation" action, Shift+R
      	should switch to the rotate tool, not switch to the rotate tool
      	*and* select "Transform Layer" from the tool options.
      50733702
  25. 15 Oct, 2006 1 commit
    • Michael Natterer's avatar
      Applied slightly modified patch from Martin Nordholts which implements · 8354a781
      Michael Natterer authored
      2006-10-15  Michael Natterer  <mitch@gimp.org>
      
      	Applied slightly modified patch from Martin Nordholts which
      	implements more fine-grained steps for actions. Fixes bug #165612.
      
      	* app/actions/actions-types.h: add additional values to
      	enum GimpActionSelectType.
      
      	* app/actions/actions.[ch] (action_select_value)
      	(action_select_property): handle them here and added "small_inc"
      	and "delta_factor" parameters.
      
      	* app/actions/context-actions.c: added small and percent actions
      	for the brush radius.
      
      	* app/actions/context-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/tools-commands.c
      	* app/actions/view-commands.c: pass small and percent increase
      	values to the action_select_foo() functions.
      
      	* app/actions/context-commands.c (context_brush_radius_cmd_callback):
      	make sure we don't end up with 1.1, 2.1 etc brush radius values.
      8354a781
  26. 14 Oct, 2006 1 commit
    • Michael Natterer's avatar
      Remember the settings in the scale and resize dialogs for images and · 76ba5de1
      Michael Natterer authored
      2006-10-14  Michael Natterer  <mitch@gimp.org>
      
      	Remember the settings in the scale and resize dialogs for images
      	and layers. Fixes bug #164995, bug #316392, and bug #357424.
      
      	* app/dialogs/scale-dialog.h: removed GimpScaleCallback typedef.
      
      	* app/dialogs/dialogs-types.h: added it here.
      
      	* app/dialogs/image-scale-dialog.[ch]: made the ImageScaleDialog
      	struct private, return a GtkWidget* from image_scale_dialog_new()
      	and use a GimpScaleCallback in the public API.
      
      	* app/actions/actions-types.h: #include "dialogs/dialogs-types.h"
      
      	* app/actions/image-commands.c: changed according to image scale
      	dialog changes. Remember the scale dialog's unit (if it is
      	"percent") and interpolation type across dialog invocations. Also
      	remember the resize dialog's unit (if it is "percent").
      
      	* app/actions/layers-commands.c: remember scale and resize dialog
      	stuff as in image-commands.c
      76ba5de1
  27. 09 Oct, 2006 2 commits
    • Michael Natterer's avatar
      app/actions/data-commands.c app/actions/documents-commands.c · 1ed8dd4f
      Michael Natterer authored
      2006-10-09  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/data-commands.c
      	* app/actions/documents-commands.c
      	* app/actions/drawable-commands.c
      	* app/actions/gradients-commands.c
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c
      	* app/actions/palettes-commands.c
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimp-contexts.c
      	* app/core/gimp-documents.c
      	* app/core/gimp-edit.c
      	* app/core/gimp-modules.c
      	* app/core/gimp-parasites.c
      	* app/core/gimp-templates.c
      	* app/core/gimp-units.c
      	* app/core/gimpchannel.c
      	* app/core/gimpdatafactory.[ch]
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimagefile.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimppdbprogress.c
      	* app/core/gimpselection.c
      	* app/dialogs/palette-import-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/gui/session.c
      	* app/gui/themes.c
      	* app/pdb/gimpprocedure.c
      	* app/plug-in/gimpplugin-message.c
      	* app/plug-in/gimpplugin.c
      	* app/plug-in/gimppluginmanager-file.c
      	* app/plug-in/gimppluginmanager.c
      	* app/text/gimptextlayer-xcf.c
      	* app/text/gimptextlayer.c
      	* app/widgets/gimpcontrollers.c
      	* app/widgets/gimpdataeditor.c
      	* app/widgets/gimpdevices.c
      	* app/widgets/gimpdnd-xds.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c
      	* app/widgets/gimptoolbox.c
      	* app/widgets/gimpuimanager.c
      	* app/widgets/gimpvectorstreeview.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/palette.pdb: convert lots of g_message() to
      	gimp_message(). Make sure we never pass unknown strings (like
      	error->message) to printf-like functions directly; run them
      	thorugh "%s" instead. Don't translate some messages which should
      	never happen.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      1ed8dd4f
    • Michael Natterer's avatar
      Added message severities and make sure all messages are routed through a · f5afb754
      Michael Natterer authored
      2006-10-09  Michael Natterer  <mitch@gimp.org>
      
      	Added message severities and make sure all messages are routed
      	through a central function, so redirecting to the error console or
      	stderr work again:
      
      	* app/core/core-enums.[ch]: added enum GimpMessageSeverity { INFO,
      	WARNING, ERROR }.
      
      	* app/core/gimp.[ch] (gimp_message)
      	(gimp_message_valist): added severity parameter. Changed
      	"GimpProgress *progress" parameter to "GObject *handler", where
      	"handler" can be either a GimpProgress, a GtkWidget or NULL.
      
      	* app/core/gimp-gui.[ch] (gimp_show_message): ditto. Honor
      	--console-messages again. Always dispatch to the GUI message
      	handler first if it exists.
      
      	* app/gui/gui-message.[ch]: pass severity parameters around.
      
      	(gui_message_error_dialog): if "handler" is a progress, dispatch
      	the message to it first. If it is a widget (and *not* a progress),
      	use a GtkMessageDialog on top of that widget's toplevel. Fall
      	back to the usual GimpErrorDialog otherwise.
      
      	* app/core/gimpprogress.[ch] (gimp_progress_message): added
      	severity parameter. Also added boolean return value to the virtual
      	function so it can decide to fail if it can't handle the message.
      
      	* app/display/gimpdisplay.c: implement GimpProgress::message() and
      	redirect the message to GimpDisplayShell.
      
      	* app/display/gimpdisplayshell-progress.c: implement
      	GimpProgress::message() and redirect the message to GimpStatusbar
      	if it is not an error and if the status bar is visible.
      
      	* app/display/gimpstatusbar.[ch]: implement GimpProgress::message(),
      	but fail on messages that contain a newline. Show the right icons
      	for the message severities (work in progress).
      
      	* app/display/gimpdisplayshell.[ch]: removed
      	gimp_display_shell_message() and its _valist() variant.
      
      	* app/widgets/gimperrorconsole.[ch]: show the right icons for the
      	message severities.
      
      	* app/widgets/gimpthumbbox.c (gimp_thumb_box_progress_message):
      	return TRUE to swallow all messages.
      
      	* app/widgets/gimpwidgets-utils.[ch]: removed
      	gimp_show_message_dialog(). Added gimp_get_message_stock_id().
      
      	* app/errors.c
      	* app/actions/edit-commands.c
      	* app/actions/error-console-commands.c
      	* app/actions/file-commands.c
      	* app/actions/select-commands.c
      	* app/actions/text-editor-commands.c
      	* app/actions/vectors-commands.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimagefile.c
      	* app/dialogs/convert-dialog.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/dialogs/file-save-dialog.c
      	* app/dialogs/palette-import-dialog.c
      	* app/dialogs/stroke-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/pdb/gimppdb.c
      	* app/plug-in/gimpplugin.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimptool.c
      	* app/tools/gimpvectortool.c
      	* app/widgets/gimpactionview.c
      	* app/widgets/gimpcontrollerlist.c
      	* app/widgets/gimppdbdialog.c
      	* app/widgets/gimpvectorstreeview.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* app/xcf/xcf.c
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/gradient.pdb
      	* tools/pdbgen/pdb/image.pdb
      	* tools/pdbgen/pdb/message.pdb
      	* tools/pdbgen/pdb/palette.pdb: added severity parameter to
      	gimp_message() calls. Convert all calls to
      	gimp_show_message_dialog() and gimp_display_shell_message() to
      	gimp_message(). Also converted some more g_message() calls.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/gradient_cmds.c
      	* app/pdb/image_cmds.c
      	* app/pdb/message_cmds.c
      	* app/pdb/palette_cmds.c: regenerated.
      f5afb754
  28. 03 Oct, 2006 1 commit
  29. 01 Oct, 2006 1 commit
    • Michael Natterer's avatar
      Get rid of one more user context hack: · 3b11fa73
      Michael Natterer authored
      2006-10-01  Michael Natterer  <mitch@gimp.org>
      
      	Get rid of one more user context hack:
      
      	* app/dialogs/stroke-dialog.c: attach the saved-stroke-desc to the
      	gimp object instead of to the passed context in one function, and
      	to the user context in the other (coincidentially these contexts
      	were the same).
      
      	* app/actions/select-commands.c
      	* app/actions/vectors-commands.c: changed accordingly. Pass the
      	callback's context instead of the user context to
      	stroke_dialog_new().
      3b11fa73
  30. 28 Sep, 2006 1 commit
    • Sven Neumann's avatar
      added gimp_display_shell_message() and a valist variant and decide here · e6d34e4f
      Sven Neumann authored
      2006-09-28  Sven Neumann  <sven@gimp.org>
      
      	* app/display/gimpdisplayshell.[ch]: added
      	gimp_display_shell_message() and a valist variant and decide here
      	where the message is shown.
      
      	* app/actions/edit-commands.c (edit_paste)
      	* app/tools/gimptool.c (gimp_tool_message): use the new message API.
      e6d34e4f
  31. 24 Sep, 2006 1 commit
  32. 23 Sep, 2006 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 2c07e922
      William Skaggs authored
      	* app/actions/tools-actions.c
      	* app/actions/tools-commands.[ch]: add new actions for
      	toggling "fixed-aspect" and "fixed-center" options of
      	rectangle tools.
      
      	* app/tools/gimprectangletool.[ch]
      	* app/tools/gimprectangleselecttool.c
      	* app/tools/gimpcroptool.c: rely on new actions for
      	keyboard control, not on modifiers pressed after
      	mouse1-down.
      2c07e922