1. 20 May, 2003 7 commits
    • Michael Natterer's avatar
      don't default to clip_result == TRUE (unlike the other transform · 966fb559
      Michael Natterer authored
      2003-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpchannel.c (gimp_channel_rotate): don't default to
      	clip_result == TRUE (unlike the other transform functions).
      
      	* app/core/gimpdrawable-transform.c
      	(gimp_drawable_transform_tiles_rotate): fixed offset calculation.
      
      	* app/core/gimpimage-rotate.c: change the image size *after* all items
      	are rotated. Adjust all items' offsets after rotation. Rotate the
      	resolutions too. Seems to work now and fixes bug #6101.
      
      	* app/core/gimpimage.c (gimp_image_size_changed): emit
      	"size_changed" on all vectors.
      
      	* app/core/gimpitem-linked.[ch]: added gimp_item_linked_rotate().
      
      	* app/gui/drawable-commands.c: flip and rotate linked items too.
      
      	* app/vectors/gimpvectors.c (gimp_vectors_rotate): fixed rotation
      	angles.
      
      	Unrelated:
      
      	* app/core/gimpimage-merge.c: don't #include "path.h".
      966fb559
    • Sven Neumann's avatar
      fixed algorithm for GIMP_ROTATE_180. · a996ba39
      Sven Neumann authored
      2003-05-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-transform.c
      	(gimp_drawable_transform_tiles_rotate): fixed algorithm for
      	GIMP_ROTATE_180.
      a996ba39
    • Sven Neumann's avatar
      no need to include gimp-intl.h. · 4e335f7f
      Sven Neumann authored
      2003-05-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpimage-flip.c: no need to include gimp-intl.h.
      
      	* app/core/gimpimage-rotate.c: change the image size if needed;
      	implemented rotation of guides.
      
      	* app/vectors/gimpvectors.c: implemented rotation of vectors.
      4e335f7f
    • Michael Natterer's avatar
      remember the guide's orientation in the guide undo. Needed for · f46c16c8
      Michael Natterer authored
      2003-05-20  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-undo-push.c: remember the guide's orientation
      	in the guide undo. Needed for gimp_image_rotate().
      f46c16c8
    • Sven Neumann's avatar
      added new enum GimpRotationType. · 1de667f0
      Sven Neumann authored
      2003-05-20  Sven Neumann  <sven@gimp.org>
      
      	* app/core/core-enums.[ch]: added new enum GimpRotationType.
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-rotate.[ch]: new files.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-transform.[ch]
      	* app/core/gimpdrawable.c
      	* app/core/gimpitem.[ch]
      	* app/core/gimplayer.c
      	* app/vectors/gimpvectors.c: added GimpItem::rotate. Still work in
      	progress.
      
      	* plug-ins/common/rotate.c: don't install any menu entries. The
      	plug-in is only kept around to provide plug_in_rotate for backward
      	compatibility.
      
      	* app/gui/drawable-commands.[ch]
      	* app/gui/image-commands.[ch]
      	* app/gui/image-menu.c: use the new rotate implementation and use
      	stock icons for the menu entries. Fixes bug #57797.
      1de667f0
    • Michael Natterer's avatar
      Some color API cleanup: · 470947f9
      Michael Natterer authored
      2003-05-20  Michael Natterer  <mitch@gimp.org>
      
      	Some color API cleanup:
      
      	* libgimpcolor/gimpcolortypes.h: added struct GimpHSL. All values
      	are doubles in a [0.0..1.0] range.
      
      	* libgimpcolor/gimpcolorspace.[ch]: changed the GimpRGB <-> HSL
      	functions to use the new struct instead of separate hue, saturation
      	and lightness doubles. Note that the hue range has changed from
      	[0.0..360.0] to [0.0..1.0].
      
      	* app/base/colorize.c (colorize_calculate)
      	* plug-ins/common/AlienMap2.c (transform): changed accordingly.
      470947f9
    • Jan Morén's avatar
      Updated Swedish translation. · 6a59d7c7
      Jan Morén authored
      2003-05-20  Jan Morén  <jan.moren@lucs.lu.se>
      
               * sv.po: Updated Swedish translation.
      6a59d7c7
  2. 19 May, 2003 8 commits
    • Manish Singh's avatar
      Add SIOD banner to console startup. · 0df35c42
      Manish Singh authored
      2003-05-19  Manish Singh  <yosh@gimp.org>
      
              * plug-ins/script-fu/script-fu-console.c: Add SIOD banner to console
              startup.
      0df35c42
    • Michael Natterer's avatar
      eek, forgot to commit this file. · 1b107d83
      Michael Natterer authored
      2003-05-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/drawable-commands.h: eek, forgot to commit this file.
      1b107d83
    • Michael Natterer's avatar
      moved the image flip entries to the Image->Transform submenu and added · 67b00677
      Michael Natterer authored
      2003-05-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/image-menu.c: moved the image flip entries to the
      	Image->Transform submenu and added flip entries to
      	Layer->Transform. Cleaned up the transform submenus.
      
      	* app/gui/drawable-commands.[ch]: added
      	drawable_flip_cmd_callback().
      
      	* tools/pdbgen/pdb/image.pdb: added a PDB wrapper for
      	gimp_image_flip().
      
      	* libgimp/gimpimage_pdb.[ch]
      	* app/pdb/image_cmds.c
      	* app/pdb/internal_procs.c: regenerated.
      67b00677
    • Sven Neumann's avatar
      fixed sense of assertions; argh. · 48b3b263
      Sven Neumann authored
      2003-05-19  Sven Neumann  <sven@gimp.org>
      
      	* app/base/temp-buf.c (temp_buf_to_color) (temp_buf_to_gray):
      	fixed sense of assertions; argh.
      48b3b263
    • Sven Neumann's avatar
      Added new colorize icons. · 9453d69c
      Sven Neumann authored
      9453d69c
    • Michael Natterer's avatar
      fixed to work like gimp_hls_to_rgb_int() (does the right thing now for the · 49b85178
      Michael Natterer authored
      2003-05-19  Michael Natterer  <mitch@gimp.org>
      
      	* libgimpcolor/gimpcolorspace.c (gimp_hsl_to_rgb): fixed to work
      	like gimp_hls_to_rgb_int() (does the right thing now for the
      	saturation == 0 case). Some minor cleanups.
      
      	Implemented "Colorize" as suggested in bug #20509. It's not a
      	toggle in the "Hue/Saturation" tool dialog (which would be a gross
      	hack IMHO) but a separate tool. Fixes bug #20509.
      
      	* app/base/Makefile.am
      	* app/base/base-types.h
      	* app/base/colorize.[ch]: the actual mapping function lives
      	here. Its algorithm was taken from the "colorify" plug-in.
      
      	* app/tools/Makefile.am
      	* app/tools/gimpcolorizetool.[ch]: the tool.
      
      	* app/tools/tools.c: register it.
      
      	* app/gui/dialogs.c: session-manage its dialog.
      
      	* libgimpwidgets/gimpstock.[ch]
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/tools/stock-tool-colorize-16.png
      	* themes/Default/images/tools/stock-tool-colorize-22.png: new
      	icons from Jimmac.
      
      	Unrelated:
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimpthresholdtool.c: don't #include "tool_manager.h"
      49b85178
    • Jan Morén's avatar
      Updated Swedish translation. · 930f383d
      Jan Morén authored
      2003-05-19  Jan Morén  <jan.moren@lucs.lu.se>
      
               * sv.po: Updated Swedish translation.
      930f383d
    • Manish Singh's avatar
      remove glibconfig.h inline check, it hasn't worked for a long time. · 5e88b31d
      Manish Singh authored
      2003-05-19  Manish Singh  <yosh@gimp.org>
      
              * configure.in: remove glibconfig.h inline check, it hasn't worked
              for a long time.
      
              * tools/authorsgen/contributors: added George J. Carrette, author of
              SIOD.
      5e88b31d
  3. 18 May, 2003 16 commits
    • Sven Neumann's avatar
      libgimpwidgets/libgimpwidgets-sections.txt added new flip icons. · ba6e4404
      Sven Neumann authored
      2003-05-19  Sven Neumann  <sven@gimp.org>
      
      	* libgimpwidgets/libgimpwidgets-sections.txt
      	* libgimpwidgets/tmpl/gimpstock.sgml: added new flip icons.
      ba6e4404
    • Jakub Steiner's avatar
      fix shadows a little · 0c3b307b
      Jakub Steiner authored
      2003-05-19  Jakub Steiner <jimmac@ximian.com>
      
      * themes/Default/images/stock-flip-horizontal-16.png:
      * themes/Default/images/stock-flip-vertical-16.png: fix shadows
        a little
      0c3b307b
    • Simon Budig's avatar
      Implemented closed paths. Not yet available in a sane manner via the UI. · 0174bb6d
      Simon Budig authored
      2003-05-19  Simon Budig  <simon@gimp.org>
      
      	* app/vectors/gimpbezierstroke.[ch]: Implemented closed paths. Not
      	yet available in a sane manner via the UI. Added the last missing
      	line from gimp_bezier_stroke_interpolate ().
      
      	* app/tools/gimpvectortool.c: Changed accordingly
      
      	* app/vectors/gimpstroke.[ch]
      	* app/vectors/gimpvectors.[ch]: removed Tabs.
      0174bb6d
    • Michael Natterer's avatar
      set gimage->qmask_state to TRUE if a channel's name is "Qmask". Fixes bug · a354e7f4
      Michael Natterer authored
      2003-05-19  Michael Natterer  <mitch@gimp.org>
      
      	* app/xcf/xcf-load.c (xcf_load_channel): set gimage->qmask_state
      	to TRUE if a channel's name is "Qmask". Fixes bug #113240.
      a354e7f4
    • Michael Natterer's avatar
      snap correctly to the bottom and right sides of the rectangle. Also snap · 272ee133
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-guides.c (gimp_image_snap_rectangle): snap
      	correctly to the bottom and right sides of the rectangle. Also
      	snap to the closer guide if we snap twice on one axis.
      	Fixes bug #113233.
      
      	All snapping functions: use ROUND() instead of truncating the
      	double coords.
      272ee133
    • Michael Natterer's avatar
      update the cursor on GDK_ENTER_NOTIFY. · c12bec70
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-callbacks.c
      	(gimp_display_shell_canvas_tool_events): update the cursor on
      	GDK_ENTER_NOTIFY.
      
      	* app/display/gimpdisplayshell-cursor.c
      	(gimp_display_shell_update_cursor): argh, "0" coordinates are
      	*inside* the canvas.
      
      	Together fixes bug #113239.
      c12bec70
    • Michael Natterer's avatar
      removed GIMP_TARGET_PALETTE. Fixes bug #113237. · 73e5a890
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimppaletteeditor.c (color_palette_target_table):
      	removed GIMP_TARGET_PALETTE. Fixes bug #113237.
      73e5a890
    • Michael Natterer's avatar
      push a colormap undo if the image was INDEXED. Fixes bug #113236. Minor · a27b8850
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-convert.c (gimp_image_convert): push a
      	colormap undo if the image was INDEXED. Fixes bug #113236.
      	Minor Cleanups.
      a27b8850
    • Michael Natterer's avatar
      Implemented "Flip Image". Fixes bug #23179: · 1358fafb
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	Implemented "Flip Image". Fixes bug #23179:
      
      	* app/core/core-enums.[ch]: added GIMP_UNDO_GROUP_IMAGE_FLIP.
      
      	* app/core/Makefile.am
      	* app/core/gimpimage-flip.[ch]: new files implementing
      	gimp_image_flip().
      
      	* app/gui/image-menu.c
      	* app/gui/image-commands.[ch]: added it to the "Image" menu.
      
      	* themes/Default/images/Makefile.am
      	* themes/Default/images/stock-flip-horizontal-16.png
      	* themes/Default/images/stock-flip-vertical-16.png
      	* libgimpwidgets/gimpstock.[ch]: added icons for the new
      	menu items.
      
      	Bugs found while hacking the stuff above:
      
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste):
      	only call gimp_layer_add_alpha() if the pasted tiles have alpha.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_channel_mod): fixed to
      	do the right thing if the channel is the selection mask.
      1358fafb
    • Pedro Gimeno's avatar
      Translated Spanish comments to English and globally cleaned-up to ease · 1a8b0d3b
      Pedro Gimeno authored
      2003-05-18  Pedro Gimeno  <pggimeno@wanadoo.es>
      
      	* plug-ins/common/psd-save.c: Translated Spanish comments to
      	English and globally cleaned-up to ease further manipulation.
      1a8b0d3b
    • Michael Natterer's avatar
      changed to expect all points (also the first one) in "H, A, H" order. · 146a51c5
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/gimpbezierstroke.[ch]
      	(gimp_bezier_stroke_new_from_coords): changed to expect all points
      	(also the first one) in "H, A, H" order.  Ignore the first coord
      	in the array for now. Added "gboolean closed" parameter.
      
      	* app/xcf/xcf-load.c
      	* tools/pdbgen/pdb/paths.pdb: shuffle the legacy path point arrays
      	around before creating strokes so they match the new order.
      
      	* app/pdb/paths_cmds.c: regenerated.
      146a51c5
    • Michael Natterer's avatar
      app/display/gimpdisplayshell-dnd.[ch] enabled dropping of vectors to the · 45973682
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-dnd.[ch]
      	* app/display/gimpdisplayshell.c: enabled dropping of vectors to
      	the display to copy them between images.
      45973682
    • Michael Natterer's avatar
      added BOOLEAN: OBJECT, POINTER. · 256701f6
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpmarshal.list: added BOOLEAN: OBJECT, POINTER.
      
      	* app/widgets/gimpcontainerview.[ch]: added a boolean return
      	value to GimpContainerView::select_item() which indicates if
      	the select operation was successful.
      
      	* app/widgets/gimpchanneltreeview.c
      	* app/widgets/gimpcontainereditor.c
      	* app/widgets/gimpcontainergridview.c
      	* app/widgets/gimpcontainertreeview.c
      	* app/widgets/gimpitemtreeview.c
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpvectorstreeview.c: changed accordingly.
      
      	* app/widgets/gimpdrawabletreeview.c: ditto. Removed the
      	tree_view's select_function because it was only constraining the
      	widget, not the underlying select operation. Instead, implement
      	GimpContainerView::select_item() and disallow anything but the
      	floating selection to be selected. Also re-enabled the
      	"floating_selection_changed" callback and explicitely set the
      	active item so the button states get updated. Fixes bug #112487.
      256701f6
    • Michael Natterer's avatar
      added new function gimp_vectors_convert() which duplicates a GimpVectors · bda46bbc
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/gimpvectors.[ch]: added new function
      	gimp_vectors_convert() which duplicates a GimpVectors for another
      	image.
      
      	* app/widgets/gimpvectorstreeview.c
      	(gimp_vectors_tree_view_class_init): use it as
      	GimpItemTreeView::convert_item() implementation. Enables
      	DND-copying of vectors between images.
      bda46bbc
    • Michael Natterer's avatar
      app/tools/gimptransformtool.c removed old path undo stuff. · c44bf94c
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptransformtool.c
      	* app/tools/gimptransformtool-undo.[ch]: removed old path undo stuff.
      c44bf94c
    • Michael Natterer's avatar
      call gimp_item_set_image() on the new layer's mask too if it exists. · 4624d496
      Michael Natterer authored
      2003-05-18  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.c (gimp_layer_new_from_drawable): call
      	gimp_item_set_image() on the new layer's mask too if it exists.
      4624d496
  4. 17 May, 2003 4 commits
    • Michael Natterer's avatar
      Fixed File->Revert, which was completely broken before: · 9252db58
      Michael Natterer authored
      2003-05-17  Michael Natterer  <mitch@gimp.org>
      
      	Fixed File->Revert, which was completely broken before:
      
      	* app/gui/file-commands.c (file_revert_confirm_callback): set the
      	new image on all GimpContexts which had the old image set.  Unref
      	the new image after the displays are reconnected.
      
      	Added some paranoia code for similar future situations (the
      	functions below were not broken, but affected by the above bug):
      
      	* app/display/gimpdisplay-handlers.c (gimp_display_disconnect):
      	set gdisp->gimage to NULL before unrefing the image.
      
      	* app/widgets/gimpimagedock.c (gimp_image_dock_image_changed):
      	unref the gimage pointer returned by g_object_get() only if it is
      	non-NULL. Cleanup.
      9252db58
    • Michael Natterer's avatar
      treat the empty string as NULL filename. Fixes bug #113179. · 00645531
      Michael Natterer authored
      2003-05-17  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.c (gimp_image_set_filename): treat the empty
      	string as NULL filename. Fixes bug #113179.
      00645531
    • Dave Neary's avatar
      plug-ins/script-fu/scripts/alien-glow-button.scm · b53cdf5f
      Dave Neary authored
      
      2003-05-17  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/script-fu/scripts/alien-glow-button.scm
              * plug-ins/script-fu/scripts/beveled-button.scm
              * plug-ins/script-fu/scripts/beveled-pattern-button.scm:
              Applied patch from Tor Lilliqvist <tml@iki.fi> which
              fixes the same problem as that reported in bug #77572.
      b53cdf5f
    • Pedro Gimeno's avatar
      This change was not committed because of a slip in the CVS command line: · e34d3621
      Pedro Gimeno authored
      2003-05-14  Pedro Gimeno  <pggimeno@wanadoo.es>
      
      	This change was not committed because of a slip in the CVS
      	command line:
      
      	* plug-ins/common/blur.c (blur): Ported a change from STABLE
      	branch that might fix bug #84731.
      e34d3621
  5. 16 May, 2003 5 commits
    • Dave Neary's avatar
      Applied patch from Tor Lilliqvist <tml@iki.fi> to fix bug #77572. · b0542b90
      Dave Neary authored
      
      2003-05-16  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/script-fu/scripts/pupi-button.scm: Applied
              patch from Tor Lilliqvist <tml@iki.fi> to fix bug #77572.
      b0542b90
    • Dave Neary's avatar
      plug-ins/common/edge.c plug-ins/common/tiff.c plug-ins/common/mail.c · 2e7c6020
      Dave Neary authored
      
      2003-05-16  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/common/edge.c
              * plug-ins/common/tiff.c
              * plug-ins/common/mail.c
              * plug-ins/webbrowser/webbrowser.c: Removed GPL
              conflicting parts of permission notices on these files,
              in line with what has been said in bug #83362.
      2e7c6020
    • Dave Neary's avatar
      Changed licence for Graeme Gill's code in this filter. Fixes part of bug · d5d065e0
      Dave Neary authored
      
      
      2003-05-16  Dave Neary  <bolsh@gimp.org>
      
              * plug-ins/common/nlfilt.c: Changed licence for Graeme
              Gill's code in this filter. Fixes part of bug #83362.
      d5d065e0
    • Michael Natterer's avatar
      app/vectors/gimpbezierstroke.[ch] app/vectors/gimpstroke.[ch] · 0c673105
      Michael Natterer authored
      2003-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/gimpbezierstroke.[ch]
      	* app/vectors/gimpstroke.[ch]
      	* app/vectors/gimpvectors-preview.c
      	* app/vectors/gimpvectors.[ch]: massive cleanup / code review:
      	Made default implementations real ones. Don't add "const" to
      	call-by-value parameters. Iterate lists using for() loops. Moved
      	variables to local scopes. Removed tabs. Indentation. Stuff...
      
      	* app/vectors/gimpstroke.[ch]: added unused "gboolean closed"
      	member.
      0c673105
    • Michael Natterer's avatar
      added "gboolean cut_image" parameter so we can float selections without · 9981c464
      Michael Natterer authored
      2003-05-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage-mask.[ch] (gimp_image_mask_extract): added
      	"gboolean cut_image" parameter so we can float selections
      	without cutting them from the original drawable.
      
      	* app/gui/select-commands.c
      	* tools/pdbgen/pdb/selection.pdb: pass cut_image == TRUE.
      
      	* app/pdb/selection_cmds.c: regenerated.
      
      	* app/tools/tools-enums.[ch]: added SELECTION_MOVE_COPY value
      	to the SelectOps enum.
      
      	* app/tools/gimpselectiontool.c: use the new mode when
      	<ctrl>+<alt>-dragging a selction (yes, this is evil but there are
      	no modifiers left).
      
      	* app/tools/gimpeditselectiontool.[ch]: extended EditType enum by
      	EDIT_MASK_COPY_TO_LAYER_TRANSLATE and pass cut_image == FALSE if
      	it's passed to init_edit_selection().
      
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimprectselecttool.c: pass the new mode to
      	GimpEditSelectionTool.
      9981c464