1. 14 Jan, 2005 1 commit
    • Michael Natterer's avatar
      app/actions/buffers-commands.[ch] app/actions/data-commands.[ch] · e551a9a3
      Michael Natterer authored
      2005-01-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/buffers-commands.[ch]
      	* app/actions/data-commands.[ch]
      	* app/actions/documents-commands.[ch]
      	* app/actions/palettes-commands.[ch]
      	* app/actions/templates-commands.[ch]: changed the remaining
      	callbacks to follow a consistent naming scheme
      	(e.g. buffers_delete_buffer_cmd_callback ->
      	buffers_delete_cmd_callback).
      
      	* app/actions/brushes-actions.c
      	* app/actions/buffers-actions.c
      	* app/actions/documents-actions.c
      	* app/actions/gradients-actions.c
      	* app/actions/palettes-actions.c
      	* app/actions/patterns-actions.c
      	* app/actions/templates-actions.c: changed accordingly.
      e551a9a3
  2. 13 Jan, 2005 2 commits
    • Michael Natterer's avatar
      Allow to easily open brushes and patterns as images. Fixes bug #163059. · 0f4e2168
      Michael Natterer authored
      2005-01-13  Michael Natterer  <mitch@gimp.org>
      
      	Allow to easily open brushes and patterns as images.
      	Fixes bug #163059.
      
      	* app/actions/brushes-actions.c
      	* app/actions/patterns-actions.c: added "brushes-open-as-image"
      	and "patterns-open-as-image" actions.
      
      	* app/actions/data-commands.[ch]: added
      	data_open_as_image_cmd_callback() which tries to load
      	data->filename as image.
      
      	* app/widgets/gimphelp-ids.h: added help IDs for the new actions.
      
      	* app/widgets/gimpdatafactoryview.c: added buttons.
      
      	* menus/brushes-menu.xml
      	* menus/patterns-menu.xml: added them to the menus.
      0f4e2168
    • Michael Natterer's avatar
      Made the file open and save dialogs use the last used folder instead of · 4f97f7a5
      Michael Natterer authored
      2005-01-13  Michael Natterer  <mitch@gimp.org>
      
      	Made the file open and save dialogs use the last used folder
      	instead of defaulting to current directory. Fixes bug #162385.
      
      	* app/widgets/gimpfiledialog.[ch] (gimp_file_dialog_set_uri):
      	removed this function because it had no functionality except
      	creating usability problems.
      
      	* app/actions/file-commands.c: use gtk_file_chooser_set_uri()
      	instead but *only* if we already have an uri from an alread open
      	image or the document hinstory.
      
      	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_image): set
      	the file chooser's uri only if we have an uri from the image
      	itself. Leave the current folder untouched otherwise and just set
      	the current name (e.g. "Untitled").
      
      	* app/dialogs/file-save-dialog.c (file_save_dialog_save_image): on
      	successful save, remember the used uri by attaching it to the
      	"gimp" instance.
      
      	(file_save_dialog_new): set the last saved uri's folder on the
      	newly created file save dialog.
      4f97f7a5
  3. 07 Jan, 2005 1 commit
    • Michael Natterer's avatar
      app/actions/plug-in-commands.c GIMP_PROGRESS(NULL) is perfectly valid, no · 35776754
      Michael Natterer authored
      2005-01-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/plug-in-commands.c
      	* app/actions/vectors-commands.c: GIMP_PROGRESS(NULL) is perfectly
      	valid, no need to say gdisp ? GIMP_PROGRESS(gdisp) : NULL.
      
      	* app/actions/plug-in-commands.c (plug_in_run_cmd_callback):
      	remember the last plug-in if it has at least 3 args, not 2.
      	Cleaned up the whole function and removed cruft.
      35776754
  4. 03 Jan, 2005 2 commits
    • Michael Natterer's avatar
      app/actions/view-actions.c app/actions/view-commands.[ch] · 4a0b9cb6
      Michael Natterer authored
      2005-01-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]
      	* app/display/gimpdisplayshell-appearance.[ch]
      	* menus/image-menu.xml.in: reordered actions, functions and menu
      	items so the "show" and "snap" actions are grouped.
      4a0b9cb6
    • Michael Natterer's avatar
      Implemented "Snap to Canvas Edges" (fixes bug #152971) and "Snap to Active · 150bea1e
      Michael Natterer authored
      2005-01-03  Michael Natterer  <mitch@gimp.org>
      
      	Implemented "Snap to Canvas Edges" (fixes bug #152971) and
      	"Snap to Active Path" (half way done):
      
      	* app/core/gimpimage-snap.[ch]: added boolean snap_to_canvas and
      	snap_to_vectors parameters (snap_to_vectors works fine when
      	snapping to a point, but is unimplemented for snapping to a
      	rectangle).
      
      	* app/display/gimpdisplayshell.[ch] (struct GimpDisplayShell):
      	added snap_to_canvas and snap_to_vectors booleans.
      
      	* app/display/gimpdisplayshell-appearance.[ch]: added API to
      	get/set them.
      
      	* app/actions/view-actions.c
      	* app/actions/view-commands.[ch]
      	* app/widgets/gimphelp-ids.h: added actions, callbacks and help IDs.
      
      	* menus/image-menu.xml.in: added them to Image->View.
      150bea1e
  5. 31 Dec, 2004 3 commits
    • Michael Natterer's avatar
      use the orininal string if plug_in_actions_check_translation() fails · da3c78d5
      Michael Natterer authored
      2004-12-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/plug-in-actions.c: use the orininal string if
      	plug_in_actions_check_translation() fails instead of bailing out.
      	Fixes bug #162590.
      da3c78d5
    • Michael Natterer's avatar
      removed the just added gimp_palette_insert_entry() and added a "gint · e5feab65
      Michael Natterer authored
      2004-12-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimppalette.[ch]: removed the just added
      	gimp_palette_insert_entry() and added a "gint position" parameter
      	to gimp_palette_add_entry() instead (no need to have two almost
      	identical functions).
      
      	* app/actions/palette-editor-commands.c
      	* app/core/gimppalette-import.c
      	* app/widgets/gimppaletteeditor.c
      	* tools/pdbgen/pdb/palette.pdb: changed accordingly.
      
      	* app/pdb/palette_cmds.c: regenerated.
      e5feab65
    • Michael Natterer's avatar
      app/actions/tools-actions.c app/actions/tools-commands.[ch] applied a · 8439ecb6
      Michael Natterer authored
      2004-12-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/tools-actions.c
      	* app/actions/tools-commands.[ch]
      	* app/widgets/gimptoolview.[ch]: applied a (modified) patch from
      	Joao S. O. Bueno which adds "raise" and "lower" actions and
      	their buttons in the tool dialog. Fixes bug #158666.
      	Cleaned up the tool action callbacks.
      8439ecb6
  6. 26 Dec, 2004 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · b13aded0
      William Skaggs authored
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: undo changes of 12-24,
      	in favor of a better fix.
      
      	* app/widgets/gimperrordialog.c: fix bug #162147 properly,
      	as suggested by mitch.
      b13aded0
  7. 24 Dec, 2004 1 commit
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 59e86d02
      William Skaggs authored
      	* app/actions/documents-commands.c
      	* app/actions/file-commands.c
      	* app/dialogs/file-open-dialog.c
      	* app/dialogs/file-open-location-dialog.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimptoolbox-dnd.c: replace % with space
      	in file name before showing error message,
      	fixes bug #162147.
      
      	* app/core/gimp-gui.c
      	* app/widgets/gimpmessagebox.c: be a bit more paranoid
      	about validating utf8 for messages.
      59e86d02
  8. 21 Dec, 2004 1 commit
    • Michael Natterer's avatar
      if the dialog is insensitive, disable all actions which modify the · 30aa9051
      Michael Natterer authored
      2004-12-21  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/gradient-editor-actions.c
      	(gradient_editor_actions_update): if the dialog is insensitive,
      	disable all actions which modify the gradient. Fixes bug #161411.
      
      	* app/actions/gradient-editor-commands.c: update the UI manager
      	after setting the dialog sensitive/insensitive so te above works.
      30aa9051
  9. 16 Dec, 2004 1 commit
    • Michael Natterer's avatar
      get gimp, display or image from a context only if it isn't NULL. Fixes · 8a5a4bd6
      Michael Natterer authored
      2004-12-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/actions.c (action_data_get_*): get gimp, display or
      	image from a context only if it isn't NULL. Fixes warnings and
      	crashes when dragging around some dockables (the dockables'
      	context temporarily becomes NULL while dragging).
      
      	Reordered checks for the passed "data" to be consistent across the
      	various functions.
      
      	Removed assertions which said "#warning: remove me before 2.2"
      8a5a4bd6
  10. 12 Dec, 2004 1 commit
    • Michael Natterer's avatar
      added new function copy_region_nocow() as a workaround for the fact that · 53c3ff18
      Michael Natterer authored
      2004-12-12  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint-funcs/paint-funcs.[ch]: added new function
      	copy_region_nocow() as a workaround for the fact that sharing
      	tiles with the projection is heavily broken.
      
      	* app/base/tile-manager.c (tile_invalidate): added a warning when
      	entering the code path that breaks badly.
      
      	* app/core/gimp-edit.[ch]: added gimp_edit_copy_visible(), using
      	the non-COW copying function above.
      
      	* app/widgets/gimphelp-ids.h: added GIMP_HELP_COPY_VISIBLE.
      
      	* app/actions/edit-actions.c
      	* app/actions/edit-commands.[ch]: added action & callback for
      	"edit-copy-visible".
      
      	* menus/image-menu.xml.in: added "edit-copy-visible" to the image
      	menu.
      
      	* tools/pdbgen/pdb/edit.pdb: added gimp_edit_copy_visible()
      	PDB wrapper.
      
      	* app/pdb/edit_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpedit_pdb.[ch]: regenerated.
      
      	* plug-ins/script-fu/scripts/copy-visible.scm: removed all code
      	and made it a backward compat wrapper around gimp-edit-copy-visible.
      	Fixes bug #138662.
      53c3ff18
  11. 02 Dec, 2004 1 commit
    • Michael Natterer's avatar
      don't forget to initialize the "value_variable" boolean of · c62967b8
      Michael Natterer authored
      2004-12-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/tool-options-actions.c
      	(tool_options_actions_update_presets): don't forget to initialize
      	the "value_variable" boolean of GimpEnumActionEntry. Fixes myriads
      	of warnings about wrong values for boolean properties.
      
      	* app/actions/file-actions.c (file_actions_setup): same
      	here. Fixes nothing but is cleaner.
      c62967b8
  12. 21 Nov, 2004 1 commit
    • Hans Breuer's avatar
      [new file] app/dialogs/Makefile.am : added to EXTRA_DIST · 696663a6
      Hans Breuer authored
      2004-09-21  Hans Breuer  <hans@breuer.org>
      
      	* app/dialogs/makefile.msc : [new file]
      	  app/dialogs/Makefile.am : added to EXTRA_DIST
      
      	* **/makefile.msc app/gimpcore.def : updated
      
      	* app/gimp.rc : let wilber be first
      
      	* app/widgets/gimppropwidgets.c : msvc6 can't cast uint64 either
      
      	* libgimpbase/gimpwin32-io.h : make up recent loss of ftruncate in GLib
      
      	* libgimpthumbnail/gimpthumbnail.c : <process.h> for getpid() on win32
      
      	* plug-ins/helpbrowser/dialog.c : include gimpwin32-io.h
      
      	* plug-ins/script-fu/siodwrapper.c plug-ins/script-fu/scrip-fu.c : there
      	is no script-fu-server on win32
      696663a6
  13. 18 Nov, 2004 2 commits
    • 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
      	gimp_action_group_add_enum_actions().
      
      	* 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
      	voodoo.
      
      	* 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).
      567bb7b2
    • Michael Natterer's avatar
      The following fixes have no visible effect because nobody uses · b8344d51
      Michael Natterer authored
      2004-11-18  Michael Natterer  <mitch@gimp.org>
      
      	The following fixes have no visible effect because nobody
      	uses gimp_plugin_menu_register() on temp_procs yet:
      
      	* app/actions/plug-in-actions.[ch]: added
      	plug_in_actions_add_path() which just adds the actions needed for
      	a given menu math, but not the procedure action itself.
      
      	* app/gui/gui-vtable.c (gui_menus_create_entry): create the
      	menu_path's actions using above function so adding of submenus to
      	existing ui managers works.
      
      	* tools/pdbgen/pdb/plug_in.pdb (plugin_menu_register_invoker):
      	don't add a menu if "no_interface" is TRUE.
      
      	* app/pdb/plug_in_cmds.c: regenerated.
      
      	* plug-ins/script-fu/script-fu-scripts.c: pass untranslated
      	menu_paths to the core, not translated ones. Don't store the
      	scripts directly in the "script_list" tree but use a list of
      	scripts per key because there can be identical keys for different
      	scripts now. Fixed sorting of menu entries and menus.
      b8344d51
  14. 16 Nov, 2004 1 commit
    • Sven Neumann's avatar
      app/actions/file-commands.c app/dialogs/file-save-dialog.c · d4bf381c
      Sven Neumann authored
      2004-11-16  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/file-commands.c
      	* app/dialogs/file-save-dialog.c
      	* app/file/file-save.[ch]
      	* app/widgets/gimpfiledialog.[ch]: combined "set_uri_and_proc" and
      	"set_image_clean" parameters into a single "save_a_copy"
      	parameter.  When saving a copy, attach the used URI to the image and
      	let the "Save a Copy" file chooser default to the last used value.
      d4bf381c
  15. 14 Nov, 2004 3 commits
    • Sven Neumann's avatar
      converted error messages that should never appear to warnings. · 376b23f9
      Sven Neumann authored
      2004-11-14  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/image-commands.c: converted error messages that should
      	never appear to warnings.
      376b23f9
    • 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.
      5d015810
    • Sven Neumann's avatar
      themes/Default/images/Makefile.am · ec9ee41f
      Sven Neumann authored
      2004-11-14  Sven Neumann  <sven@gimp.org>
      
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-center-16.png
      	* themes/Default/images/stock-center-24.png
      	* themes/Default/images/stock-print-resolution-16.png
      	* themes/Default/images/stock-print-resolution-24.png: new icons
      	drawn by Jimmac.
      
      	* libgimpwidgets/gimpstock.[ch]: registered the new icons.
      
      	* app/actions/image-actions.c
      	* app/dialogs/print-size-dialog.c
      	* app/dialogs/resize-dialog.c
      	* plug-ins/ifscompose/ifscompose.c: use them.
      ec9ee41f
  16. 13 Nov, 2004 2 commits
  17. 04 Nov, 2004 1 commit
    • Michael Natterer's avatar
      Don't use deprecated GtkToolbar API in GimpTextEditor: · 5d7b121f
      Michael Natterer authored
      2004-11-04  Michael Natterer  <mitch@gimp.org>
      
      	Don't use deprecated GtkToolbar API in GimpTextEditor:
      
      	* app/actions/Makefile.am
      	* app/actions/actions.c
      	* app/actions/text-editor-actions.[ch]
      	* app/actions/text-editor-commands.[ch]: added acions and
      	callbacks for the new "text-editor" action group.
      
      	* app/menus/menus.c: register a "<TextEditor>" UI manager.
      
      	* menus/Makefile.am
      	* menus/text-editor-toolbar.xml: new file for the toolbar.
      
      	* app/widgets/gimptexteditor.[ch]: use the toolbar created by the
      	UI manager instead of constructing it using deprecated API.
      
      	* app/tools/gimptextoptions.c: changed accordingly.
      
      	* app/widgets/gimpwidgets-utils.[ch]: added gimp_text_buffer_load()
      	(used by text-editor-commands.c).
      5d7b121f
  18. 02 Nov, 2004 1 commit
  19. 01 Nov, 2004 2 commits
    • Øyvind Kolås's avatar
      renamed *levels-auto to *levels-stretch · c5c0a219
      Øyvind Kolås authored
      c5c0a219
    • Michael Natterer's avatar
      trailing whitespace. · 2ab62df9
      Michael Natterer authored
      2004-11-01  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/drawable-actions.c: trailing whitespace.
      
      	* app/actions/drawable-commands.[ch]: partly revert alphabetical
      	ordering. Instead, group them as in drawable-actions.c and order
      	by alphabet inside the groups (different ordering in *-actions.c
      	and *-commands.c is inconvenient for the usual workflow of editing
      	both files at the same time).
      
      	* app/core/gimpdrawable-levels.h: indentation.
      2ab62df9
  20. 30 Oct, 2004 1 commit
    • Sven Neumann's avatar
      destroy the scale dialog when the display is disconnected. · b4f03842
      Sven Neumann authored
      2004-10-30  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/image-commands.c (image_scale_cmd_callback): destroy
      	the scale dialog when the display is disconnected.
      
      	* app/dialogs/resize-dialog.c: fixed a couple of bugs related to
      	the offset area. Still work in progress.
      b4f03842
  21. 29 Oct, 2004 2 commits
  22. 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.
      279d9010
  23. 27 Oct, 2004 3 commits
    • Sven Neumann's avatar
      changed menu label from "Show Image Menu" to "Show Image Selection". · 4349469e
      Sven Neumann authored
      2004-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/dockable-actions.c (dockable_toggle_actions): changed
      	menu label from "Show Image Menu" to "Show Image Selection".
      
      	* app/widgets/gimpsizebox.c: unmarked a string for translation.
      
      	* app/dialogs/scale-dialog.c: added back the message when scaling
      	an indexed image.
      4349469e
    • Sven Neumann's avatar
      started to redo the Resize dialog in the style of the new Scale dialog. · 52252cf0
      Sven Neumann authored
      2004-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/resize-dialog.[ch]: started to redo the Resize
      	dialog in the style of the new Scale dialog. Only halfway done but
      	at least the new API is there.
      
      	* app/actions/image-commands.c
      	* app/actions/layers-commands.c: changed accordingly.
      
      	* app/dialogs/image-scale-dialog.c: cosmetics.
      52252cf0
    • Sven Neumann's avatar
      app/dialogs/Makefile.am a wrapper around the scale dialog that takes care · fffebe8e
      Sven Neumann authored
      2004-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/dialogs/Makefile.am
      	* app/dialogs/image-scale-dialog.[ch]: a wrapper around the scale
      	dialog that takes care verifying the user input and optionally
      	asking for confirmation. Most of this moved out of image-commands.c.
      
      	* app/actions/image-commands.c: use the new image scale dialog
      	even though it doesn't allow to edit the resolution yet. That's a
      	temporary regression that will get fixed soon.
      
      	* app/actions/layers-commands.c: cosmetics.
      
      	* app/dialogs/scale-dialog.c (scale_dialog_reset): also reset the
      	resolution.
      
      	* app/widgets/gimpsizebox.c: fixed cut'n'paste error.
      fffebe8e
  24. 26 Oct, 2004 2 commits
    • Sven Neumann's avatar
      added a resolution label similar to one in the template editor. Prepared · b0330f95
      Sven Neumann authored
      2004-10-27  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpsizebox.[ch]: added a resolution label similar
      	to one in the template editor. Prepared for editable resolution,
      	work in progress...
      
      	* app/dialogs/scale-dialog.[ch]: added resolution and resolution
      	unit parameters to ScaleDialogCallback.
      
      	* app/actions/layers-commands.c: changed accordingly.
      b0330f95
    • Sven Neumann's avatar
      app/actions/channels-commands.c app/core/gimpchannel-select.c · 1ee62f77
      Sven Neumann authored
      2004-10-26  Sven Neumann  <sven@gimp.org>
      
      	* app/actions/channels-commands.c
      	* app/core/gimpchannel-select.c
      	* app/core/gimpimagefile.c
      	* app/core/gimpundo.c
      	* app/widgets/gimpcomponenteditor.c: use the new enum utility
      	functions from libgimpbase instead of accessing enum_value->value_name.
      1ee62f77
  25. 25 Oct, 2004 1 commit
    • Michael Natterer's avatar
      app/actions/gradient-editor-commands.c irrelevant coding style and spacing · e88a6636
      Michael Natterer authored
      2004-10-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/actions/gradient-editor-commands.c
      	* app/display/gimpdisplayshell-preview.c: irrelevant coding style
      	and spacing cleanups.
      
      	* app/widgets/gimpimageeditor.c: removed utility function
      	gimp_image_editor_context_changed() and connect
      	gimp_image_editor_set_image() directly using
      	g_signal_connect_swapped().
      e88a6636
  26. 24 Oct, 2004 2 commits
    • Michael Natterer's avatar
      added gimp_text_buffer_save() which saves a GtkTextBuffer's contents to a · df343547
      Michael Natterer authored
      2004-10-25  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpwidgets-utils.[ch]: added gimp_text_buffer_save()
      	which saves a GtkTextBuffer's contents to a file.
      
      	* app/widgets/gimperrorconsole.c: use
      	gimp_editor_add_action_button() and removed all "clicked"
      	callbacks, including all file saving code.
      
      	* app/actions/error-console-actions.c
      	* app/actions/error-console-commands.[ch]: added the code removed
      	above to the action callbacks. Use gimp_text_buffer_save().
      df343547
    • Michael Natterer's avatar
      app/widgets/gimpgradienteditor.[ch] added public APIs for zooming the · 714771d4
      Michael Natterer authored
      2004-10-24  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpgradienteditor.[ch]
      	* app/widgets/gimppaletteeditor.[ch]: added public APIs for
      	zooming the editors. Use gimp_editor_add_action_button() to create
      	all buttons. Removed all button callbacks and all duplicated
      	button sensitivity logic.
      
      	* app/widgets/gimpdataeditor.c (gimp_data_editor_set_data): update
      	the editor's UI manager if it exists.
      
      	* app/actions/gradient-editor-actions.c
      	* app/actions/gradient-editor-commands.[ch]: added zoom actions
      	and callback and call gimp_gradient_editor_zoom(). Fixed
      	gradient_editor_actions_update() to actually set all items'
      	sensitivity (it was possible to modify read-only gradients and
      	even to crash GIMP).
      
      	* app/actions/palette-editor-actions.c
      	* app/actions/palette-editor-commands.[ch]: changed "new" and
      	"zoom" actions to actually do their job instead of calling
      	gtk_button_clicked(editor->foo_button).
      714771d4