1. 16 Mar, 2004 1 commit
  2. 15 Mar, 2004 21 commits
    • Michael Natterer's avatar
      set a fixed width on the "filename" and "info" labels so they clip their · d227b41e
      Michael Natterer authored
      2004-03-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpthumbbox.c (gimp_thumb_box_new): set a fixed
      	width on the "filename" and "info" labels so they clip their texts
      	rather than expand the thumb_box when the text is too wide
      	(spotted by Jonathan Blandford).
      d227b41e
    • Michael Natterer's avatar
      app/app-docs.sgml app/app-sections.txt updated. · b6d5a948
      Michael Natterer authored
      2004-03-16  Michael Natterer  <mitch@gimp.org>
      
      	* app/app-docs.sgml
      	* app/app-sections.txt
      	* app/app.types: updated.
      b6d5a948
    • Michael Natterer's avatar
      replaced GIMP_UNDO_LAYER_MOD and GIMP_UNDO_CHANNEL_MOD by · 5ef7c774
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): replaced
      	GIMP_UNDO_LAYER_MOD and GIMP_UNDO_CHANNEL_MOD by
      	GIMP_UNDO_DRAWABLE_MOD.
      
      	* app/core/gimpimage-undo-push.[ch]: ditto: replaced
      	gimp_image_undo_push_layer_mod() and
      	gimp_image_undo_push_channel_mod() by
      	gimp_image_undo_push_drawable_mod().
      
      	* app/core/gimpdrawable.[ch]: added undo_desc strings for "resize"
      	and "scale" to the GimpDrawableClass struct.
      
      	(gimp_drawable_scale)
      	(gimp_drawable_resize): pass push_undo = TRUE to
      	gimp_drawable_set_tiles_full() and use the undo_desc from the
      	class.
      
      	(gimp_drawable_real_set_tiles): push a GIMP_UNDO_DRAWABLE_MOD here...
      
      	* app/core/gimpchannel.c
      	* app/core/gimplayer.c: ...and don't push undos in
      	GimpItem::scale(), GimpItem::resize(), GimpDrawable::set_tiles().
      
      	* app/core/gimpchannel.c: Removed even more bounds_known = FALSE
      	assignments from functions which already call
      	gimp_drawable_set_tiles().
      5ef7c774
    • Michael Natterer's avatar
      emit "update" signals from the drawable before and after setting tiles and · 59b77c35
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.c (gimp_drawable_set_tiles_full): emit
      	"update" signals from the drawable before and after setting tiles
      	and offsets.
      
      	* app/core/gimpdrawable-offset.c (gimp_drawable_offset)
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste)
      	* app/core/gimpimage-undo-push.c (undo_pop_layer_mod, _channel_mod)
      	* app/text/gimptextlayer.c (gimp_text_layer_render)
      	* app/tools/gimptransformtool.c (gimp_transform_tool_doit):
      	removed calls to gimp_drawable_update().
      
      	* app/core/gimpdrawable-offset.c (gimp_drawable_offset): don't
      	push an undo step before calling gimp_drawable_set_tiles()
      	but simply pass push_undo == TRUE and the undo_desc.
      59b77c35
    • Michael Natterer's avatar
      added "offset_x" and "offset_y" parameters to GimpDrawable::set_tiles(). · 1ef5fa93
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.[ch]: added "offset_x" and "offset_y"
      	parameters to GimpDrawable::set_tiles().
      
      	(gimp_drawable_set_tiles): removed the "GimpImageType" parameter.
      
      	(gimp_drawable_set_tiles_full): new function adding type, offset_x
      	and offset_y parameters.
      
      	(gimp_drawable_real_set_tiles): set the drawable's offsets from
      	the offset parameters and its size from the passed TileManager's
      	size. Emit "size_changed" accordingly.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable-offset.c
      	* app/core/gimpdrawable-transform.c
      	* app/core/gimpimage-convert.c
      	* app/core/gimpimage-undo-push.c
      	* app/core/gimplayer.c
      	* app/text/gimptextlayer.c
      	* app/tools/gimptransformtool.c: changed accordingly: removed
      	calls to gimp_viewable_size_changed() and all sorts of hackish
      	assignments of the drawable's width/height/offset_x/offset_y
      	properties.
      1ef5fa93
    • Michael Natterer's avatar
      don't call gimp_image_flush(). · 79776036
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/text/gimptextlayer.c (gimp_text_layer_render): don't call
      	gimp_image_flush().
      
      	* app/tools/gimpxttool.c (gimp_text_tool_apply): call it here
      	instead.
      
      	Now that we have a common place that exchanges drawable->tiles,
      	we can abstract away boundary invalidation for this operation:
      
      	* app/core/gimpdrawable.c (gimp_drawable_real_set_tiles):
      	call gimp_drawable_invalidate_boundary() before setting
      	the new tiles.
      
      	* app/core/gimpchannel.c (gimp_channel_set_tiles)
      	* app/core/gimpdrawable-transform.c (gimp_drawable_transform_paste)
      	* app/core/gimpimage-undo-push.c (undo_pop_layer_mod)
      	* app/core/gimplayer.c (gimp_layer_scale) (gimp_layer_resize)
      	(gimp_layer_flip) (gimp_layer_rotate) (gimp_layer_transform)
      	* app/text/gimptextlayer.c (gimp_text_layer_render): removed
      	calls to gimp_drawable_invalidate_boundary() from all functions
      	which finally call gimp_drawable_real_set_tiles().
      
      	* app/tools/gimptransformtool.c (gimp_transform_tool_doit): no
      	need to set channel->bounds_known to FALSE, because
      	gimp_drawable_set_tiles() already did this.
      79776036
    • Sven Neumann's avatar
      added nl.po (Dutch). · 8bdc3e0c
      Sven Neumann authored
      2004-03-15  Sven Neumann  <sven@gimp.org>
      
      	* Makefile.am (tips_POFILES): added nl.po (Dutch).
      8bdc3e0c
    • Sven Neumann's avatar
      moved global variables to a struct and optimized the area exposed from · 081f96b5
      Sven Neumann authored
      2004-03-15  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/splash.c: moved global variables to a struct and
      	optimized the area exposed from splash_update().
      081f96b5
    • Michael Natterer's avatar
      added "gboolean alpha_changed" to GimpImageFlushAccumulator. Install an · 800b7a5d
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpimage.[ch]: added "gboolean alpha_changed" to
      	GimpImageFlushAccumulator. Install an "alpha_changed" handler
      	on gimage->layers and set flush_accum.alpha_changed = TRUE
      	whenever the image's *only* layer changed its alpha.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_layer_mod)
      	* app/core/gimplayer.c (gimp_layer_add_alpha): removed
      	explicit calls to gimp_image_alpha_changed().
      800b7a5d
    • Vincent van Adrighem's avatar
      Translation added by Branko Collin. · 820b4d86
      Vincent van Adrighem authored
      2004-03-15  Vincent van Adrighem  <adrighem@gnome.org>
      
      	* nl.po: Translation added by Branko Collin.
      820b4d86
    • Simon Budig's avatar
      Applied a modified version of a patch from Raphaël, that implements a · c868c55d
      Simon Budig authored
      2004-03-15  Simon Budig  <simon@gimp.org>
      
      	* app/base/tile-swap.[ch]: Applied a modified version of a patch
      	from Raphaël, that implements a test if a swap file can be
      	created. Also make the failure message more verbose.
      
      	* app/base/base.[ch]: extend base_init() with a boolean return
      	to indicate if the test to create a swap file was OK.
      
      	* app/app_procs.c: Display a warning message at startup when the
      	test fails.
      
      	Fixes bug #64835.
      c868c55d
    • Michael Natterer's avatar
      emit "alpha_changed" if the drawable got/lost an alpha channel by setting · d376ac5d
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable.c (gimp_drawable_real_set_tiles): emit
      	"alpha_changed" if the drawable got/lost an alpha channel by
      	setting the new tiles.
      
      	* app/core/gimpimage-undo-push.c (undo_pop_layer_mod)
      	* app/core/gimplayer.c (gimp_layer_add_alpha): removed explicit
      	calls to gimp_drawable_alpha_changed().
      d376ac5d
    • Michael Natterer's avatar
      fixed last entry. · caa462bf
      Michael Natterer authored
      caa462bf
    • Michael Natterer's avatar
      Closer to text layer undo: · 43450002
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	Closer to text layer undo:
      
      	* app/core/gimpchannel.c (gimp_channel_set_tiles): invalidate the
      	channel's boundary and bounds.
      
      	* app/text/gimptextlayer.c: implement GimpDrawable::swap_pixels()
      	and set text_layer->modified = TRUE after upchaining.
      
      	(gimp_text_layer_render): use gimp_drawable_set_tiles() and
      	set text_layer->modified = FALSE afterwards.
      
      	* app/core/gimpimage-undo-push.c: cleaned up variable declarations
      	and initializations.
      
      	(undo_pop_layer_mod)
      	(undo_pop_channel_mod): use gimp_channel_set_tiles() instead of
      	touching drawable->tiles manually. Now all pixel manipulation
      	(at least on layers) should be virtualized and can be detected by
      	the text layer.
      43450002
    • Michael Natterer's avatar
      Prepare the undo system for proper text layer undo: · a18a1d12
      Michael Natterer authored
      2004-03-15  Michael Natterer  <mitch@gimp.org>
      
      	Prepare the undo system for proper text layer undo:
      
      	* app/core/core-enums.[ch] (enum GimpUndoType): replaced
      	GIMP_UNDO_IMAGE and GIMP_UNDO_IMAGE_MOD by GIMP_UNDO_DRAWABLE.
      
      	* app/core/gimpimage-undo-push.[ch]: ditto: replaced
      	gimp_image_undo_push_image() and gimp_image_undo_push_image_mod()
      	by gimp_image_undo_push_drawable() which *always* expects to get a
      	TileManager passed. Also added g_return_if_fail()s to check if the
      	passed in tile manager follows the semantics of the "sparse"
      	boolean.
      
      	(undo_pop_drawable): removed all code and call the new
      	gimp_drawable_swap_pixels() instead (see below).
      
      	* app/core/gimpdrawable.[ch] (gimp_drawable_push_undo): if tiles
      	are NULL, create a copy of the area here and always pass tiles to
      	gimp_image_undo_push_drawable(). Added lots of g_return_if_fail()
      	here too.
      
      	Added new vitrual function GimpDrawable::swap_pixels() which
      	does what undo_pop_drawable() did.
      
      	* app/core/gimpchannel.c: implement swap_pixels() and invalidate
      	the channel's bounds and boundary.
      a18a1d12
    • Sven Neumann's avatar
      don't show a web-browser setting on win32, it's not used there (see bug · 8b2d1f8e
      Sven Neumann authored
      2004-03-15  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/preferences-dialog.c: don't show a web-browser setting
      	on win32, it's not used there (see bug #137173).
      8b2d1f8e
    • Miloslav Trmac's avatar
      Update Czech translation · 873282c7
      Miloslav Trmac authored
      873282c7
    • Jan Morén's avatar
      Updated Swedish translation. · 6e093237
      Jan Morén authored
      2004-03-15  Jan Morén  <jan.moren@lucs.lu.se>
      
               * sv.po: Updated Swedish translation.
      6e093237
    • Sven Neumann's avatar
      NEWS update · d813c287
      Sven Neumann authored
      d813c287
    • Sven Neumann's avatar
      splash image for GIMP 2.0 by Jimmac. · 1951ad21
      Sven Neumann authored
      2004-03-15  Sven Neumann  <sven@gimp.org>
      
      	* data/images/gimp_splash.png: splash image for GIMP 2.0 by Jimmac.
      
      	* app/gui/splash.[ch]: draw the text on the splash image, not
      	below it.
      
      	* app/app_procs.[ch]
      	* app/gui/gui.[ch]
      	* app/main.c
      	* docs/gimp.1.in: dropped support for the --no-splash-image
      	command-line option (not to be confused with --no-splash). It was
      	never very useful and makes even less sense in times where startup
      	notification is available.
      1951ad21
    • Sigurd Gartmann's avatar
      Updated Norwegian Bokmål translation. · 96285dc8
      Sigurd Gartmann authored
      2004-03-15  Sigurd Gartmann  <sigurd-translate@brogar.org>
      
      	* no.po: Updated Norwegian Bokmål translation.
      96285dc8
  3. 14 Mar, 2004 12 commits
    • Simon Budig's avatar
      app/core/gimpimage.[ch] renamed gimage->freeze_count to · dfd41249
      Simon Budig authored
      2004-03-15  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-undo.c: renamed gimage->freeze_count
      	to gimage->undo_freeze_count (more explicit).
      
      	* app/file/file-open.c: Ensure that the undo system is enabled
      	after loading an image (to protect against broken loaders).
      dfd41249
    • Sven Neumann's avatar
      app/tools/gimpcolorpickertool.c app/tools/gimpcroptool.c · 63bb032f
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimpcolorpickertool.c
      	* app/tools/gimpcroptool.c
      	* app/tools/gimpimagemaptool.c
      	* app/tools/gimpmeasuretool.c
      	* app/tools/gimptransformtool.c: don't set tool dialogs transient
      	to the image window. Fixes bug #128833.
      63bb032f
    • Ole Laursen's avatar
      Updated Danish translation. · 7f1e612d
      Ole Laursen authored
      2004-03-14  Ole Laursen  <olau@hardworking.dk>
      
      	* da.po: Updated Danish translation.
      7f1e612d
    • Sven Neumann's avatar
      don't abuse the SPLASHSCREEN window type hint, instead make the about · 7ed142c7
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/about-dialog.c: don't abuse the SPLASHSCREEN window type
      	hint, instead make the about dialog a popup window and center it
      	explicitely.
      7ed142c7
    • Sven Neumann's avatar
      allow to pass NULL as parent widget. · 9e0af0e2
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/widgets/gimptooldialog.c (gimp_tool_dialog_new): allow to
      	pass NULL as parent widget.
      9e0af0e2
    • Sven Neumann's avatar
      some code cleanup. · 5e32bf4d
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/gui/splash.c: some code cleanup.
      
      	* app/gui/about_dialog.c: typo.
      5e32bf4d
    • Simon Budig's avatar
      No need to use an undo_group *and* freeze/thaw an image. Just using the · c5f27a43
      Simon Budig authored
      2004-03-14  Simon Budig  <simon@gimp.org>
      
      	* plug-ins/common/jpeg.c: No need to use an undo_group *and*
      	freeze/thaw an image. Just using the latter keeps the undo
      	history ok in both directions. Also call gimp_displays_flush()
      	to make sure the undo keyboard shortcuts are enabled after the
      	plugin ends.
      c5f27a43
    • Simon Budig's avatar
      app/core/gimpimage.[ch] introduced a freeze counter, so that · 657bd9ff
      Simon Budig authored
      2004-03-14  Simon Budig  <simon@gimp.org>
      
      	* app/core/gimpimage.[ch]
      	* app/core/gimpimage-undo.c: introduced a freeze counter, so
      	that undo_freeze(); undo_freeze(); undo_thaw(); no longer
      	results in an thawed undo stack.
      
      	Fixes Bug #124176.
      
      	This might reveal other places in the code where
      	gimp_image_undo_freeze/thaw or gimp_image_undo_disable/enable
      	were used in an inconsistent (not-paired) manner.
      
      	* app/file/file-open.c: e.g. here, where _enable was called on
      	the new image. The intention was to free a potential undo stack,
      	so now call gimp_image_undo_free() instead.
      657bd9ff
    • Sven Neumann's avatar
      removed all idle handling here. Changes to the text-layer's text object · f67c16ec
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/text/gimptextlayer.[ch]: removed all idle handling here.
      	Changes to the text-layer's text object all applied synchronously.
      
      	* app/display/gimpdisplayshell-dnd.c
      	* app/text/gimptextlayer-transform.c: removed now obsolete calls
      	to gimp_text_layer_flush().
      
      	* app/tools/gimptexttool.[ch]: queue up changes to the proxy text
      	object and apply them in one go from a low-priority idle handler.
      	This is basically what GimpTextLayer used to do.
      f67c16ec
    • Sven Neumann's avatar
      app/tools/gimptextoptions.[ch] introduced a proxy GimpText object that is · 0993486a
      Sven Neumann authored
      2004-03-14  Sven Neumann  <sven@gimp.org>
      
      	* app/tools/gimptextoptions.[ch]
      	* app/tools/gimptexttool.[ch]: introduced a proxy GimpText object
      	that is tied to the GimpTextOptions for the lifetime of the text
      	tool. Brings us one step closer to text undo...
      0993486a
    • Vincent van Adrighem's avatar
      Translation updated by Branko Collin. · e6b7c28b
      Vincent van Adrighem authored
      2004-03-14  Vincent van Adrighem  <adrighem@gnome.org>
      
      	* nl.po: Translation updated by Branko Collin.
      e6b7c28b
    • Michael Natterer's avatar
      app/core/gimpdrawable-offset.c (gimp_drawable_offset) · d1fe0f9e
      Michael Natterer authored
      2004-03-14  Michael Natterer  <mitch@gimp.org>
      
      	* app/core/gimpdrawable-offset.c (gimp_drawable_offset)
      	* app/core/gimpdrawable.c (gimp_drawable_scale) (gimp_drawable_resize)
      	* app/core/gimplayer.c (gimp_layer_convert) (gimp_layer_add_alpha):
      	use gimp_drawable_set_tiles() instead of fiddling with
      	drawable->tiles, ->bytes etc. manually.
      d1fe0f9e
  4. 13 Mar, 2004 6 commits
    • Vincent van Adrighem's avatar
      Translation updated by Branko Collin. · f36b751c
      Vincent van Adrighem authored
      2004-03-13  Vincent van Adrighem  <adrighem@gnome.org>
      
      	* nl.po: Translation updated by Branko Collin.
      f36b751c
    • Michael Natterer's avatar
      made enum GimpDialogVisibilityState and GIMP_DIALOG_VISIBILITY_KEY public. · 6f1612db
      Michael Natterer authored
      2004-03-13  Michael Natterer  <mitch@gimp.org>
      
      	* app/widgets/gimpdialogfactory.[ch]: made enum
      	GimpDialogVisibilityState and GIMP_DIALOG_VISIBILITY_KEY public.
      
      	* app/widgets/gimpsessioninfo.c (gimp_session_info_get_geometry):
      	only look at GTK_WIDGET_VISIBLE(info->widget) if the dialog's
      	visibility state is GIMP_DIALOG_VISIBILITY_UNKNOWN and map the
      	visibility state to info->open otherwise.
      
      	Fixes bug #137076.
      6f1612db
    • Sven Neumann's avatar
      applied a patch from Pedro Gimeno that fixes the crash reported in bug · a479b558
      Sven Neumann authored
      2004-03-13  Sven Neumann  <sven@gimp.org>
      
      	* app/core/gimpdrawable-blend.c (gradient_calc_shapeburst_*):
      	applied a patch from Pedro Gimeno that fixes the crash reported in
      	bug #136219.
      a479b558
    • Michael Natterer's avatar
      Completed the fix for bug #136702: · 2498c665
      Michael Natterer authored
      2004-03-13  Michael Natterer  <mitch@gimp.org>
      
      	Completed the fix for bug #136702:
      
      	* app/core/gimpitem.[ch]: added "gboolean supersample" and
      	"gint recursion_level" to GimpItem::transform().
      
      	* app/core/gimpitem-linked.[ch]	(gimp_item_linked_transform): ditto.
      
      	* app/core/gimpdrawable-transform.[ch]: added "recursion_level"
      	parameters and removed the RECURSION_LEVEL #define.
      
      	* app/core/gimpchannel.c
      	* app/core/gimpdrawable.c
      	* app/core/gimplayer.c
      	* app/vectors/gimpvectors.c: changed accordingly.
      
      	* app/tools/gimptransformoptions.[ch]: added new property
      	"recursion_level" which is not serializable and has no GUI. Pretty
      	useless, but it's IMHO better to hardcode the default value here
      	than in gimpdrawable-transform.c
      
      	* app/tools/gimptransformtool.c: changed accordingly.
      
      	* tools/pdbgen/pdb/transform_tools.pdb: hardcode "recursion_level"
      	to 3.
      
      	* app/pdb/transform_tools_cmds.c: regenerated.
      2498c665
    • Simon Budig's avatar
      app/widgets/widgets-enums.h New function · b3cc1578
      Simon Budig authored
      2004-03-13  Simon Budig  <simon@gimp.org>
      
      	* app/widgets/widgets-enums.h
      	* app/widgets/gimppreviewrenderer.[ch]: New function
      	gimp_preview_renderer_set_border_type that takes an enum instead
      	of an color to set the color of the border.
      
      	* app/widgets/gimpcellrendererviewable.c: check for the
      	current border_type and change it to black when it is white and
      	the cell is unselected. This should be solved in a better way
      	later.
      
      	Fixes bug #135023.
      
      	* app/widgets/gimplayertreeview.c
      	* app/widgets/gimpcontainergridview.c: changed to use the new
      	function.
      b3cc1578
    • Pedro Gimeno's avatar
      plug-ins/script-fu/scripts/carve-it.scm · 0dcbbccf
      Pedro Gimeno authored
      2004-03-13  Pedro Gimeno  <pggimeno@wanadoo.es>
      
      	* plug-ins/script-fu/scripts/carve-it.scm
      	* plug-ins/script-fu/scripts/chrome-it.scm
      	* plug-ins/script-fu/scripts/crystal-logo.scm
      	* plug-ins/script-fu/scripts/sota-chrome-logo.scm: Fixed to avoid
      	pasting to a layer that was not added to any image. This was causing
      	the scripts to abort, because gimp-edit-paste is now failing in that
      	case.
      0dcbbccf