Commit Graph

2735 Commits

Author SHA1 Message Date
Sven Neumann 03342ad774 plug-ins/common/bumpmap.c applied patch from Ulf-D. Ehlert that catches a
2008-01-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/bumpmap.c
	* plug-ins/script-fu/scripts/swirltile.scm: applied patch from
	Ulf-D. Ehlert that catches a potential division by zero in the
	Bumpmap plug-in and adjusts the range of the Depth parameter in
	the Swirl-Tile script (bug #509608).

svn path=/trunk/; revision=24616
2008-01-15 12:26:03 +00:00
Sven Neumann c7b188b90b round the result of the convolution. Fixes bug #508114.
2008-01-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/convmatrix.c (convolve_image): round the result
	of the convolution. Fixes bug #508114.

svn path=/trunk/; revision=24575
2008-01-09 10:37:18 +00:00
Sven Neumann a01a055c01 fixed out-of-bounds array access.
2008-01-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/convmatrix.c (convolve_image): fixed 
out-of-bounds
	array access.


svn path=/trunk/; revision=24544
2008-01-06 01:59:26 +00:00
Sven Neumann d55d95877e update the progress less often.
2008-01-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tile.c (tile): update the progress less often.


svn path=/trunk/; revision=24541
2008-01-06 00:50:40 +00:00
Bill Skaggs 6ca147e61b added previews for hurl, pick, and slur.
2008-01-03  Bill Skaggs  <weskaggs@primate.ucdavis.edu>

	* plug-ins/common/randomize.c: added previews for hurl,
	pick, and slur.
	


svn path=/trunk/; revision=24511
2008-01-03 16:53:33 +00:00
Sven Neumann 4e8df6af94 configure.in plug-ins/Makefile.am added new PSD load plug-in written by
2007-12-20  Sven Neumann  <sven@gimp.org>

	* configure.in
	* plug-ins/Makefile.am
	* plug-ins/psd: added new PSD load plug-in written by John Marshall.
	This plug-in adds a couple of features. See bug #448181 for details.

	* plug-ins/common/Makefile.am
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/psd-load.c: removed old psd-load plug-in.

svn path=/trunk/; revision=24408
2007-12-20 11:12:05 +00:00
Sven Neumann 8ce82f2415 applied patch from John Marshall that fixes handling of PSD files with
2007-12-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-load.c: applied patch from John Marshall
	that fixes handling of PSD files with blank layer names (bug 
#504149).


svn path=/trunk/; revision=24401
2007-12-18 20:33:32 +00:00
William Skaggs 50f65eb1b4 Bill Skaggs <weskaggs@primate.udavis.edu>
* plug-ins/common/edge.c: reverted to state pre-12/16.

svn path=/trunk/; revision=24386
2007-12-17 23:25:07 +00:00
William Skaggs 12859122c6 Bill Skaggs <weskaggs@primate.udavis.edu>
* plug-ins/common/edge.c: name reverted to "Edge",
	label in combo reverted to "Prewitt", other changes kept.

svn path=/trunk/; revision=24380
2007-12-17 04:59:35 +00:00
William Skaggs 5b13d23b4e Bill Skaggs <weskaggs@primate.udavis.edu>
* plug-ins/common/edge.c: renamed to "Sharp Edges",
	added "invert" option, other usability tweaks.

svn path=/trunk/; revision=24378
2007-12-16 20:38:02 +00:00
Sven Neumann 65bbd5f9d3 plug-ins/common/plugin-defs.pl re-added psd-load. Looks like Bill
2007-12-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/Makefile.am: re-added psd-load. Looks like 
Bill
	accidentally removed it.


svn path=/trunk/; revision=24375
2007-12-16 14:58:25 +00:00
William Skaggs 52735b8ea8 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/common/mapcolor.c: removed
	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/Makefile.am: updated accordingly

svn path=/trunk/; revision=24369
2007-12-15 18:41:09 +00:00
Sven Neumann 182c263a11 extended the range allowed for the whirl angle (bug #499398).
2007-12-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/whirlpinch.c: extended the range allowed for the
	whirl angle (bug #499398).

svn path=/trunk/; revision=24335
2007-12-12 12:27:02 +00:00
Sven Neumann b43c095cab removed pointless and untranslated warning.
2007-12-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff-load.c (load_image): removed pointless 
and
	untranslated warning.


svn path=/trunk/; revision=24253
2007-12-02 14:47:47 +00:00
Sven Neumann 91720dc950 improved error reporting.
2007-11-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/wmf.c	(load_image): improved error reporting.

svn path=/trunk/; revision=24234
2007-11-26 16:46:04 +00:00
Sven Neumann 6d8cc31116 avoid filename encoding problems by not using wmf_file_open() but mapping
2007-11-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/wmf.c: avoid filename encoding problems by not
	using wmf_file_open() but mapping the file into memory with
	GMappedFile. Fixes bug #499329.

svn path=/trunk/; revision=24232
2007-11-26 16:40:17 +00:00
Sven Neumann 1107d5a20b don't call gimp_edit_clear() if the selection mask is empty after
2007-11-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: don't call gimp_edit_clear() if
	the selection mask is empty after selecting the window shape and
	inverting that selection. Fixes bug #493182.


svn path=/trunk/; revision=24167
2007-11-15 19:31:12 +00:00
Sven Neumann e35f701b65 fixed bug in colormap handling (bug #497103).
2007-11-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff-save.c (save_image): fixed bug in 
colormap
	handling (bug #497103).


svn path=/trunk/; revision=24165
2007-11-15 19:15:10 +00:00
Sven Neumann af237c2246 return GIMP_UNIT_MM in case that we can't query the locale.
2007-11-12  Sven Neumann  <sven@gimp.org>

	* app/core/gimp-utils.c (gimp_get_default_unit): return
	GIMP_UNIT_MM in case that we can't query the locale.

	* plug-ins/common/postscript.c: use gboolean for boolean 
variables.


svn path=/trunk/; revision=24139
2007-11-12 20:52:17 +00:00
Sven Neumann a8252d27d6 properly handle a failure of TIFFFdOpen() instead of crashing on TIFF
2007-11-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff-load.c (run): properly handle a failure of
	TIFFFdOpen() instead of crashing on TIFF files we can't handle.

svn path=/trunk/; revision=24130
2007-11-12 10:16:55 +00:00
Michael Natterer a446f3d7fb use the new tooltip API instead of the old deprecated one. Removed
2007-11-09  Michael Natterer  <mitch@gimp.org>

	* libgimpwidgets/gimphelpui.[ch]: use the new tooltip API instead
	of the old deprecated one. Removed _gimp_help_init(). Remember
	whether tooltips are enabled or not in a local variable that can
	only be altered at startup time and not after. The API now expects
	markup instead of plain text which might cause warnings and
	perhaps needs to be changed.

	* libgimpwidgets/gimpwidgets-private.c: don't call _gimp_help_init().

	* app/config/gimpguiconfig.c: made show-tooltips a
	GIMP_CONFIG_PARAM_RESTART property.

	* app/widgets/gimptoolbox-color-area.c: don't add the tooltip here...

	* app/widgets/gimptoolbox.c: ...but here (as for all other
	indicators). Also escape '&' properly because we now use markup.

	* app/tools/gimpselectionoptions.c
	* app/widgets/gimpeditor.c
	* app/widgets/gimpwidgets-utils.c: print modifiers and
	shortcuts in bold instead of in ().

	* app/widgets/gimpcontainertreeview.c: show tooltips on rows if
	gimp_viewable_get_description() returns a tip.

	* app/dialogs/preferences-dialog.c
	* plug-ins/jpeg/jpeg-save.c
	* plug-ins/MapObject/mapobject_ui.c
	* plug-ins/Lighting/lighting_ui.c
	* plug-ins/common/animationplay.c
	* plug-ins/common/warp.c: no need to add event boxes just to have
	tooltips, the new ones work on all widgets.


svn path=/trunk/; revision=24093
2007-11-09 11:17:00 +00:00
Sven Neumann 694c7d188e use a combo-box instead of radio buttons (bug #484838).
2007-10-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/retinex.c: use a combo-box instead of radio
	buttons (bug #484838).

svn path=/trunk/; revision=24012
2007-10-31 10:44:14 +00:00
Sven Neumann 5a8f89999c check for the XFIXES extension.
2007-10-31  Sven Neumann  <sven@gimp.org>

	* configure.in: check for the XFIXES extension.

	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/Makefile.am: use XFIXES_CFLAGS for compiling the
	screenshot plug-in.

	* plug-ins/common/screenshot.c: optionally add the mouse cursor
	image on an extra layer. Work in progress... (bug #490779).

svn path=/trunk/; revision=24008
2007-10-31 10:34:42 +00:00
Sven Neumann 21c8209c52 fixed handling of truncated ascii files.
2007-10-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/pnm.c (pnm_load_ascii): fixed handling of
	truncated ascii files.


svn path=/trunk/; revision=23968
2007-10-27 17:05:55 +00:00
Sven Neumann 3ef1a3cdb4 formatting.
2007-10-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/pnm.c: formatting.


svn path=/trunk/; revision=23967
2007-10-27 16:50:55 +00:00
Sven Neumann dc6c91fd65 set the svn:ignore property instead of writing a .cvsignore file.
2007-10-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mkgen.pl: set the svn:ignore property instead 
of
	writing a .cvsignore file.


svn path=/trunk/; revision=23966
2007-10-27 14:17:47 +00:00
Manish Singh af49ba3737 plug-ins/common/compose.c generate PDB docs from the same source as the
2007-10-24  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/compose.c
        * plug-ins/common/decompose.c: generate PDB docs from the same
        source as the UI.

svn path=/trunk/; revision=23940
2007-10-25 03:32:18 +00:00
Sven Neumann 1ed2d6528b fixed handling of the empty selection mask (bug #489410).
2007-10-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/fp.c: fixed handling of the empty selection
	mask (bug #489410).


svn path=/trunk/; revision=23926
2007-10-23 19:15:22 +00:00
Sven Neumann 1d58e18dc5 ooops
svn path=/trunk/; revision=23925
2007-10-23 18:29:16 +00:00
Sven Neumann ba5334d147 Simplified "Advanced Options" dialog.
2007-10-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/fp.c: Simplified "Advanced Options" dialog.

svn path=/trunk/; revision=23924
2007-10-23 18:26:18 +00:00
Sven Neumann a4e099e2be made preview windows transient to the plug-in dialog.
2007-10-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/fp.c: made preview windows transient to the
	plug-in dialog.


svn path=/trunk/; revision=23923
2007-10-23 17:37:31 +00:00
Sven Neumann 07c3aa3dd7 fixed bogus for-loop.
2007-10-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/depthmerge.c (util_convertColorspace): fixed
	bogus for-loop.


svn path=/trunk/; revision=23918
2007-10-22 20:03:43 +00:00
Sven Neumann 279ab9c688 don't use the last-used mapping in interactive mode, only do this when
2007-10-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/colormap-remap.c (run): don't use the 
last-used
	mapping in interactive mode, only do this when called with 
run-mode
	GIMP_RUN_WITH_LAST_VALS. Fixes bug #486283.


svn path=/trunk/; revision=23812
2007-10-13 10:50:38 +00:00
Manish Singh 59ce9f463a Implement non-interactive mode, and make it match the old PDF loader API.
2007-10-06  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/poppler.c: Implement non-interactive mode, and make
        it match the old PDF loader API. Fixes bug #483425.

svn path=/trunk/; revision=23751
2007-10-06 21:34:12 +00:00
Sven Neumann 59acf0a4f3 check that the window shape is non-empty before applying it to the alpha
2007-10-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c (create_image): check that the
	window shape is non-empty before applying it to the alpha 
channel.


svn path=/trunk/; revision=23741
2007-10-05 21:06:15 +00:00
Sven Neumann 1c22f13fd4 the inward/outward parameter affects the zoom mode, not radial
svn path=/trunk/; revision=23734
2007-10-05 11:16:04 +00:00
Sven Neumann 9ba63e340d restore compatibility by registering an extra procedure for the
2007-10-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mblur.c: restore compatibility by registering an
	extra procedure for the inward/outward parameter (bug #483426).

svn path=/trunk/; revision=23733
2007-10-05 11:12:32 +00:00
Sven Neumann b4f812491f modules/cdisplay_lcms.c modules/cdisplay_proof.c
2007-10-04  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c
	* modules/cdisplay_proof.c
	* modules/colorsel_cmyk_lcms.c
	* plug-ins/common/lcms.c 
	* plug-ins/jpeg/jpeg-load.c: use cmsFLAGS_BLACKPOINTCOMPENSATION
	instead of the equivalent cmsFLAGS_WHITEBLACKCOMPENSATION.

svn path=/trunk/; revision=23724
2007-10-04 14:21:55 +00:00
Sven Neumann b6bc110c22 use the display rendering intent as set in the user's color management
2007-10-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: use the display rendering intent as 
set
	in the user's color management preferences as the default for 
the
	color conversion. Default to using black point compensation if 
the
	rendering intent is relative colorimetric (bug #475983).


svn path=/trunk/; revision=23719
2007-10-03 13:43:50 +00:00
Sven Neumann 59f86e366b changed the dialog title to adopt to the menu label we changed two years
2007-10-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/scatter_hsv.c (scatter_hsv_dialog): changed the
	dialog title to adopt to the menu label we changed two years ago.

svn path=/trunk/; revision=23717
2007-10-02 09:32:48 +00:00
Sven Neumann 1f4c2a1f96 clamp values used for the exponent map to 1..255. Fixes bug #478618.
2007-10-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/oilify.c (get_map_value): clamp values used 
for
	the exponent map to 1..255. Fixes bug #478618.


svn path=/trunk/; revision=23715
2007-10-02 05:54:44 +00:00
Sven Neumann bba7d1e0c4 use gimp_pixel_rgn_set_row() to set a single row of pixels.
2007-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff-load.c (load_rgba): use
	gimp_pixel_rgn_set_row() to set a single row of pixels.

svn path=/trunk/; revision=23680
2007-09-28 10:10:28 +00:00
Sven Neumann e8d323c805 show the dialog when called with GIMP_RUN_WITH_LAST_VALS. This is better
2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/iwarp.c (run): show the dialog when called with
	GIMP_RUN_WITH_LAST_VALS. This is better than just doing nothing
	when being called from the Repeat menu item (bug #480796).

svn path=/trunk/; revision=23669
2007-09-27 13:05:07 +00:00
Sven Neumann 85deee0aef don't create nested undo groups.
2007-09-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: don't create nested undo groups.


svn path=/trunk/; revision=23662
2007-09-26 19:29:54 +00:00
Sven Neumann e2ed6cd182 reverted "fix" for bug #477008.
2007-09-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/decompose.c: reverted "fix" for bug #477008.

	* tools/pdbgen/pdb/display.pdb
	* app/pdb/display_cmds.c: flush the image before creating a new
	display for it. Fixes bug #477008 also for other plug-ins like
	Screenshot.

svn path=/trunk/; revision=23650
2007-09-25 11:25:05 +00:00
Sven Neumann f1ce484ab2 marked blurbs as translatable.
2007-09-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: marked blurbs as translatable.


svn path=/trunk/; revision=23631
2007-09-23 18:30:31 +00:00
Michael Natterer 2fbe082762 added placeholder File/Preferences and move the preferences and keyboard
2007-09-23  Michael Natterer  <mitch@gimp.org>

	* menus/toolbox-menu.xml.in: added placeholder File/Preferences
	and move the preferences and keyboard shortcut dialogs there.

	* plug-ins/common/uniteditor.c (query): register the unit editor
	there too.


svn path=/trunk/; revision=23629
2007-09-23 17:23:06 +00:00
Sven Neumann 83968989c0 avoid pointer arithmetics on void pointers. Fixes compilation on IRIX (bug
2007-09-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/pcx.c: avoid pointer arithmetics on void 
pointers.
	Fixes compilation on IRIX (bug #479357).


svn path=/trunk/; revision=23628
2007-09-23 17:02:11 +00:00
Simon Budig cd5973a654 add a few strategically placed return TRUEs to stop event propagation.
2007-09-23  Simon Budig  <simon@gimp.org>

	* plug-ins/common/bumpmap.c: add a few strategically placed
	return TRUEs to stop event propagation.

	Fixes bug #479389


svn path=/trunk/; revision=23620
2007-09-23 01:15:28 +00:00
Sven Neumann 24c4243f28 General fix for bug #478657:
2007-09-21  Sven Neumann  <sven@gimp.org>

	General fix for bug #478657:

	* libgimp/gimpaspectpreview.c
	* libgimp/gimpdrawablepreview.c
	* libgimp/gimpzoompreview.c: let all preview widgets store the
	state of the Preview toggle. Declared "toggle" parameter as unused.

	* plug-ins/common/*.c: pass NULL for "toggle" to
	gimp_drawable_preview_new() and gimp_aspect_preview_new().

svn path=/trunk/; revision=23603
2007-09-21 13:27:33 +00:00
Michael Natterer e2fcc1fc6e added placeholder Edit/Preferences and move the preferences and keyboard
2007-09-20  Michael Natterer  <mitch@gimp.org>

	* menus/image-menu.xml.in: added placeholder Edit/Preferences and
	move the preferences and keyboard shortcut dialogs there.

	* plug-ins/common/uniteditor.c (query): register the unit editor
	there too.


svn path=/trunk/; revision=23594
2007-09-20 11:39:32 +00:00
Sven Neumann 04b4982220 removed extra arguments that were added to the compose procedures in the
2007-09-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/compose.c: removed extra arguments that were
	added to the compose procedures in the 2.3 development cycle.
	Restores compatibility and fixes bug #477795.


svn path=/trunk/; revision=23590
2007-09-19 16:56:34 +00:00
Martin Nordholts 88759a35e9 Applied slightly modified patch from John Marshall that drops adjustment
2007-09-17  Martin Nordholts  <martinn@svn.gnome.org>

	* plug-ins/common/psd-load.c (do_layer_record, load_image):
	Applied slightly modified patch from John Marshall that drops
	adjustment and layer group layers when loading PSD files. Fixes
	bug #474718.

svn path=/trunk/; revision=23576
2007-09-17 19:11:25 +00:00
Nils Philippsen b4c39928a6 verify that the bytesperline header field (number of bytes to allocate per
2007-09-17  Nils Philippsen  <nphilipp@redhat.com>
* plug-ins/common/pcx.c (load_image): verify that the bytesperline header
field (number of bytes to allocate per plane and line) isn't less than the
width of the image

svn path=/trunk/; revision=23574
2007-09-17 18:56:34 +00:00
Simon Budig 046f0ef21e flush the displays at the end.
2007-09-17  Simon Budig  <simon@gimp.org>

	* plug-ins/common/decompose.c: flush the displays at the end.

	Fixes bug #477008.


svn path=/trunk/; revision=23570
2007-09-17 00:29:28 +00:00
Michael Natterer ec11dbc1a1 remove FOO_DISABLE_DEPRECATED for only glib >= 2.15 and gtk+ >= 2.13, GIMP
2007-09-13  Michael Natterer  <mitch@gimp.org>

	* configure.in: remove FOO_DISABLE_DEPRECATED for only glib >= 2.15
	and gtk+ >= 2.13, GIMP builds fine against the 2.14 and 2.12 APIs
	apart from:

	* app/tools/gimpselectionoptions.c
	* libgimpwidgets/gimphelpui.c: undef GTK_DISABLE_DEPRECATED because
	GtkTooltips is deprecated in gtk+ 2.12.

	* libgimp/gimpui.c
	* plug-ins/common/pat.c: the address of an array is always
	non-NULL, no need to check for that. Fixes new gcc warnings.


svn path=/trunk/; revision=23522
2007-09-13 10:44:07 +00:00
Sven Neumann 8c99fcc50e remember color conversion parameters (bug #475966).
2007-09-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: remember color conversion parameters
	(bug #475966).

svn path=/trunk/; revision=23507
2007-09-12 09:24:54 +00:00
Sven Neumann 66b409c354 fixed loading of PGM files with maxval of 1 (bug #475991).
2007-09-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/pnm.c (pnm_load_ascii): fixed loading of PGM
	files with maxval of 1 (bug #475991).


svn path=/trunk/; revision=23505
2007-09-12 07:15:38 +00:00
Sven Neumann 471eed6bab fixed use of black-point-compensation parameter (bug #475952).
2007-09-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: fixed use of black-point-compensation
	parameter (bug #475952).


svn path=/trunk/; revision=23504
2007-09-12 06:21:05 +00:00
Manish Singh de5184c824 don't use "major" and "minor" as variable names, they may conflict with
2007-09-11  Manish Singh  <yosh@gimp.org>

        * plug-ins/common/psp.c: don't use "major" and "minor" as variable
        names, they may conflict with system symbols.

svn path=/trunk/; revision=23503
2007-09-11 22:48:03 +00:00
Sven Neumann aeadf45cfa update the preview on "value-changed", instead of "refval-changed". Fixes
2007-09-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/spread.c (spread_dialog): update the preview on
	"value-changed", instead of "refval-changed". Fixes bug #469360.

svn path=/trunk/; revision=23500
2007-09-11 13:24:15 +00:00
Sven Neumann 563bb6fe80 allow to specify rendering intent and black point compensation. Fixes bug
2007-09-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: allow to specify rendering intent and 
	black point compensation. Fixes bug #474787.

svn path=/trunk/; revision=23497
2007-09-11 09:37:38 +00:00
Sven Neumann a38de20058 applied patch from Aurimas Juška which simplifies the code by using
2007-09-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lens.c: applied patch from Aurimas Juška which
	simplifies the code by using GimpPixelFetcher and fixes handling
	of selections in the preview. Fixes the last aspect of bug #356716.

svn path=/trunk/; revision=23495
2007-09-10 16:05:40 +00:00
Sven Neumann 0567768821 applied patch from Nils Philippsen that fixes an endianess problem (bug
2007-09-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psp.c: applied patch from Nils Philippsen that
	fixes an endianess problem (bug #475464).

svn path=/trunk/; revision=23492
2007-09-10 13:37:39 +00:00
Sven Neumann c35f4644da copy the alpha channel to the destination region. Fixes bug #473998.
2007-09-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_drawable_transform): copy the alpha
	channel to the destination region. Fixes bug #473998.

svn path=/trunk/; revision=23491
2007-09-10 13:26:02 +00:00
Simon Budig e246544a92 convmatrix.c: oops, there was still an unused variable hanging around.
svn path=/trunk/; revision=23469
2007-09-06 11:29:31 +00:00
Simon Budig 005badf3ac there is no need to mess with the selected channels within check_config().
2007-09-06  Simon Budig  <simon@gimp.org>

	* plug-ins/common/convmatrix.c: there is no need to mess
	with the selected channels within check_config(). Also fix
	bug with with copying its values into the chanmask
	in convolve_image()

	Fixes bug #472518


svn path=/trunk/; revision=23468
2007-09-06 10:00:21 +00:00
Simon Budig 8642b014ca fixed subtle cut'n'paste bug, made the code a little bit more readable.
2007-08-31  Simon Budig  <simon@gimp.org>

	* plug-ins/common/antialias.c: fixed subtle cut'n'paste bug,
	made the code a little bit more readable.


svn path=/trunk/; revision=23421
2007-08-31 01:13:33 +00:00
Karine Delvare 3cb33d8721 plug-ins/common/illusion.c plug-ins/common/polar.c applied patches from
2007-08-30  Karine Delvare  <edhel@gimp.org>

	* plug-ins/common/illusion.c
	* plug-ins/common/polar.c
	* plug-ins/common/whirlpinch.c: applied patches from Aurimas Juška
	that fixes use of the GimpZoomPreview widget in those plug-ins (see
	bug #356716), and makes illusion handle selections properly.


svn path=/trunk/; revision=23416
2007-08-30 16:44:10 +00:00
Raphael Quinet e21b1dce84 applied modified patch from Nils Philippsen that adds more sanity checks
2007-08-30  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/pcx.c: applied modified patch from Nils
	Philippsen that adds more sanity checks when loading and saving
	images.  Fixes the reopened bug #471189.

svn path=/trunk/; revision=23409
2007-08-30 11:49:52 +00:00
Jakub Friedl 558bdfc4ed Randomizing hue of desaturated pixels before increasing saturation. Fixes
2007-08-30  Jakub Friedl  <jfriedl@suse.cz>

	* plug-ins/common/scatter_hsv.c: Randomizing hue of desaturated
	pixels before increasing saturation. Fixes #471476.


svn path=/trunk/; revision=23407
2007-08-30 10:09:51 +00:00
Jakub Friedl f935d6bd7a Calling randomize_value with max value 359 instead of 360 to fix off by 1
2007-08-29  Jakub Friedl  <jfriedl@suse.cz>

	* plug-ins/common/scatter_hsv.c: Calling randomize_value with
	max value 359 instead of 360 to fix off by 1 error when wrapping
        around.


svn path=/trunk/; revision=23397
2007-08-29 13:35:53 +00:00
Jakub Friedl d32c7ca45f Removes the fprint function. Values are printed using g_snprintf and "%g"
2007-08-29  Jakub Friedl  <jfriedl@suse.cz>

	* plug-ins/common/convmatrix.c: Removes the fprint function.
	Values are printed using g_snprintf and "%g" which supresses
	trailing zeroes. Fixes bug #471051.


svn path=/trunk/; revision=23396
2007-08-29 12:10:56 +00:00
Raphael Quinet 24ad8c8200 applied modified patch from Nils Philippsen that uses the glib endianness
2007-08-29  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/pcx.c: applied modified patch from Nils
	Philippsen that uses the glib endianness conversion macros instead
	of the ones provided in the old code (broken on S390/S390x).
	Fixes bug #471189.

svn path=/trunk/; revision=23394
2007-08-29 12:01:01 +00:00
Michael Natterer c53ed0aba8 gimp-selection-* procedures operate on the image_ID, not on the selection
2007-08-29  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/lcms.c (lcms_image_apply_profile):
	gimp-selection-* procedures operate on the image_ID, not on the
	selection drawable_ID itself. Fixes bug #470589. Also remove the
	saved selection channel after reloading it.


svn path=/trunk/; revision=23393
2007-08-29 11:42:38 +00:00
Jakub Friedl 4f4d1bf384 CLAMP()ing the red value so that it is in the 0-255 range. Fixes bug
2007-08-28  Jakub Friedl  <jfriedl@suse.cz>

	* plug-ins/common/redeye.c: CLAMP()ing the red value
	so that it is in the 0-255 range. Fixes bug #470914.


svn path=/trunk/; revision=23386
2007-08-28 11:16:50 +00:00
Michael Natterer 091b202065 stylistic cleanup.
2007-08-24  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/scatter_hsv.c: stylistic cleanup.


svn path=/trunk/; revision=23359
2007-08-24 13:49:05 +00:00
Jakub Friedl 5669fb5da3 fixing bug #469519 and some cleanup.
2007-08-24  Jakub Friedl  <jfriedl@suse.cz>

  * plug-ins/common/scatter_hsv.c: fixing
    bug #469519 and some cleanup.


svn path=/trunk/; revision=23358
2007-08-24 12:46:48 +00:00
Sven Neumann 57ffb727f2 applied patch from Aurimas Juška to fix bug #467368.
2007-08-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/whirlpinch.c: applied patch from Aurimas Juška 
to
	fix bug #467368.


svn path=/trunk/; revision=23295
2007-08-16 19:12:37 +00:00
Sven Neumann 3b1795ab9d applied patch from Aurimas Juška to fix bug #467369.
2007-08-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/polar.c: applied patch from Aurimas Juška to 
fix
	bug #467369.


svn path=/trunk/; revision=23294
2007-08-16 19:10:55 +00:00
Sven Neumann 7cdc24d69e libgimpwidgets/gimpcolorprofilecombobox.[ch]
2007-08-14  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpcolorprofilecombobox.[ch]
	* libgimpwidgets/gimpcolorprofilestore.[ch]
	* libgimpwidgets/gimpcolorprofilestore-private.h: changed API to
	deal with filenames instead of URIs.

	* app/widgets/gimpprofilechooserdialog.[ch]: same here.

	* app/dialogs/preferences-dialog.c
	* plug-ins/common/lcms.c: changed accordingly.


svn path=/trunk/; revision=23260
2007-08-14 22:12:37 +00:00
Sven Neumann dd7c014e09 set the URI of the profile, not the filename
svn path=/trunk/; revision=23255
2007-08-14 16:16:33 +00:00
Sven Neumann e825b7ccb1 app/dialogs/preferences-dialog.c don't unref the file-chooser dialog.
2007-08-14  Sven Neumann  <sven@gimp.org>

	* app/dialogs/preferences-dialog.c
	* plug-ins/common/lcms.c: don't unref the file-chooser dialog.

svn path=/trunk/; revision=23254
2007-08-14 16:10:08 +00:00
Sven Neumann f3675a45ad libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h
2007-08-14  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpcolorprofilecombobox.[ch]
	* libgimpwidgets/gimpcolorprofilestore.[ch]
	* libgimpwidgets/gimpcolorprofilestore-private.h: new widget to
	select color profiles.

	* libgimpwidgets/gimpwidgets.def: updated.

	* app/widgets/gimpprofilechooserdialog.[ch]: remember the name of
	the last previewed profile.

	* app/dialogs/preferences-dialog.c: use the new color profile
	combo-box.

	* plug-ins/common/lcms.c: use the new color profile combo-box.

svn path=/trunk/; revision=23253
2007-08-14 16:01:04 +00:00
Raphael Quinet 611a104c34 plug-ins/common/dicom.c plug-ins/common/psd-load.c applied patch from Nils
2007-08-14  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/dicom.c
	* plug-ins/common/psd-load.c
	* plug-ins/common/sunras.c: applied patch from Nils Philippsen
	that replaces several calls to g_error() by g_message() and
	gimp_quit() so that GIMP does not complain when a plug-in exits.
	Fixes bug #466610.

svn path=/trunk/; revision=23250
2007-08-14 14:15:03 +00:00
Sven Neumann bb3fd269ac fixed calculation of alpha value (bug #466402).
2007-08-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/csource.c (save_image): fixed calculation of
	alpha value (bug #466402).

svn path=/trunk/; revision=23247
2007-08-14 09:04:01 +00:00
Sven Neumann 9b7db4c28d further work on the dialog.
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: further work on the dialog.



svn path=/trunk/; revision=23219
2007-08-11 19:50:58 +00:00
Sven Neumann 52531a45a5 factored out code to a utility function.
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: factored out code to a utility 
function.


svn path=/trunk/; revision=23216
2007-08-11 19:30:12 +00:00
Sven Neumann 5a748730fd don't open the destination profile twice.
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: don't open the destination profile 
twice.


svn path=/trunk/; revision=23215
2007-08-11 19:14:11 +00:00
Sven Neumann a211b4ffd4 if the image has a selection, save it, unset it and restore it after the
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_icc_apply): if the image has a
	selection, save it, unset it and restore it after the 
conversion.


svn path=/trunk/; revision=23214
2007-08-11 18:55:24 +00:00
Sven Neumann 3b2ed82ef5 plug-ins/common/lcms.c plug-ins/common/png.c plug-ins/common/tiff-load.c
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c
	* plug-ins/common/png.c
	* plug-ins/common/tiff-load.c
	* plug-ins/jpeg/jpeg-load.c: made the icc-profile undoable and
	persistent.
	
	* devel-docs/parasites.txt: document this.

	* plug-ins/common/lcms.c: made colorspace conversion undoable.
	
	* app/file/file-open.c: disable undo while doing the colorspace
	conversion on load.


svn path=/trunk/; revision=23213
2007-08-11 18:27:01 +00:00
Sven Neumann 7f5d403615 added "<Image>/Image/Mode/Color Profile" as a placeholder below the Image
2007-08-11  Sven Neumann  <sven@gimp.org>

	* menus/image-menu.xml.in: added "<Image>/Image/Mode/Color 
Profile"
	as a placeholder below the Image Mode radio items.

	* plug-ins/common/lcms.c (query): register menu entries to 
assign
	and apply color profiles. Dialog implementation is still 
missing...



svn path=/trunk/; revision=23211
2007-08-11 16:30:12 +00:00
Sven Neumann abbd60c5e6 fixed a bug that I introduced earlier today.
2007-08-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_image_get_profile): fixed a bug
	that I introduced earlier today.


svn path=/trunk/; revision=23153
2007-08-08 18:03:29 +00:00
Sven Neumann 4ab3e92782 modules/cdisplay_lcms.c corrected memory handling. cmsOpenProfileFromMem()
2007-08-08  Sven Neumann  <sven@gimp.org>

	* modules/cdisplay_lcms.c
	* plug-ins/common/lcms.c: corrected memory handling.
	cmsOpenProfileFromMem() actually copies the data.

	* libgimpwidgets/gimpcolordisplay.c
	* libgimpwidgets/gimpcolordisplaystack.c: disconnect in dispose().

svn path=/trunk/; revision=23148
2007-08-08 12:27:11 +00:00
Sven Neumann ce4675a17d don't write the sRGB chunk if the user asked for the gAMA chunk
svn path=/trunk/; revision=23136
2007-08-07 14:25:40 +00:00
Sven Neumann 80e10f9200 in the absence of an embedded color profile, write the sRGB chunk.
2007-08-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/png.c (save_image): in the absence of an
	embedded color profile, write the sRGB chunk.

svn path=/trunk/; revision=23135
2007-08-07 14:15:48 +00:00
Sven Neumann a90b367210 added the typedef here.
* plug-ins/common/poppler.c: added the typedef here.

svn path=/trunk/; revision=23131
2007-08-07 09:44:23 +00:00
Sven Neumann b53d51ca65 simplified.
2007-08-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (run): simplified.

svn path=/trunk/; revision=23123
2007-08-06 15:24:04 +00:00
Sven Neumann 99e399e523 set the base URI so that librsvg can resolve relative paths.
2007-08-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/svg.c (load_rsvg_pixbuf): set the base URI so
	that librsvg can resolve relative paths.

svn path=/trunk/; revision=23122
2007-08-06 08:57:25 +00:00
Sven Neumann c41bbc481c this plug-in doesn't need a tile cache.
2007-07-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tile.c: this plug-in doesn't need a tile cache.

svn path=/trunk/; revision=23079
2007-07-31 07:48:26 +00:00
Sven Neumann 2cff876952 formatting
svn path=/trunk/; revision=23062
2007-07-29 17:10:24 +00:00
Sven Neumann 5a74a589a1 plug-ins/common/tiff-load.c use g_open() to open the file. Should fix
2007-07-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff-load.c
	* plug-ins/common/tiff-save.c: use g_open() to open the file.
	Should fix filename encoding problems on Win32 (bug #461449).


svn path=/trunk/; revision=23061
2007-07-29 11:26:36 +00:00
Sven Neumann 25a71520b8 also calculate the checksum when loading the RGB profile from disk (bug
2007-07-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: also calculate the checksum when 
loading
	the RGB profile from disk (bug #456017).


svn path=/trunk/; revision=23060
2007-07-29 10:50:45 +00:00
Sven Neumann 2337e7a047 applied patch from Aurimas Juška that changes the Jigsaw plug-in to use a
2007-07-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/jigsaw.c: applied patch from Aurimas Juška
	that changes the Jigsaw plug-in to use a GimpAspectPreview 
instead
	of a GimpZoomPreview (bug #356716).


svn path=/trunk/; revision=23045
2007-07-27 14:02:15 +00:00
Michael Natterer 35fe03f329 change the default mask file suffix from "_mask" to "-mask".
2007-07-26  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/xbm.c: change the default mask file suffix from
	"_mask" to "-mask".


svn path=/trunk/; revision=23015
2007-07-26 15:26:57 +00:00
Raphael Quinet e1c7012876 added support for reading indexed TGA images with transparency information
2007-07-20  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/tga.c (ReadImage): added support for reading
	indexed TGA images with transparency information in the colormap.
	These images are now promoted to RGBA.  Fixes bug #445559.
	(save_image): save INDEXEDA images correctly instead of saving
	uninitialized tile data to the file.

svn path=/trunk/; revision=22971
2007-07-20 21:56:55 +00:00
Sven Neumann 10acbe9f7b only register one save MIME handler. Fixes bug #457045.
2007-07-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/png.c: only register one save MIME handler.
	Fixes bug #457045.

svn path=/trunk/; revision=22936
2007-07-16 10:12:32 +00:00
Raphael Quinet 3f1949a340 safeguard to avoid crashes while loading corrupt PSD images. Fixes bug
2007-07-13  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/psd-load.c (load_image): safeguard to avoid
	crashes while loading corrupt PSD images.  Fixes bug #327444.

svn path=/trunk/; revision=22922
2007-07-13 09:29:58 +00:00
Sven Neumann 17446e30c1 use g_printerr() for debug output.
2007-07-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-load.c: use g_printerr() for debug output.


svn path=/trunk/; revision=22921
2007-07-13 06:38:10 +00:00
Sven Neumann 7c31e0eb69 don't divide by zero when loading a layer or mask with zero width or
2007-07-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-load.c: don't divide by zero when loading 
a
	layer or mask with zero width or height. Fixes bug #456042.


svn path=/trunk/; revision=22915
2007-07-12 06:31:49 +00:00
Sven Neumann 137d4532bd added debug output so that we can find out if the new code does the
right thing

svn path=/trunk/; revision=22914
2007-07-11 20:54:10 +00:00
Sven Neumann 20e66d7ad8 improved debug output
svn path=/trunk/; revision=22913
2007-07-11 20:36:49 +00:00
Sven Neumann 2e359cca5a clarify which procedures work with RGB profiles and which accept profiles
2007-07-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: clarify which procedures work with RGB
	profiles and which accept profiles for other colorspaces.
	Calculate MD5 checksums of the profile data excluding the header
	and skip attempts to convert between identical profiles (bug #456017).


svn path=/trunk/; revision=22912
2007-07-11 20:31:18 +00:00
Sven Neumann 7b19c74d10 minor layout tweak.
2007-07-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/channel_mixer.c: minor layout tweak.

	* libgimpwidgets/gimppreviewarea.c 
(gimp_preview_area_set_colormap):
	clear the colormap to all zeros before setting the new colors.


svn path=/trunk/; revision=22893
2007-07-06 20:47:44 +00:00
Sven Neumann ee0572b45d plug-ins/common/psd-load.c use UTF-16 encoding instead of UCS-2 for layer
2007-07-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-load.c 
	* plug-ins/common/psd-save.c: use UTF-16 encoding instead of 
UCS-2
	for layer names (bug #445316).


svn path=/trunk/; revision=22890
2007-07-06 18:02:35 +00:00
Sven Neumann 361ecc6817 applied part of a patch from John Marshall that fixes handling of the
2007-07-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-load.c (do_layer_record): applied part of a
	patch from John Marshall that fixes handling of the short layer
	name (bug #445316).

svn path=/trunk/; revision=22888
2007-07-06 12:44:50 +00:00
Mukund Sivaraman 2d6662cc95 validate size values read from files before using them to allocate memory.
2007-07-06  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/sunras.c: validate size values read from files
        before using them to allocate memory.


svn path=/trunk/; revision=22885
2007-07-06 09:01:38 +00:00
Mukund Sivaraman 16970ab4f0 validate size values read from files before using them to allocate memory.
2007-07-06  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/psd-load.c: validate size values read from files
        before using them to allocate memory.


svn path=/trunk/; revision=22883
2007-07-06 08:44:21 +00:00
Sven Neumann 52e636eed9 applied patch from Ulf-D. Ehlert that fixes disappearing buttons (bug
2007-07-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/displace.c: applied patch from Ulf-D. Ehlert
	that fixes disappearing buttons (bug #454011).

svn path=/trunk/; revision=22880
2007-07-05 17:44:37 +00:00
Raphael Quinet e6fc9f44c9 finished error handling cleanup.
2007-07-05  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/psp.c: finished error handling cleanup.

svn path=/trunk/; revision=22879
2007-07-05 17:26:32 +00:00
Sven Neumann 1cccddcde6 some cleanup to the error handling.
2007-07-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psp.c: some cleanup to the error handling.

svn path=/trunk/; revision=22878
2007-07-05 17:03:27 +00:00
Raphael Quinet 3ab6e2b560 check for invalid number of channels in a layer.
2007-07-05  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/psd-load.c (do_layer_record): check for invalid
	number of channels in a layer.

	* plug-ins/common/pcx.c (load_image): check for invalid image
	width or height.

	* plug-ins/bmp/bmpread.c: check for invalid image width or height,
	return if the image could not be read instead of trying to set the
	resolution or to flip a non-existing image.

svn path=/trunk/; revision=22877
2007-07-05 17:01:41 +00:00
Raphael Quinet 36787fe63b allow layer dimensions larger than 32768 while still checking for integer
2007-07-05  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/psp.c (read_layer_block): allow layer dimensions
	larger than 32768 while still checking for integer overflows.

svn path=/trunk/; revision=22866
2007-07-05 10:50:38 +00:00
Raphael Quinet 8cadeeb7d0 plug-ins/common/pnm.c (load_image) plug-ins/common/psp.c
2007-07-05  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/common/pnm.c (load_image)
	* plug-ins/common/psp.c (read_layer_block)
	* plug-ins/common/sunras.c (load_image)
	* plug-ins/common/xbm.c (load_image)
	* plug-ins/common/xwd.c (load_image): validate size values read
	from files before using them to allocate memory (bug #451379).

svn path=/trunk/; revision=22865
2007-07-04 23:32:15 +00:00
Mukund Sivaraman 93d908b4bb validate size values read from files before using them to allocate memory.
2007-07-04  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/psd-load.c: validate size values read from files
        before using them to allocate memory.


svn path=/trunk/; revision=22863
2007-07-04 12:15:27 +00:00
Mukund Sivaraman 12f9898386 validate size values read from files before using them to allocate memory.
2007-07-04  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/dicom.c: validate size values read from files
        before using them to allocate memory.


svn path=/trunk/; revision=22862
2007-07-04 11:34:39 +00:00
Sven Neumann a956d53689 call gimp_drawable_update() on the destination drawable.
2007-06-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tile.c (tile): call gimp_drawable_update() on
	the destination drawable.

	* plug-ins/common/tiff-load.c: formatting.

svn path=/trunk/; revision=22844
2007-06-27 08:15:54 +00:00
Sven Neumann 328d0a09b6 corrected spacing.
2007-06-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/newsprint.c (newsprint_dialog): corrected spacing.

svn path=/trunk/; revision=22826
2007-06-22 15:24:11 +00:00
Sven Neumann 44e155c980 set the minimum grid size to 1. Fixes bug #450001.
2007-06-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/align_layers.c: set the minimum grid size to 1.
	Fixes bug #450001.

svn path=/trunk/; revision=22825
2007-06-22 13:35:06 +00:00
Sven Neumann d2375568be fixed an issue with the fix for bug #413906.
2007-06-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/autocrop.c (autocrop): fixed an issue with the
	fix for bug #413906.


svn path=/trunk/; revision=22810
2007-06-21 06:06:27 +00:00
Sven Neumann 33429e9fe2 applied patch from Paul Seidel with further improvements to the playback
2007-06-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/animationplay.c: applied patch from Paul 
Seidel
	with further improvements to the playback speed control (bug 
#338380).


svn path=/trunk/; revision=22809
2007-06-20 20:04:33 +00:00
Sven Neumann 493c9abde1 use gimp_message() for error handling.
2007-06-18  Sven Neumann  <sven@gimp.org>

	* app/file/file-open.c (file_open_from_command_line): use
	gimp_message() for error handling.

	* plug-ins/common/psd-load.c (seek_to_and_unpack_pixeldata): 
check
	channel dimensions to avoid potential integer overflow. Some 
minor
	cleanups to error messages.


svn path=/trunk/; revision=22796
2007-06-18 19:31:33 +00:00
Sven Neumann c0b79ec39a applied modified patch from Paul Seidel that adds controls for the
2007-06-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/animationplay.c: applied modified patch from
	Paul Seidel that adds controls for the playback speed (bug 
#338380).


svn path=/trunk/; revision=22794
2007-06-18 06:51:51 +00:00
Sven Neumann c5437ea092 applied patch from Daniel Richard G. which adds a new PDB entry with more
2007-06-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/oilify.c: applied patch from Daniel Richard G.
	which adds a new PDB entry with more options and improves speed
	and quality of the algorithm (bug #347075).


svn path=/trunk/; revision=22793
2007-06-18 06:18:42 +00:00
Sven Neumann 9e1604a973 coding style improvements.
2007-06-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-save.c: coding style improvements.


svn path=/trunk/; revision=22791
2007-06-16 13:16:34 +00:00
Sven Neumann 373b6bfc9f applied patch from Eric Ross that changes the PSD save plug-in to save an
2007-06-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-save.c: applied patch from Eric Ross that
	changes the PSD save plug-in to save an extra data block with 
the
	layer names in UCS-2 encoding (bug #447267).


svn path=/trunk/; revision=22790
2007-06-16 13:04:08 +00:00
Mukund Sivaraman 152f2a28f9 prepend instead of appending to list.
2007-06-13  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c: prepend instead of appending to list.


svn path=/trunk/; revision=22775
2007-06-13 17:31:02 +00:00
Mukund Sivaraman 0a1285fdae small fix to the previous commit in how layers are skipped.
2007-06-13  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c: small fix to the previous commit
        in how layers are skipped.


svn path=/trunk/; revision=22770
2007-06-13 11:43:08 +00:00
Mukund Sivaraman a8ab7fad18 don't load any layers from a TIFF directory which don't match the mode of
2007-06-13  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c: don't load any layers from a TIFF
        directory which don't match the mode of the first image in the TIFF 
        directory.


svn path=/trunk/; revision=22769
2007-06-13 09:57:43 +00:00
Sven Neumann 5ead9fdacd initialize the GtkAdjustment used for the rotation angle; fixes bug
2007-06-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c: initialize the GtkAdjustment used
	for the rotation angle; fixes bug #446681.

svn path=/trunk/; revision=22765
2007-06-12 14:19:01 +00:00
Sven Neumann dfeaec0861 applied slightly modified patch from Eric Ross that adds support for
2007-06-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd-load.c: applied slightly modified patch 
from
	Eric Ross that adds support for loading long layer names from 
the
	extra layer data section (bug #445316).


svn path=/trunk/; revision=22763
2007-06-12 06:37:34 +00:00
Michael Schumacher ae37e4e257 if load_image fails, return GIMP_PDB_EXECUTION_ERROR
2007-06-11  Michael Schumacher  <schumaml@cvs.gnome.org>

	* plug-ins/common/raw.c (run): if load_image fails, return
	GIMP_PDB_EXECUTION_ERROR 

	* plug-ins/twain/twain.c (run): added missing ;

svn path=/trunk/; revision=22759
2007-06-11 20:40:32 +00:00
Sven Neumann 65385a4781 added gimp_image_resize_to_selection().
2007-06-09  Sven Neumann  <sven@gimp.org>

	* app/core/gimpimage-resize.[ch]: added
	gimp_image_resize_to_selection().

	* app/actions/image-actions.c
	* app/actions/image-commands.[ch]
	* app/widgets/gimphelp-ids.h
	* menus/image-menu.xml.in: added an action and a menu item for 
it.
	Fixes bug #335672.

	* plug-ins/common/align_layers.c: resolved a conflicting 
mnemonic.


svn path=/trunk/; revision=22749
2007-06-09 17:17:30 +00:00
Mukund Sivaraman c2d1214551 Changed "The GIMP" to "GIMP" everywhere, where it's used as a name.
2007-06-06  Mukund Sivaraman  <muks@mukund.org>

        Changed "The GIMP" to "GIMP" everywhere, where it's used as a name.


svn path=/trunk/; revision=22715
2007-06-06 08:44:52 +00:00
Simon Budig 95a23ed0dd Oops, quick fix.
svn path=/trunk/; revision=22713
2007-06-05 14:33:44 +00:00
Simon Budig d54d09d050 plug-ins/common/tiff-load.c Implement the proposed scheme for storing
2007-06-05  Simon Budig  <simon@gimp.org>

	* plug-ins/common/tiff-load.c
	* plug-ins/common/tiff-save.c: Implement the proposed scheme for
	storing international path names in TIFF files.


svn path=/trunk/; revision=22712
2007-06-05 14:26:42 +00:00
Mukund Sivaraman 97ded8c030 Don't write to an uninitialized pointer (end).
2007-05-31  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/spheredesigner.c: Don't write to an uninitialized  
        pointer (end).


svn path=/trunk/; revision=22681
2007-05-31 10:15:06 +00:00
Mukund Sivaraman c5fafe783f Added format strings to dangerous fprintf() calls without them which
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/mail.c: Added format strings to dangerous  
        fprintf() calls without them which directly print variable data.       


svn path=/trunk/; revision=22678
2007-05-30 17:57:26 +00:00
Mukund Sivaraman 7a377dafe2 Replaced hardcoded constant with sizeof array.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/decompose.c: Replaced hardcoded constant with
        sizeof array.


svn path=/trunk/; revision=22676
2007-05-30 17:40:22 +00:00
Mukund Sivaraman e6d21475d3 Replaced g_malloc()+sprintf() with more safe g_strdup_printf().
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/gtm.c: Replaced g_malloc()+sprintf() with more
        safe g_strdup_printf().


svn path=/trunk/; revision=22675
2007-05-30 17:37:42 +00:00
Mukund Sivaraman 5163b6fcd0 Use strncpy() instead of strcpy() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/decompose.c: Use strncpy() instead of strcpy() to
        avoid buffer overflows.


svn path=/trunk/; revision=22674
2007-05-30 17:26:24 +00:00
Mukund Sivaraman f111033d15 Specify maximum field width in sscanf() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/compose.c: Specify maximum field width in
        sscanf() to avoid buffer overflows.


svn path=/trunk/; revision=22673
2007-05-30 17:15:38 +00:00
Mukund Sivaraman edd086bb5f Specify maximum field width in fscanf() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/channel_mixer.c: Specify maximum field width in
        fscanf() to avoid buffer overflows.


svn path=/trunk/; revision=22672
2007-05-30 17:11:13 +00:00
Mukund Sivaraman ddd9121be0 Use strncpy() instead of strcpy() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/gqbist.c: Use strncpy() instead of strcpy() to
        avoid buffer overflows.


svn path=/trunk/; revision=22667
2007-05-30 16:00:10 +00:00
Mukund Sivaraman 8b3e91c015 Use strncpy() instead of strcpy() to avoid buffer overflows.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/gtm.c: Use strncpy() instead of strcpy() to avoid
        buffer overflows.


svn path=/trunk/; revision=22666
2007-05-30 15:54:00 +00:00
Sven Neumann bb89e53743 minor code cleanup.
2007-05-29  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/postscript.c: minor code cleanup.

svn path=/trunk/; revision=22657
2007-05-29 15:29:37 +00:00
Sven Neumann 97b41ca939 clamping at 255 is good enough.
2007-05-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gauss.c: clamping at 255 is good enough.


svn path=/trunk/; revision=22637
2007-05-27 22:52:49 +00:00
Sven Neumann 2afa8ea385 clamp to [0;255]. Fixes bug #441681.
2007-05-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gauss.c: clamp to [0;255]. Fixes bug #441681.


svn path=/trunk/; revision=22636
2007-05-27 22:28:52 +00:00
Sven Neumann 9cea61d6b0 applied patch from Aurimas Juška that fixes use of the GimpZoomPreview
2007-05-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lens.c: applied patch from Aurimas Juška that
	fixes use of the GimpZoomPreview widget (bug #356716).


svn path=/trunk/; revision=22621
2007-05-25 17:04:52 +00:00
Sven Neumann dfc676e2f5 formatting, added const qualifiers.
2007-05-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/bumpmap.c: formatting, added const qualifiers.

svn path=/trunk/; revision=22602
2007-05-24 15:39:44 +00:00
Tor Lillqvist 9ab35b10ce Use memset() instead of bzero().
2007-05-23  Tor Lillqvist  <tml@novell.com>

	* plug-ins/common/tiff-save.c (save_paths): Use memset() instead
	of bzero().


svn path=/trunk/; revision=22591
2007-05-23 10:23:37 +00:00
Sven Neumann 618f648c21 pass the GimpProgress to gimp_message().
2007-05-21  Sven Neumann  <sven@gimp.org>

	* app/pdb/gimpprocedure.c (gimp_procedure_validate_args): pass the
	GimpProgress to gimp_message().

	* plug-ins/common/bumpmap.c: reduced number of progress updates.

svn path=/trunk/; revision=22551
2007-05-21 15:57:22 +00:00
Simon Budig af3fa9409b correctly pad the path name.
2007-05-20  Simon Budig  <simon@gimp.org>

	* plug-ins/common/tiff-save.c: correctly pad the path name.


svn path=/trunk/; revision=22543
2007-05-20 18:43:22 +00:00
Sven Neumann 017702c026 try to use the window name as layer name.
2007-05-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: try to use the window name as
	layer name.

svn path=/trunk/; revision=22535
2007-05-18 14:18:49 +00:00
Sven Neumann 5ba374ee58 split code to get the page name into a utility function.
2007-05-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff-load.c: split code to get the page name
	into a utility function.


svn path=/trunk/; revision=22527
2007-05-17 19:51:25 +00:00
Simon Budig c46ab36d63 Fix the order of the imported paths.
2007-05-17  Simon Budig  <simon@gimp.org>

	* plug-ins/common/tiff-load.c: Fix the order of the imported paths.


svn path=/trunk/; revision=22518
2007-05-17 00:22:11 +00:00
Simon Budig c7ae38473f save the paths in the TIFF. Please test interoperability with other
2007-05-17  Simon Budig  <simon@gimp.org>

	* plug-ins/common/tiff-save.c: save the paths in the TIFF.
	Please test interoperability with other programs.

	* plug-ins/common/tiff-load.c: fix coordinate reading for
	negative coordinates.

	* app/config/gimpguiconfig.c: Show color swatches by default.


svn path=/trunk/; revision=22517
2007-05-16 23:56:51 +00:00
Sven Neumann 3c9f28cc1e applied patch from Jörg Gittinger that improves the quality of the Motion
2007-05-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mblur.c: applied patch from Jörg Gittinger 
that
	improves the quality of the Motion Blur filter (bug #380435).


svn path=/trunk/; revision=22513
2007-05-16 17:40:13 +00:00
Sven Neumann a8012cc453 plug-ins/common/wmf.c plug-ins/fits/fits.c plug-ins/sel2path/sel2path.c
2007-05-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/wmf.c
	* plug-ins/fits/fits.c
	* plug-ins/sel2path/sel2path.c
	* plug-ins/xjt/xjt.c: added missing calls to
	gimp_window_set_transient().


svn path=/trunk/; revision=22492
2007-05-15 11:58:56 +00:00
Sven Neumann 687db3d69e plug-ins/common/svg.c plug-ins/common/tiff-load.c
2007-05-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/svg.c
	* plug-ins/common/tiff-load.c
	* plug-ins/common/postscript.c
	* plug-ins/common/poppler.c: added missing calls to
	gimp_window_set_transient().

	* libgimp/gimppixbuf.c (gimp_layer_new_from_pixbuf): reduced
	number of progress updates.


svn path=/trunk/; revision=22491
2007-05-15 07:12:15 +00:00
Karine Delvare 88387b44ff use the new preview transform function, see bug #356716.
2007-05-11  Karine Delvare  <edhel@gimp.org>

	* plug-ins/common/illusion.c: use the new preview transform function, 
	see bug #356716.


svn path=/trunk/; revision=22473
2007-05-11 16:44:10 +00:00
Karine Delvare 466c31c090 use the new preview transform function, see bug #356716.
2007-05-09  Karine Delvare  <edhel@gimp.org>

	* plug-ins/common/waves.c: use the new preview transform function, 
	see bug #356716.


svn path=/trunk/; revision=22463
2007-05-09 17:00:46 +00:00
Sven Neumann 26855b3c55 added missing newline
svn path=/trunk/; revision=22462
2007-05-09 16:19:28 +00:00
Sven Neumann ddbfbace2e improved handling of attached non-RGB profiles.
2007-05-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c (lcms_icc_apply): improved handling of
	attached non-RGB profiles.

	* plug-ins/common/oilify.c: use GIMP_RGB_LUMINANCE() instead of
	the self-made INTENSITY macro.

	* plug-ins/common/tiff-load.c
	* plug-ins/common/tiff-save.c: reduced number of progress 
updates.


svn path=/trunk/; revision=22461
2007-05-09 16:14:18 +00:00
Karine Delvare 8fab276517 use the new preview transform function, see bug #356716.
2007-05-08  Karine Delvare  <edhel@gimp.org>

	* plug-ins/common/flarefx.c: use the new preview transform function, 
	see bug #356716.


svn path=/trunk/; revision=22456
2007-05-08 20:12:36 +00:00
Karine Delvare bc893ebbd9 Replace tile size with width & height, without changing the plug-in
2007-05-08  Karine Delvare  <edhel@gimp.org>

	* plug-ins/common/papertile.c: Replace tile size with width & height,
	without changing the plug-in interface (bug #87092).


svn path=/trunk/; revision=22455
2007-05-08 18:09:16 +00:00
Sven Neumann 9394509e73 update the progress less often
svn path=/trunk/; revision=22447
2007-05-07 09:22:46 +00:00
Sven Neumann d3a085d0da clamp to the first row, not the second.
2007-05-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/blur.c (blur_prepare_row): clamp to the first
	row, not the second.

svn path=/trunk/; revision=22446
2007-05-07 09:14:59 +00:00
Sven Neumann 4ac3342412 reduce rounding errors when converting between premultiplied and separated
2007-05-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gauss.c: reduce rounding errors when 
converting
	between premultiplied and separated alpha. Fixes bug #383870.


svn path=/trunk/; revision=22445
2007-05-07 07:36:56 +00:00
Sven Neumann 0d7835ac5b try to do something reasonable for the empty source range (bug #436145).
2007-05-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/mapcolor.c: try to do something reasonable for
	the empty source range (bug #436145).


svn path=/trunk/; revision=22441
2007-05-06 19:23:03 +00:00
Michael Natterer 9eb92fa094 whitespace cleanup, tabs -> spaces.
2007-05-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/papertile.c: whitespace cleanup, tabs -> spaces.


svn path=/trunk/; revision=22423
2007-05-05 18:59:49 +00:00
Sven Neumann e47366fa2f crop the image, even if the layer is fully opaque. Fixes bug #413906.
2007-05-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/autocrop.c (autocrop): crop the image, even if
	the layer is fully opaque. Fixes bug #413906.

svn path=/trunk/; revision=22413
2007-05-04 12:36:08 +00:00
Sven Neumann 0bcf615e24 special case fully transparent regions, just as we do in
2007-05-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/autocrop.c (guess_bgcolor): special case fully
	transparent regions, just as we do in app/core/gimpimage-crop.c.
	Fixes bug #357554.

	* app/core/gimpimage-crop.c: cosmetics.

svn path=/trunk/; revision=22412
2007-05-04 12:21:26 +00:00
Mukund Sivaraman 2a7d1e524d reduced the number of progress updates.
2007-05-04  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/edge.c: reduced the number of progress updates.


svn path=/trunk/; revision=22408
2007-05-04 11:16:51 +00:00
Mukund Sivaraman 6fcabcac46 whoops. fixed progress when selections exist.
2007-05-04  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/fractaltrace.c: whoops. fixed progress when
        selections exist.


svn path=/trunk/; revision=22407
2007-05-04 10:56:44 +00:00
Mukund Sivaraman 46e4bc9866 reduced the number of progress updates.
2007-05-04  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/fractaltrace.c: reduced the number of progress
        updates.


svn path=/trunk/; revision=22406
2007-05-04 10:49:22 +00:00
Sven Neumann 2b2f5c24fe reduced the number of progress updates.
2007-05-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/dog.c: reduced the number of progress updates.

svn path=/trunk/; revision=22405
2007-05-04 10:46:48 +00:00
Sven Neumann 3dd732d750 fixed a bug in my last change. Also reduced the number of progress
2007-05-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/gauss.c (gauss_rle): fixed a bug in my last change.
	Also reduced the number of progress updates.

svn path=/trunk/; revision=22404
2007-05-04 10:43:43 +00:00
Sven Neumann 62f5e5afcd removed unused functionality from the resolution entry widget.
2007-05-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/poppler.c: removed unused functionality from 
the
	resolution entry widget.


svn path=/trunk/; revision=22397
2007-05-04 07:16:05 +00:00
Mukund Sivaraman a1e23bab33 Fixed bogus argument in call to gimp_progress_update().
2007-05-04  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/psd-load.c: Fixed bogus argument in call to
        gimp_progress_update().  


svn path=/trunk/; revision=22396
2007-05-04 06:49:29 +00:00
William Skaggs e78be6be72 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* libgimpwidgets/gimpresolutionentry.[ch]: removed
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/Makefile.am: changed accordingly

	* plug-ins/pygimp/gimpui.defs: resolution entry api removed

	* plug-ins/common/poppler.c: resolution entry code added
	here, with unused api removed.

	Addresses (maybe fixes) bug #351281.

svn path=/trunk/; revision=22394
2007-05-03 22:13:48 +00:00
Sven Neumann f364a75f37 applied patch from Geert Jordaens plus some minor cleanups. Fixes bug
2007-05-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/despeckle.c: applied patch from Geert Jordaens
	plus some minor cleanups. Fixes bug #433251.


svn path=/trunk/; revision=22391
2007-05-03 20:53:25 +00:00
Mukund Sivaraman 798f694fce Make size loading work properly with new librsvg versions.
2007-05-02  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/svg.c: Make size loading work properly with
        new librsvg versions.

        * configure.in: bumped required librsvg version to 2.14.


svn path=/trunk/; revision=22382
2007-05-02 15:45:31 +00:00
Sven Neumann dd6fe2d23b set a size request on the GimpPageSelector widget.
2007-05-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/poppler.c (load_dialog): set a size request on
	the GimpPageSelector widget.

svn path=/trunk/; revision=22380
2007-05-02 14:30:17 +00:00
Sven Neumann 00ef80ea49 guard against a possible stack overflow.
2007-04-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/sunras.c (set_color_table): guard against a
	possible stack overflow.

svn path=/trunk/; revision=22355
2007-04-27 11:50:00 +00:00
Sven Neumann e3fb63d568 use PANGO_DISABLE_DEPRECATED for pango < 1.17.
2007-04-27  Sven Neumann  <sven@gimp.org>

	* configure.in: use PANGO_DISABLE_DEPRECATED for pango < 1.17.

	* plug-ins/common/sample_colorize.c: removed unused variable.

svn path=/trunk/; revision=22354
2007-04-27 11:14:26 +00:00
Sven Neumann 1cc3041d68 depend on poppler-glib >= 0.4.1.
2007-04-27  Sven Neumann  <sven@gimp.org>

	* configure.in: depend on poppler-glib >= 0.4.1.

	* plug-ins/common/poppler.c: removed ifdefs to handle older
	versions of the poppler library. Removed "antialias" toggle from
	the procedure API and from the GUI; it's not supported by poppler.


svn path=/trunk/; revision=22353
2007-04-27 10:12:12 +00:00
Mukund Sivaraman 93a7fc76a5 plug-ins/imagemap/imap_preferences.c plug-ins/gflare/gflare.c
2007-04-27  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/imagemap/imap_preferences.c
        * plug-ins/gflare/gflare.c
        * plug-ins/Lighting/lighting_ui.c
        * plug-ins/xjt/xjt.c
        * plug-ins/metadata/xmp-parse.c
        * plug-ins/flame/flame.c
        * plug-ins/common/curve_bend.c
        * plug-ins/common/compressor.c
        * plug-ins/common/channel_mixer.c
        * plug-ins/common/mail.c
        * plug-ins/common/CML_explorer.c
        * plug-ins/ifscompose/ifscompose.c: Open files in binary mode
        ("rb" and "wb").


svn path=/trunk/; revision=22351
2007-04-26 20:31:01 +00:00
Sven Neumann 3075f763ad app/paint-funcs/paint-funcs.c (gaussian_blur_region)
2007-04-26  Sven Neumann  <sven@gimp.org>

	* app/paint-funcs/paint-funcs.c (gaussian_blur_region)
	* plug-ins/common/blur.c (blur)
	* plug-ins/common/gauss.c (do_encoded_lre) (do_full_lre): reduce
	rounding errors.

	* plug-ins/common/checkerboard.c (checkerboard_dialog): layout
	improvements.

svn path=/trunk/; revision=22345
2007-04-26 14:30:07 +00:00
Mukund Sivaraman fef631cc22 disabled the layer offsets saving code. This can be re-enabled in 2.6,
2007-04-26  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-save.c: disabled the layer offsets saving
        code. This can be re-enabled in 2.6, when the load plug-in is
        patched to support these saved offsets.

        * plug-ins/common/tiff-load.c: marked the code for the above
        with a TODO comment.


svn path=/trunk/; revision=22344
2007-04-26 12:20:56 +00:00
Mukund Sivaraman 355322d207 save the layer offsets too, to fix bug #419578.
2007-04-26  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-save.c: save the layer offsets too, to
        fix bug #419578.


svn path=/trunk/; revision=22340
2007-04-26 10:56:12 +00:00
Mukund Sivaraman 2524776c36 set a different filename when the number of pages loaded is lower than the
2007-04-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c: set a different filename when           
        the number of pages loaded is lower than the number of pages
        in the TIFF file.


svn path=/trunk/; revision=22334
2007-04-25 15:14:52 +00:00
Mukund Sivaraman 3d4b8267ed set the filename to the original filename in case of single-page loads.
2007-04-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c: set the filename to the original
        filename in case of single-page loads.


svn path=/trunk/; revision=22333
2007-04-25 14:59:23 +00:00
Mukund Sivaraman e1332790c7 moved the non-interactive check out of load_dialog() and into run().
2007-04-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c: moved the non-interactive check out  
        of load_dialog() and into run().  


svn path=/trunk/; revision=22331
2007-04-25 14:49:05 +00:00
Michael Natterer 7bf61525ad plug-ins/common/gif.c plug-ins/common/gifload.c plug-ins/common/psd.c
2007-04-25  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/gif.c
	* plug-ins/common/gifload.c
	* plug-ins/common/psd.c
	* plug-ins/common/psd_save.c: removed...

	* plug-ins/common/gif-load.c
	* plug-ins/common/gif-save.c
	* plug-ins/common/psd-load.c
	* plug-ins/common/psd-save.c: ...and renamed to make sense.

	* plug-ins/common/plugin-defs.pl
	* plug-ins/common/Makefile.am: changed accordingly.


svn path=/trunk/; revision=22328
2007-04-25 14:13:15 +00:00
Mukund Sivaraman 53c98d7186 plug-ins/common/tiff-load.c make progress bars progress to completion.
2007-04-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c
        * plug-ins/common/tiff-save.c: make progress bars progress to
        completion.


svn path=/trunk/; revision=22327
2007-04-25 14:10:20 +00:00
Mukund Sivaraman a484bf8aea plug-ins/common/tiff-load.c indentation changes.
2007-04-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c
        * plug-ins/common/tiff-save.c: indentation changes.


svn path=/trunk/; revision=22326
2007-04-25 13:56:10 +00:00
Mukund Sivaraman 55c87fb157 plug-ins/common/tiff-load.c fixed the names of the plug-in binary in
2007-04-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c
        * plug-ins/common/tiff-save.c: fixed the names of the plug-in binary
        in PLUG_IN_BINARY.


svn path=/trunk/; revision=22324
2007-04-25 13:45:10 +00:00
Mukund Sivaraman 63dc204724 plug-ins/common/tiff-load.c plug-ins/common/tiff-save.c
2007-04-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff-load.c
        * plug-ins/common/tiff-save.c
        * plug-ins/common/plugin-defs.pl
        * plug-ins/common/Makefile.am
        * configure.in
        * po-plug-ins/POTFILES.in: split TIFF load and save functionality
        into different plug-ins.

        * plug-ins/common/mkgen.pl: modified to allow plug-ins to override
        auto-generated library env; also use underscores instead of hyphens
        in the generated Makefile.am.

        * plug-ins/common/tiff.c: removed.


svn path=/trunk/; revision=22323
2007-04-25 13:36:47 +00:00
Sven Neumann 9e0e86f7bd minor cleanups.
2007-04-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/despeckle.c: minor cleanups.

svn path=/trunk/; revision=22320
2007-04-25 10:34:30 +00:00
Sven Neumann e3813131b7 also use the middle mouse button for panning.
2007-04-25  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpscrolledpreview.c: also use the middle mouse
	button for panning.

	* plug-ins/common/nova.c: override the default mouse handling of
	the GimpScrolledPreview and allow to reposition the center using
	the left mouse button. Fixes bug #364432.

	* app/tools/gimprectangletool.c: formatting.

svn path=/trunk/; revision=22319
2007-04-25 10:10:43 +00:00
Mukund Sivaraman 80f436aa5f initialize the pages[] array with the page sequence for non-niteractive
2007-04-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff.c: initialize the pages[] array with
        the page sequence for non-niteractive runs. Otherwise it'll
        simply load N copies of page 0.


svn path=/trunk/; revision=22316
2007-04-24 19:05:15 +00:00
Mukund Sivaraman 3a229d3631 fixed an issue where the page selection dialog was being shown even for
2007-04-25  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff.c: fixed an issue where the page selection
        dialog was being shown even for non-interactive runs.


svn path=/trunk/; revision=22315
2007-04-24 18:58:02 +00:00
Mukund Sivaraman 70fe65b8d0 added support to load multi-page TIFF images as single layered image or
2007-04-24  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/tiff.c: added support to load multi-page TIFF
        images as single layered image or multiple individual per-page
        images, after prompting the user for choice using a
        GimpPageSelector widget. Fixes the rest of bug #138495.


svn path=/trunk/; revision=22314
2007-04-24 18:36:35 +00:00
Mukund Sivaraman f9d489de2f set the page selector target from lastvals before showing the dialog
2007-04-24  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/poppler.c: set the page selector target
        from lastvals before showing the dialog


svn path=/trunk/; revision=22312
2007-04-24 17:42:11 +00:00
Sven Neumann 81ca227f3a increased MAX_THRESHOLD to 100.
2007-04-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/wind.c: increased MAX_THRESHOLD to 100.

svn path=/trunk/; revision=22308
2007-04-24 15:06:16 +00:00
Sven Neumann 6c7bfb61e0 unset 'show-border' on the GtkNotebook that holds the hints.
2007-04-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: unset 'show-border' on the
	GtkNotebook that holds the hints.

svn path=/trunk/; revision=22305
2007-04-24 10:29:01 +00:00
Sven Neumann d3b97df422 removed a conditional that has become obsolete now. Fixed indentation.
2007-04-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/fp.c (fp_render_preview): removed a 
conditional
	that has become obsolete now. Fixed indentation.


svn path=/trunk/; revision=22269
2007-04-17 19:16:59 +00:00
Sven Neumann cf25f5bffa deal better with drawables that are not the same size as the image. Fixes
2007-04-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/fp.c: deal better with drawables that are not
	the same size as the image. Fixes bug #430455.

svn path=/trunk/; revision=22266
2007-04-17 17:17:08 +00:00
Sven Neumann 4539c2a96d use g_malloc(); plugged memory leaks.
2007-04-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/fp.c: use g_malloc(); plugged memory leaks.

svn path=/trunk/; revision=22265
2007-04-17 16:30:08 +00:00
Michael Natterer 2951fbf1ea applied slightly modified patch from Aurimas Juška which adds an undo
2007-04-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/gqbist.c: applied slightly modified patch from
	Aurimas Juška which adds an undo button to go back to the previous
	state. Fixes bug #356662.


svn path=/trunk/; revision=22261
2007-04-17 08:17:43 +00:00
Sven Neumann 866514572c plug-ins/common/channel_mixer.c get rid of compiler warnings about
2007-04-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/channel_mixer.c
	* plug-ins/gfig/gfig-style.c: get rid of compiler warnings about
	dereferencing type-punned pointers.

svn path=/trunk/; revision=22239
2007-04-12 15:12:13 +00:00
Michael Schumacher a802571303 some file load plug-ins did call gimp_quit() in their load functions. This
2007-03-31  Michael Schumacher  <schumaml@cvs.gnome.org>

	* plug-ins/common/svg.c: 
	* plug-ins/common/tiff.c: 
	* plug-ins/common/wmf.c: 
	* plug-ins/jpeg/jpeg-load.c: some file load plug-ins did call
	gimp_quit() in their load functions. This aborts the plug-in
	instead of returning a GIMP_PDB_EXECUTION_ERROR. The run()
	function in each plug-in was already prepared to do this on
	errors.

svn path=/trunk/; revision=22212
2007-03-31 21:20:51 +00:00
Michael Schumacher 9057a3dfa4 Check if the files to be read or written and the temporary files have been
2007-03-26  Michael Schumacher  <schumaml@cvs.gnome.org>

	* plug-ins/common/compressor.c (save_image, load_image): 
	Check if the files to be read or written and the temporary files
	have been opened. Otherwise, bail out safely instead of causing a
	crash. Fixes bug #422444.

svn path=/trunk/; revision=22175
2007-03-26 22:43:46 +00:00
Sven Neumann 91975723d0 fixed incorrect PDB documentation.
2007-03-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/svg.c: fixed incorrect PDB documentation.


svn path=/trunk/; revision=22160
2007-03-21 18:04:46 +00:00
Martin Nordholts 84722e28dd Added comment to explain why the svg file provided resolution is not
2007-03-21  Martin Nordholts  <martin@svn.gnome.org>

	* plug-ins/common/svg.c (run): Added comment to explain why the
	svg file provided resolution is not clamped against
	GIMP_MIN/MAX_RESOLUTION.


svn path=/trunk/; revision=22159
2007-03-21 17:50:13 +00:00
Michael Natterer 5ba99bdacd app/actions/plug-in-actions.c GimpPlugInProcedure has a boolean member
2007-03-19  Michael Natterer  <mitch@gimp.org>

	* app/actions/plug-in-actions.c
	* app/menus/plug-in-menus.c: GimpPlugInProcedure has a boolean
	member "file_proc" now, use it instead of checking prefixes,
	extensions and magics manually.

	* app/plug-in/gimppluginprocedure.c
	(gimp_plug_in_procedure_set_mime_type)
	(gimp_plug_in_procedure_set_thumb_loader): set
	plug_in_proc->file_proc to TRUE here too.

	* plug-ins/common/pnm.c: register "image/x-portable-anymap" as
	mime-type and "pnm" as extension for file-pnm-save so it's
	recognized as file procedure.


svn path=/trunk/; revision=22152
2007-03-20 10:41:35 +00:00
Michael Natterer 0845a11c55 alow negative offsets in magics and interpret them as relative to the end
2007-03-17  Michael Natterer  <mitch@gimp.org>

	* app/file/file-utils.c (file_check_single_magic): alow negative
	offsets in magics and interpret them as relative to the end of the
	file.

	(file_utils_find_proc)
	(file_check_magic_list): some cleanup.

	* plug-ins/common/tga.c (query): register the magic string
	"TRUEVISION-XFILE.\0" 18 bytes before the end of the file.
	This way, "new style" TGA files are detected regardless of
	their filename. "old style" TGA files still need the right
	extension to be treated as TGA. Added "vda", "icb" and "vst"
	to the list of extensions. Fixes bug #133798.


svn path=/trunk/; revision=22138
2007-03-17 19:44:55 +00:00
Michael Natterer dd4042df85 Fix stuck progress bars (bug #393832):
2007-03-16  Michael Natterer  <mitch@gimp.org>

	Fix stuck progress bars (bug #393832):

	* app/plug-in/gimpplugin-progress.[ch] (gimp_plug_in_progress_end):
	added PlugInProcFrame parameter instead of blindly using the topmost
	in the procedure stack...

	* app/plug-in/gimppluginprocframe.c
	(gimp_plug_in_proc_frame_dispose): ...because we call it from here,
	when the proc_frame is already removed from the procedure stack.

	Unrelated:

	* plug-ins/script-fu/scripts/difference-clouds.scm: use
	RUN-INTERACTVE instead of 0, added (gimp-displays-flush)

	* plug-ins/common/snoise.c (solid_noide): update the progress to
	1.0 after rendering.


svn path=/trunk/; revision=22131
2007-03-15 23:39:32 +00:00
Sven Neumann c4c9dbc038 plug-ins/common/colorify.c plug-ins/common/max_rgb.c resolved clashing
2007-03-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/colorify.c
	* plug-ins/common/max_rgb.c
	* plug-ins/common/retinex.c: resolved clashing mnemonics (bug #414656).


svn path=/trunk/; revision=22045
2007-03-05 17:10:30 +00:00
Kevin Cozens a144b79cb5 De-tabified. Fixed limit checks on resource ID's used for path data. Added
2007-03-04  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/common/psd.c: De-tabified. Fixed limit checks on resource
	ID's used for path data. Added comments showing decimal value of image
	resource ID's 

	* plug-ins/common/psd_save.c: De-tabified. Added support for layer
	modes HARDLIGHT_MODE and SOFTLIGHT_MODE. Added comments showing
	decimal value of image resource ID's 

svn path=/trunk/; revision=22043
2007-03-05 04:52:42 +00:00
João S. O. Bueno Calligaris 4fb0b2a5bf add callback to resolution changes in the postscipt load dialog to update
2007-03-01 João S. O. Bueno Calligaris <gwidon@mpc.com.br>

        * plug-ins/common/postscript.c: add callback to resolution
        changes in the postscipt load dialog to update the image size
        in pixels.

svn path=/trunk/; revision=22035
2007-03-01 12:48:00 +00:00
Sven Neumann d197451496 configure.in added checks for X11 Shape Extension and build the shaped
2007-02-26  Sven Neumann  <sven@gimp.org>

	* configure.in
	* plug-ins/common/screenshot.c: added checks for X11 Shape
	Extension and build the shaped window feature conditionally.

svn path=/trunk/; revision=21993
2007-02-26 10:20:22 +00:00
Tor Lillqvist 35a0647fec Inspired by mail from a user, improve some error messages to be more
2007-02-23  Tor Lillqvist  <tml@novell.com>

	* plug-ins/common/psd.c: Inspired by mail from a user, improve
	some error messages to be more informative. Use g_message()
	instead of plain printf() in a couple of places in situations that
	probably are commonly encountered. (There are probably still more
	of such printf() calls in the code.) gimp_quit() doesn't return,
	not need to do anything else after calling it.


svn path=/trunk/; revision=21982
2007-02-23 12:32:03 +00:00
David Odin f56e698a77 use our indentation and spacing way.
* plug-ins/common/gee.c: use our indentation and spacing way.

svn path=/trunk/; revision=21967
2007-02-20 21:54:36 +00:00
Sven Neumann 29d4058a6d don't attempt to offset a NULL region
svn path=/trunk/; revision=21961
2007-02-20 15:54:04 +00:00
Sven Neumann 5d4480bbe4 reworked shape support. Instead of fiddling with pixbuf pixels, do most of
2007-02-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: reworked shape support. Instead of
	fiddling with pixbuf pixels, do most of the work in the core.


svn path=/trunk/; revision=21960
2007-02-20 15:48:41 +00:00
Sven Neumann 8edf062f7a check the return value of gimp_image_flatten(). Fixes the crash reported
2007-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/psd_save.c: check the return value of
	gimp_image_flatten(). Fixes the crash reported in bug #395385.


svn path=/trunk/; revision=21950
2007-02-19 13:29:05 +00:00
Sven Neumann b99f99f16c plug-ins/common/curve_bend.c plug-ins/common/depthmerge.c
2007-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/curve_bend.c
	* plug-ins/common/depthmerge.c
	* plug-ins/common/neon.c
	* plug-ins/common/nlfilt.c
	* plug-ins/common/pix.c
	* plug-ins/common/psd.c
	* plug-ins/common/spheredesigner.c
	* plug-ins/metadata/interface.c
	* plug-ins/pygimp/gimpmodule.c
	* plug-ins/pygimp/pygimp-pdb.c
	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-server.c
	* plug-ins/xjt/xjpeg.c
	* plug-ins/xjt/xjt.c: use g_printerr() instead of fprintf().


svn path=/trunk/; revision=21947
2007-02-19 10:37:33 +00:00
Michael Natterer ab239c3d63 app/text/gimptext-parasite.c use g_strtod() instead of atof() because
2007-02-18  Michael Natterer  <mitch@gimp.org>

	* app/text/gimptext-parasite.c
	* plug-ins/flame/libifs.c: use g_strtod() instead of atof()
	because these files have to parse strings that never had a clearly
	specified format.

	* plug-ins/script-fu/tinyscheme/scheme.c
	* plug-ins/imagemap/imap_cern.l
	* plug-ins/imagemap/imap_csim.l
	* plug-ins/imagemap/imap_csim.y
	* plug-ins/imagemap/imap_ncsa.l: use g_ascii_strtod() instead of
	atof() because scheme code and imagemap files with wrong decimal
	separators are clearly broken and should be rejected.

	* plug-ins/imagemap/imap_cern_lex.c
	* plug-ins/imagemap/imap_csim_lex.c
	* plug-ins/imagemap/imap_csim_parse.c
	* plug-ins/imagemap/imap_ncsa_lex.c: regenerated.

	* plug-ins/common/sample_colorize.c: round numbers using sane code
	instead of sprintf() and atod().

	* plug-ins/Lighting/lighting_ui.c: removed some dead code.


svn path=/trunk/; revision=21942
2007-02-18 20:01:48 +00:00
Mukund Sivaraman 1ad786f37c Moved an invariant (in the last changeset to this file) out of the loop.
2007-02-18  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/common/png.c: Moved an invariant (in the last
          changeset to this file) out of the loop.


svn path=/trunk/; revision=21935
2007-02-18 06:16:26 +00:00
Sven Neumann 5aae2f5853 changed hint and button label.
2007-02-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: changed hint and button label.


svn path=/trunk/; revision=21930
2007-02-16 13:53:06 +00:00
Mukund Sivaraman 528fbe92b3 improved handling of incomplete PNG files; fixes bug #137327.
2007-02-16  Mukund Sivaraman <muks@mukund.org>

        * plug-ins/common/png.c: improved handling of incomplete PNG files;
        fixes bug #137327.


svn path=/trunk/; revision=21929
2007-02-16 13:14:20 +00:00
Sven Neumann d59ce95379 let gimp_gamma() return 2.2 and document the fact that this is a fixed
2007-02-16  Sven Neumann  <sven@gimp.org>

	* libgimp/gimp.c: let gimp_gamma() return 2.2 and document the
	fact that this is a fixed value and that all pixel data is in the
	sRGB colorspace.

	* plug-ins/common/mng.c: removed check for gimp_gamma() returning 1.0.


svn path=/trunk/; revision=21927
2007-02-16 11:09:09 +00:00
Sven Neumann 12aa2f8a4d added a button icon and fixed use of gtk_vbox_new().
2007-02-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/lcms.c: added a button icon and fixed use of
	gtk_vbox_new().


svn path=/trunk/; revision=21926
2007-02-16 09:31:38 +00:00
Sven Neumann 4c2e1336e5 removed obsolete tooltip
svn path=/trunk/; revision=21925
2007-02-15 22:20:57 +00:00
Sven Neumann 42606415ae added hints to the dialog.
2007-02-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: added hints to the dialog.


svn path=/trunk/; revision=21924
2007-02-15 14:38:46 +00:00
Sven Neumann fd057b7f1b fixed the new code for windows that are partly offscreen
svn path=/trunk/; revision=21923
2007-02-15 12:07:40 +00:00
Sven Neumann 2515dc6864 for shaped windows, add an alpha channel and erase pixels outside the
2007-02-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/screenshot.c: for shaped windows, add an alpha
	channel and erase pixels outside the shape.

svn path=/trunk/; revision=21922
2007-02-15 10:23:34 +00:00
Sven Neumann 37606ad81d added CCITT Group 3 and 4 compression schemes to TIFF save plug-in. These
2007-02-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/tiff.c: added CCITT Group 3 and 4 compression
	schemes to TIFF save plug-in. These modes are selectable for
	indexed image with a b/w colormap only. Fixes bug #162119 with 
the
	help of Manfred Joerg.


svn path=/trunk/; revision=21915
2007-02-14 08:10:10 +00:00