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 4 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
      Splitting GimpItem::convert() into two virtual functions was apparently · 4e942377
      Michael Natterer authored
      2005-01-13  Michael Natterer  <mitch@gimp.org>
      
      	Splitting GimpItem::convert() into two virtual functions was
      	apparently buggy over-engineering. Reverted that stuff and
      	implement item conversion much simpler:
      
      	* app/core/gimpitem.[ch]: have a single virtual function,
      	GimpItem::convert(), which takes a newly duplicated item and the
      	destination image.
      
      	(gimp_item_convert): simply call GimpItem::convert() on the result
      	of gimp_item_duplicate().
      
      	(gimp_item_real_convert): set the item's new image.
      
      	* app/core/gimplayer.c (gimp_layer_convert)
      	* app/vectors/gimpvectors.c (gimp_vectors_convert): changed
      	accordingly and chain up after, not before doing our own stuff
      	so the old image is still available as item->image for stuff
      	like colormap conversion. Fixes bug #163879.
      4e942377
    • 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
    • Sven Neumann's avatar
      app/units.c app/core/gimp-units.c app/core/gimp.c added a utility function · 85727947
      Sven Neumann authored
      2005-01-13  Sven Neumann  <sven@gimp.org>
      
      	* app/units.c
      	* app/core/gimp-units.c
      	* app/core/gimp.c
      	* app/core/gimpunit.[ch]: added a utility function that frees the
      	memory allocated for user units. Minor cleanups.
      85727947
  3. 11 Jan, 2005 2 commits
    • Sven Neumann's avatar
      app/pdb/drawable_transform_cmds.c libgimp/gimpenums.h · f4306272
      Sven Neumann authored
      2005-01-11  Sven Neumann  <neumann@jpk.com>
      
      	* app/pdb/drawable_transform_cmds.c
      	* libgimp/gimpenums.h
      	* plug-ins/pygimp/gimpenums.py
      	* tools/pdbgen/enums.pl: regenerated after change of
      	GimpInterpolationType enum.
      f4306272
    • Sven Neumann's avatar
      app/base/base-enums.[ch] app/core/gimpdrawable-transform.c · f3166ba9
      Sven Neumann authored
      2005-01-11  Sven Neumann  <neumann@jpk.com>
      
      	* app/base/base-enums.[ch]
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpdrawable.c
      	* app/paint-funcs/Makefile.am
      	* app/paint-funcs/paint-funcs.[ch]
      	* app/paint-funcs/scale-funcs.[ch]: applied patch by Geert Jordaens
      	(after a good deal of reformatting for coding style compliance).
      	This factors the scale routines into their own file and adds a
      	sinc-based (Lanczos) interpolation routine (bug #162250).
      f3166ba9
  4. 10 Jan, 2005 1 commit
    • Sven Neumann's avatar
      explicitely mention the encoding. · f453be6b
      Sven Neumann authored
      2005-01-10  Sven Neumann  <sven@gimp.org>
      
      	* tools/pdbgen/pdb/text_tool.pdb: explicitely mention the encoding.
      
      	* app/pdb/text_tool_cmds.c
      	* libgimp/gimptexttool_pdb.c: regenerated.
      f453be6b
  5. 09 Jan, 2005 3 commits
  6. 08 Jan, 2005 3 commits
  7. 07 Jan, 2005 4 commits
    • Sven Neumann's avatar
      handle RTL layouts (fixes bug #162663). · 9167346a
      Sven Neumann authored
      2005-01-07  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcontainertreeview.c
      	(gimp_container_tree_view_button_press): handle RTL layouts (fixes
      	bug #162663).
      9167346a
    • Michael Natterer's avatar
      moved variables to local scopes, assign the snapped coords unconditionally · 2cd34bf1
      Michael Natterer authored
      2005-01-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-snap.c: moved variables to local scopes,
      	assign the snapped coords unconditionally (also if we don't snap),
      	cleanup.
      
      	(gimp_image_snap_rectangle): entirely rewritten to use local
      	mindist_x, mindist_y variables instead of fiddling with lots of
      	boolean variables. Implemented vectors snapping as if the required
      	GimpStroke functions existed (#defined them). Simon, your turn :)
      2cd34bf1
    • 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
    • Sven Neumann's avatar
      app/composite/gimp-composite-x86.h applied patch from Andreas Jochens that · 829fc5a0
      Sven Neumann authored
      2005-01-07  Sven Neumann  <sven@gimp.org>
      
      	* app/composite/gimp-composite-x86.h
      	* app/composite/gimp-composite-sse.c: applied patch from Andreas
      	Jochens that fixes the build on amd64 with gcc-4.0 (bug #163041).
      829fc5a0
  8. 04 Jan, 2005 1 commit
  9. 03 Jan, 2005 7 commits
    • Sven Neumann's avatar
      prepared code for fixing bug #162663. · a1818adf
      Sven Neumann authored
      2005-01-04  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimpcontainertreeview.c: prepared code for fixing
      	bug #162663.
      a1818adf
    • Sven Neumann's avatar
      made the code a little more robust by not relying on certain properties of · 9c65cb8f
      Sven Neumann authored
      2005-01-03  Sven Neumann  <sven@gimp.org>
      
      	* app/menus/plug-in-menus.c: made the code a little more robust by
      	not relying on certain properties of the menu path.
      9c65cb8f
    • Sven Neumann's avatar
      do actually add the new procedure gimp_gradient_is_editable(). · c314eef7
      Sven Neumann authored
      2005-01-03  Sven Neumann  <neumann@jpk.com>
      
      	* tools/pdbgen/pdb/gradient.pdb: do actually add the new procedure
      	gimp_gradient_is_editable().
      
      	* app/pdb/gradient_cmds.c
      	* app/pdb/internal_procs.c
      	* libgimp/gimpgradient_pdb.[ch]: regenerated.
      
      	* libgimp/gimp.def: updated.
      c314eef7
    • 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
    • Michael Natterer's avatar
      need to snap the coordinates before passing them to the active tool. · 8e1a1073
      Michael Natterer authored
      2005-01-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-autoscroll.c
      	(gimp_display_shell_autoscroll_timeout): need to snap the
      	coordinates before passing them to the active tool.
      8e1a1073
    • Michael Natterer's avatar
      app/paint/gimpbrushcore.c app/paint/gimppaintoptions.[ch] renamed · fcc85686
      Michael Natterer authored
      2005-01-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/paint/gimpbrushcore.c
      	* app/paint/gimppaintoptions.[ch]
      	* app/tools/gimppaintoptions-gui.c: renamed "invsize" to
      	"inverse-size" and reordered it to be after "size".
      fcc85686
  10. 02 Jan, 2005 7 commits
  11. 01 Jan, 2005 2 commits
  12. 31 Dec, 2004 5 commits
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · 8a651f34
      William Skaggs authored
      	* tools/pdbgen/pdb/gradient.pdb: added gradient-is-editable
      
      	* tools/pdbgen/pdb/brush.pdb
      	* tools/pdbgen/pdb/palette.pdb: changed mitch_misc to bill_misc
      	where correct.
      
      	* app/pdb/brush_cmds.c
      	* app/pdb/palette_cmds.c
      	* libgimp/gimpbrush_pdb.c
      	* libgimp/gimppalette_pdb.c: regenerated.
      8a651f34
    • William Skaggs's avatar
      Bill Skaggs <weskaggs@primate.ucdavis.edu> · b9a8adfd
      William Skaggs authored
      	* app/paint/gimpbrushcore.c: make previously committed change
      	in pressure-size relationship apply only to airbrush, as
      	intended.
      b9a8adfd
    • 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
      use the coordinates passed in the color drop callback instead of · c1ddf3ea
      Michael Natterer authored
      2004-12-31  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpfgbgeditor.[ch]: use the coordinates passed in
      	the color drop callback instead of remembering them in the
      	drag_motion handler.
      c1ddf3ea