1. 08 May, 2003 5 commits
    • Michael Natterer's avatar
      removed the remaining layer scale API. · ab0ac847
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.[ch]: removed the remaining layer scale API.
      
      	* app/core/gimpitem.[ch]: added the same functions here.
      
      	* app/core/gimpimage-scale.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      ab0ac847
    • Michael Natterer's avatar
      added width, height, offset_x and offset_y parameters. · 766930db
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpitem.[ch] (gimp_item_configure): added width,
      	height, offset_x and offset_y parameters.
      
      	* app/core/gimpdrawable.c
      	* app/vectors/gimpvectors.c: changed accordingly.
      
      	* app/tools/gimpfliptool.c: removed unused variable.
      766930db
    • Michael Natterer's avatar
      removed gimp_drawable_offsets(). · c1ab39a5
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed gimp_drawable_offsets().
      
      	* app/core/gimpitem.[ch]: added gimp_item_offsets().
      
      	* app/core/gimpdrawable-blend.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-histogram.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask-select.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-pick-color.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-transform.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimppaintcore.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpblendtool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimppainttool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/color.pdb
      	* tools/pdbgen/pdb/drawable.pdb: changed accordingly.
      
      	* app/pdb/color_cmds.c
      	* app/pdb/drawable_cmds.c: regenerated.
      c1ab39a5
    • Michael Natterer's avatar
      removed gimp_drawable_width,height(). · 54878b79
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: removed gimp_drawable_width,height().
      
      	* app/core/gimpitem.[ch]: added gimp_item_width,height().
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-bucket-fill.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-contiguous-region.c
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-preview.c
      	* app/core/gimpimage-projection.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimpimage.c
      	* app/core/gimpimagemap.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/core/gimplayermask.c
      	* app/core/gimpscanconvert.c
      	* app/display/gimpdisplay.c
      	* app/display/gimpdisplayshell-dnd.c
      	* app/display/gimpdisplayshell.c
      	* app/gui/channels-commands.c
      	* app/gui/layers-commands.c
      	* app/paint/gimpclone.c
      	* app/paint/gimpconvolve.c
      	* app/paint/gimpdodgeburn.c
      	* app/paint/gimppaintcore.c
      	* app/paint/gimpsmudge.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpbucketfilltool.c
      	* app/tools/gimpbycolorselecttool.c
      	* app/tools/gimpclonetool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfliptool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpinktool.c
      	* app/tools/gimprectselecttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimpselectioneditor.c
      	* app/widgets/gimptoolbox.c
      	* tools/pdbgen/pdb/drawable.pdb
      	* tools/pdbgen/pdb/selection.pdb: changed accordingly.
      
      	* app/pdb/drawable_cmds.c
      	* app/pdb/selection_cmds.c: regenerated.
      54878b79
    • Michael Natterer's avatar
      More transform virtualization preparation: · 4136e61d
      Michael Natterer authored
      2003-05-08  Michael Natterer  <mitch@gimp.org>
      
      	More transform virtualization preparation:
      
      	* app/core/gimpdrawable.[ch]: removed "width", "height", "offset_x"
      	and "offset_y"...
      
      	* app/core/gimpitem.[ch]: ...and added them here.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-preview.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpedit.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-mask.c
      	* app/core/gimpimage-merge.c
      	* app/core/gimpimage-qmask.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer-floating-sel.c
      	* app/core/gimplayer.c
      	* app/text/gimptext-compat.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptexttool.c
      	* app/tools/gimptransformtool.c
      	* app/widgets/gimppreviewrendererdrawable.c
      	* app/xcf/xcf-load.c
      	* app/xcf/xcf-save.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      4136e61d
  2. 07 May, 2003 4 commits
    • Michael Natterer's avatar
      when adding a layer mask from selection, don't crash if the layer is not · 1b2cc067
      Michael Natterer authored
      2003-05-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimplayer.c (gimp_layer_create_mask): when adding a
      	layer mask from selection, don't crash if the layer is not
      	entirely inside the image boundary but clip the copy_region()
      	accordingly. Fixes bug #112409. Added a local GimpDrawable variable
      	so we don't need to GIMP_DRAWABLE(layer) all the time.
      1b2cc067
    • Michael Natterer's avatar
      forgot to commit this one. · 7442ef50
      Michael Natterer authored
      2003-05-07  Michael Natterer  <mitch@gimp.org>
      
      	* app/vectors/gimpvectors.c: forgot to commit this one.
      7442ef50
    • Michael Natterer's avatar
      More transform stuff virtualization: · 323ed50c
      Michael Natterer authored
      2003-05-07  Michael Natterer  <mitch@gimp.org>
      
      	More transform stuff virtualization:
      
      	* app/core/gimpitem.[ch]: added new virtual function
      	GimpItem::resize().
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]: removed public resize functions
      	and implement resize() instead.
      
      	* app/core/gimpdrawable.c: implement resize() which contains
      	the common parts of layer/channel resizing.
      
      	* app/vectors/gimpvectors.c: added empty resize() implementation.
      
      	* app/core/gimpimage-crop.c
      	* app/core/gimpimage-resize.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      323ed50c
    • Michael Natterer's avatar
      Started to abstract item transformation so we can easily transform · 2a17435e
      Michael Natterer authored
      2003-05-07  Michael Natterer  <mitch@gimp.org>
      
      	Started to abstract item transformation so we can easily
      	transform multiple linked items later:
      
      	* app/core/gimpitem.[ch]: added new virtual function
      	GimpItem::scale() with the same signature as the former
      	gimp_layer_scale_lowlevel().
      
      	* app/core/gimpdrawable.c: implement scale() and do the
      	common parts of layer/channel scaling here.
      
      	* app/core/gimpchannel.[ch]
      	* app/core/gimplayer.[ch]: implement scale() for the
      	channel/layer specific parts of scaling.
      
      	* app/core/gimplayer.[ch]: renamed gimp_layer_scale() to
      	gimp_layer_scale_by_origin().
      
      	* app/vectors/gimpvectors.c: added empty scale() implementation.
      
      	* app/core/gimpimage-scale.c
      	* app/core/gimpimage-undo-push.c
      	* app/gui/layers-commands.c
      	* tools/pdbgen/pdb/layer.pdb: changed accordingly.
      
      	* app/pdb/layer_cmds.c: regenerated.
      
      	Unrelated:
      
      	* app/core/gimpimage-undo-push.c: fixed item rename undo to
      	take the size of the saved name into account. Removed old
      	path_undo stuff.
      2a17435e
  3. 06 May, 2003 2 commits
    • Michael Natterer's avatar
      removed GimpToolState (ACTIVE, INACTIVE). · f3747dba
      Michael Natterer authored
      2003-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/tools-enums.[ch]: removed GimpToolState (ACTIVE,
      	INACTIVE).
      
      	* app/tools/gimptoolcontrol.[ch]: replaced "GimpToolState state"
      	by "gboolean active".
      
      	* app/tools/gimptool.c (gimp_tool_control)
      	* app/tools/tool_manager.c (tool_manager_control_active): check
      	for gimp_tool_control_is_active() before calling
      	gimp_tool_control_halt().
      f3747dba
    • Michael Natterer's avatar
      added g_return_if_fail (gimp_tool_control_is_active (tool->control)) since · 1317d180
      Michael Natterer authored
      2003-05-06  Michael Natterer  <mitch@gimp.org>
      
      	* app/tools/gimptool.c (gimp_tool_motion): added
      	g_return_if_fail (gimp_tool_control_is_active (tool->control))
      	since that's a basic constraint of tool event handling.
      
      	* app/tools/gimpbezierselecttool.c
      	* app/tools/gimpeditselectiontool.c
      	* app/tools/gimpfreeselecttool.c
      	* app/tools/gimpfuzzyselecttool.c
      	* app/tools/gimpiscissorstool.c
      	* app/tools/gimpmagnifytool.c
      	* app/tools/gimprectselecttool.c (gimp_*_tool_motion):
      	removed checks for gimp_tool_control_is_active().
      1317d180
  4. 05 May, 2003 5 commits
    • Pedro Gimeno's avatar
      Cleanups. (gradient_calc_linear_factor): Apply the gradient to both sides · 9e7d814a
      Pedro Gimeno authored
      2003-05-05  Pedro Gimeno  <pggimeno@wanadoo.es>
      
      	* app/core/gimpdrawable-blend.c: Cleanups.
      	(gradient_calc_linear_factor): Apply the gradient to both sides
      	when Repeat is set to Sawtooth Wave. Fixes bug #112106.
      
      	* app/core/gimpdrawable-transform.c
      	(gimp_drawable_transform_tiles_affine): Fix copy'n'paste slip in
      	coordinates calculation for supersampling code. Transform the
      	pixel centers properly. Fixes bug #10466.
      
      	* app/tools/gimpdrawtool.c (gimp_draw_tool_draw_rectangle,
      	gimp_draw_tool_draw_arc): Ported the fix for bug #17904 from the
      	STABLE branch (off-by-one when drawing the rectangle/ellipse
      	previews).
      
      	* app/tools/gimpeditselectiontool.c: Renamed
      	gimp_edit_selection_tool_snap to
      	gimp_edit_selection_tool_calc_coords, as it is no longer used for
      	snapping.
      	(gimp_edit_selection_tool_calc_coords): Use floor instead of
      	rounding. Callers changed to remove rounding, as it deals with
      	gdoubles directly. Thanks to Mitch for the help refining this
      	one. Fixes bug #17906.
      9e7d814a
    • Michael Natterer's avatar
      some more code cleanup. · f1d317a3
      Michael Natterer authored
      2003-05-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-scale.c: some more code cleanup.
      f1d317a3
    • Michael Natterer's avatar
      new utility function which takes GimpZoomType and zooms "scalesrc" and · 1204865d
      Michael Natterer authored
      2003-05-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell-scale.[ch]
      	(gimp_display_shell_scale_zoom_fraction): new utility function
      	which takes GimpZoomType and zooms "scalesrc" and "scaledest".
      	(gimp_display_shell_scale_calc_fraction): new utility function
      	which takes an exact double scale factor and calculates "scalesrc"
      	and "scaledest".
      
      	(gimp_display_shell_scale): use the first.
      	(gimp_display_shell_scale_fit): use the second.
      
      	* app/tools/gimpmagnifytool.[ch]: use the first to click-zoom and
      	the second to area-zoom. Fixes bug #112115. Removed zoom_in() and
      	zoom_out() utiliy functions. Removed "GimpZoomType op" from the
      	GimpMagnifyTool struct. Cleanup.
      1204865d
    • Michael Natterer's avatar
      don't change the passed GimpCoords if we didn't snap. · 5067bec9
      Michael Natterer authored
      2003-05-05  Michael Natterer  <mitch@gimp.org>
      
      	* app/display/gimpdisplayshell.c (gimp_display_shell_snap_coords):
      	don't change the passed GimpCoords if we didn't snap.
      5067bec9
    • Christophe Merlet's avatar
      Updated French translation. · d55ef551
      Christophe Merlet authored
      d55ef551
  5. 03 May, 2003 4 commits
    • Michael Natterer's avatar
      set GDK_HINT_USER_POS for all session managed dialogs, not only for those · 95f8fca1
      Michael Natterer authored
      2003-05-04  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.c: set GDK_HINT_USER_POS for all
      	session managed dialogs, not only for those which already have
      	saved session info. This way the dialogs keep their position
      	acrosss hide/show within the same session, even if they have never
      	been used before.
      
      	* app/gui/dialogs.c: added entries for the file open/save dialogs.
      	Fixed some entries.
      
      	* app/gui/file-dialog-utils.[ch]
      	* app/gui/file-open-dialog.c
      	* app/gui/file-save-dialog.c: register the file dialogs with
      	the dialog factory.
      95f8fca1
    • Michael Natterer's avatar
      Update the splash before calling plug_in_query() and plug_in_init() · 31becaf4
      Michael Natterer authored
      2003-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/plug-in/plug-ins.c (plug_ins_init): Update the splash before
      	calling plug_in_query() and plug_in_init() (applied a modified
      	patch from Raphael Quinet). Fixes bug #112156.
      31becaf4
    • Michael Natterer's avatar
      added "dockable_added", "dockable_removed" and "dockable_reordered" · a51bff58
      Michael Natterer authored
      2003-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdockbook.[ch]: added "dockable_added",
      	"dockable_removed" and "dockable_reordered" signals and emit them.
      
      	* app/widgets/gimpimagedock.[ch]: implement GimpDock::book_added()
      	and GimpDock::book_removed(). Connect to the above signals and
      	update the window title as proposed in bug #111971. Idle-update
      	the title so subsequent changes are compressed. Fixes bug #111971.
      
      	* app/widgets/gimpdock.c: cleanup.
      a51bff58
    • Michael Natterer's avatar
      app/gui/dialogs.c app/tools/gimphistogramtool.c register their dialogs · c18b6554
      Michael Natterer authored
      2003-05-03  Michael Natterer  <mitch@gimp.org>
      
      	* app/gui/dialogs.c
      	* app/tools/gimphistogramtool.c
      	* app/tools/gimpmeasuretool.c: register their dialogs too.
      c18b6554
  6. 02 May, 2003 4 commits
    • Michael Natterer's avatar
      added new function gimp_dialog_factory_add_foreign() which adds a dialog · fefaf61b
      Michael Natterer authored
      2003-05-02  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.[ch]: added new function
      	gimp_dialog_factory_add_foreign() which adds a dialog that was not
      	created by the factory itself. Its identifier however must be
      	registered with the factory. Connect to all toplevel dialogs'
      	"configure_event" and remember the resulting window geometry so we
      	get session management for *all* dialogs, not only for those which
      	were open on exit.
      
      	* app/gui/dialogs.c: added the "File New" dialog. Added foreign
      	entries (without constructor) for all dialogs opened by tools.
      
      	* app/gui/dialogs-constructors.[ch]: added a constructor for
      	the file_new dialog.
      
      	* app/gui/file-new-dialog.[ch]: renamed file_new_dialog_create()
      	to file_new_dialog_new() and removed the gimage and template
      	paramaters. Adder new function file_new_dialog_set() to set
      	gimage and template after creation.
      
      	* app/gui/file-commands.c
      	* app/gui/templates-commands.c: changed accordingly.
      
      	* app/tools/gimpimagemaptool.[ch]
      	* app/tools/gimptransformtool.[ch]: added
      	"const gchar *shell_identifier" to the tool structs. Register the
      	tool dialogs using gimp_dialog_factory_add_foreign().
      
      	* app/tools/gimpbrightnesscontrasttool.c
      	* app/tools/gimpcolorbalancetool.c
      	* app/tools/gimpcurvestool.c
      	* app/tools/gimphuesaturationtool.c
      	* app/tools/gimplevelstool.c
      	* app/tools/gimpperspectivetool.c
      	* app/tools/gimpposterizetool.c
      	* app/tools/gimprotatetool.c
      	* app/tools/gimpscaletool.c
      	* app/tools/gimpsheartool.c
      	* app/tools/gimpthresholdtool.c: set "shell_identifier" so the
      	dialogs become session managed. Fixes bug #61091.
      
      	* app/tools/gimpcroptool.c: register the crop dialog with the
      	dialog factory. Fixes bug #52849.
      
      	* app/tools/gimpcolorpickertool.c: ditto.
      
      	Unrelated:
      
      	* app/tools/gimptool.c: no need to cast the return value of
      	g_object_new().
      fefaf61b
    • Pedro Gimeno's avatar
      Save brush pointer before first stroke and restore it after. Fixes bug · a115c7b5
      Pedro Gimeno authored
      2003-05-02  Pedro Gimeno  <pggimeno@wanadoo.es>
      
      	* app/paint/gimppaintcore-stroke.c (gimp_paint_core_stroke,
      	gimp_paint_core_stroke_vectors): Save brush pointer before first
      	stroke and restore it after. Fixes bug #102162.
      
      	* plug-ins/common/flarefx.c (FlareFX): Use
      	gimp_fixme_preview_do_row instead of memcpy. Fixes bug #112042 for
      	this plug-in.
      
      	* plug-ins/common/jigsaw.c: Several cleanups.
      	(jigsaw_values_changed): New function as a result of the cleanups.
      	(jigsaw): Use gimp_fixme_preview_do_row instead of memcpy.
      	Together with the fix to flarefx, fixes bug #112042.
      	(draw_jigsaw): Warn if passed a NULL buffer (solves the crash
      	reported in bug #112012).
      
      	* plug-ins/gimpressionist/orientation.c: Slightly reformatted.
      	(create_orientationpage): Modify orientfirst/orientlast instead of
      	sizefirst/sizelast in the corresponding adjustments. Fixes bug
      	#112061.
      a115c7b5
    • Manish Singh's avatar
      Query fontconfig directly for the font list, avoiding scanning the · 35111238
      Manish Singh authored
      2003-05-01  Manish Singh  <yosh@gimp.org>
      
              * app/text/gimpfontlist.c: Query fontconfig directly for the font
              list, avoiding scanning the internal fontconfig list over and over
              again. There are differences in the font list that the old and new
              code produce however. The new code will generate descriptions for
              more fonts, and some of the styles will be different. Also, pango
              font description strings aren't specific enough for all cases, so
              a font name may appear more than once in the list. I'm not sure
              how to solve this best, but this code is Good Enough (TM) for now.
      35111238
    • Vincent van Adrighem's avatar
      Dutch translation updated by Branko Collin. · d985eb5e
      Vincent van Adrighem authored
      2003-05-02  Vincent van Adrighem  <V.vanAdrighem@dirck.mine.nu>
      
      	* nl.po: Dutch translation updated by Branko Collin.
      d985eb5e
  7. 30 Apr, 2003 2 commits
  8. 29 Apr, 2003 3 commits
  9. 28 Apr, 2003 4 commits
  10. 27 Apr, 2003 2 commits
  11. 26 Apr, 2003 1 commit
  12. 25 Apr, 2003 3 commits
  13. 23 Apr, 2003 1 commit