Commit graph

5530 commits

Author SHA1 Message Date
Michael Natterer 31a5214fd5 app/base/tile-manager.c use G_STRLOC instead of G_GNUC_FUNCTION (which is
2008-01-28  Michael Natterer  <mitch@gimp.org>

	* app/base/tile-manager.c
	* plug-ins/common/lcms.c: use G_STRLOC instead of
	G_GNUC_FUNCTION (which is now deprecated).


svn path=/trunk/; revision=24727
2008-01-28 13:19:42 +00:00
Sven Neumann 0d14e2ce7d minor cleanup.
2008-01-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist/gimp.c: minor cleanup.


svn path=/trunk/; revision=24725
2008-01-28 07:17:34 +00:00
Kevin Cozens 7b67daac8d Dynamically allocate space to hold comments, links, strings, and
2008-01-27  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/imagemap/imap_cern.l:
	* plug-ins/imagemap/imap_cern.y: 
	* plug-ins/imagemap/imap_csim.l:
	* plug-ins/imagemap/imap_csim.y:
	* plug-ins/imagemap/imap_ncsa.l:
	* plug-ins/imagemap/imap_ncsa.y: Dynamically allocate space to hold
	comments, links, strings, and co-ordinate lists. Fixes bug #511072.

	* plug-ins/imagemap/imap_cern_lex.c:
	* plug-ins/imagemap/imap_cern_parse.c:
	* plug-ins/imagemap/imap_cern_parse.h:
	* plug-ins/imagemap/imap_csim_lex.c:
	* plug-ins/imagemap/imap_csim_parse.c:
	* plug-ins/imagemap/imap_csim_parse.h:
	* plug-ins/imagemap/imap_ncsa_lex.c:
	* plug-ins/imagemap/imap_ncsa_parse.c:
	* plug-ins/imagemap/imap_ncsa_parse.h: Regenerated.

svn path=/trunk/; revision=24722
2008-01-27 16:13:51 +00:00
Sven Neumann d1e1e0a166 transfer the pixels to the core on a tile-by-tile basis.
2008-01-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist/gimp.c (gimpressionist_main): transfer
	the pixels to the core on a tile-by-tile basis.


svn path=/trunk/; revision=24718
2008-01-27 13:45:11 +00:00
Sven Neumann 08c9552711 changed code that retrieves the source drawable to iterate over the data
2008-01-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/gimpressionist/gimp.c (grabarea): changed code that
	retrieves the source drawable to iterate over the data 
tile-by-tile.


svn path=/trunk/; revision=24717
2008-01-27 13:08:08 +00:00
Manish Singh feff2c6b6d no need to use a temporary in tuple translation, and clamp the result.
2008-01-26  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): no
        need to use a temporary in tuple translation, and clamp the result.

        * plug-ins/pygimp/gimpmodule.c (pygimp_set_background,
        pygimp_set_foreground): restore support for passing in 3 args for
        color components, for backward compatibility.

svn path=/trunk/; revision=24716
2008-01-27 05:09:28 +00:00
Joao S. O. Bueno 2ca4dcf882 fix subsequent error (calculated parameters where not used)
2008-01-26 Joao S. O. Bueno <gwidion@mpc.com.br>

        * plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix
        subsequent error (calculated parameters where not used)

svn path=/trunk/; revision=24715
2008-01-27 04:58:18 +00:00
Manish Singh dc84799993 fix error reporting.
2008-01-26  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-colors.c (pygimp_rgb_from_pyobject): fix
        error reporting.

svn path=/trunk/; revision=24714
2008-01-27 03:01:50 +00:00
Sven Neumann 6e4e25035b gracefully handle a NULL link. (mru_destruct): plugged a memory leak.
2008-01-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_mru.c (mru_remove_link): gracefully
	handle a NULL link.
	(mru_destruct): plugged a memory leak.

	* plug-ins/imagemap/imap_about.c: use "program-name" instead
	of "name".


svn path=/trunk/; revision=24686
2008-01-23 11:57:14 +00:00
Sven Neumann fc35b815a9 increased buffer size. Addresses bug #511072.
2008-01-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_csim.y: increased buffer size. Addresses
	bug #511072.

	* plug-ins/imagemap/imap_csim_parse.[ch]: regenerated.

svn path=/trunk/; revision=24673
2008-01-22 16:10:06 +00:00
Sven Neumann 39db00b89e corrected check of the bytesperline field which caused monochrome PCX
2008-01-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/pcx.c: corrected check of the bytesperline field
	which caused monochrome PCX images to be rejected (bug #510658).

svn path=/trunk/; revision=24670
2008-01-22 13:15:55 +00:00
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
Kevin Cozens 1f6ccb3c24 plug-ins/script-fu/scripts/3d-outline.scm
2008-01-15  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/3d-outline.scm
	* plug-ins/script-fu/scripts/add-bevel.scm
	* plug-ins/script-fu/scripts/burn-in-anim.scm
	* plug-ins/script-fu/scripts/camo.scm
	* plug-ins/script-fu/scripts/circuit.scm
	* plug-ins/script-fu/scripts/clothify.scm
	* plug-ins/script-fu/scripts/coffee.scm
	* plug-ins/script-fu/scripts/contactsheet.scm
	* plug-ins/script-fu/scripts/distress-selection.scm
	* plug-ins/script-fu/scripts/flatland.scm
	* plug-ins/script-fu/scripts/font-map.scm
	* plug-ins/script-fu/scripts/fuzzyborder.scm
	* plug-ins/script-fu/scripts/glossy.scm
	* plug-ins/script-fu/scripts/land.scm
	* plug-ins/script-fu/scripts/lava.scm
	* plug-ins/script-fu/scripts/old-photo.scm
	* plug-ins/script-fu/scripts/predator.scm
	* plug-ins/script-fu/scripts/rendermap.scm
	* plug-ins/script-fu/scripts/ripply-anim.scm
	* plug-ins/script-fu/scripts/script-fu-set-cmap.scm
	* plug-ins/script-fu/scripts/select-to-brush.scm
	* plug-ins/script-fu/scripts/select-to-image.scm
	* plug-ins/script-fu/scripts/select-to-pattern.scm
	* plug-ins/script-fu/scripts/speed-text.scm
	* plug-ins/script-fu/scripts/spinning-globe.scm
	* plug-ins/script-fu/scripts/test-sphere.scm
	* plug-ins/script-fu/scripts/text-circle.scm
	* plug-ins/script-fu/scripts/unsharp-mask.scm
	* plug-ins/script-fu/scripts/xach-effect.scm: Variables in a let
	block must be of the form (variable value) per the R5RS.

svn path=/trunk/; revision=24614
2008-01-15 05:15:08 +00:00
Kevin Cozens b9fcccb246 Fixed definition of 'prog1' due to recent fixes enforcing R5RS syntax for
2008-01-14  Kevin Cozens  <kcozens@cvs.gnome.org>

	*  plug-ins/script-fu/scripts/script-fu-compat.init: Fixed definition
	of 'prog1' due to recent fixes enforcing R5RS syntax for 'let'.

svn path=/trunk/; revision=24612
2008-01-15 03:51:05 +00:00
Manish Singh 60f4aa444c Handle __members__ specially to return the current PDB procedure list, and
2008-01-10  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Handle __members__
        specially to return the current PDB procedure list, and pass-through
        any attributes that start with "_" without looking them up in the
        PDB.

svn path=/trunk/; revision=24595
2008-01-10 23:39:49 +00:00
Sven Neumann 7c745575d6 fixed spelling of GIMP.
2008-01-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/gimpcons.py: fixed spelling of GIMP.


svn path=/trunk/; revision=24593
2008-01-10 21:27:15 +00:00
Sven Neumann d1f61f2cd0 fixed conditional build of the JPEG plug-in.
2008-01-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/Makefile.am: fixed conditional build of the JPEG
	plug-in.


svn path=/trunk/; revision=24592
2008-01-10 19:37:08 +00:00
Joao S. O. Bueno 95559d7693 Allow Vectors.remove_stroke method to accept VectorStroke objects besides
2008-01-09 Joao S. O. Bueno <gwidion@mpc.com.br>

        * plug-ins/pygimp/pygimp-vectors.c: Allow Vectors.remove_stroke
        method to accept VectorStroke objects besides stroke IDs. Fix
        method names in error strings.

svn path=/trunk/; revision=24583
2008-01-10 00:39:26 +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 a1c270c096 plug-ins/psd/psd-image-res-load.[ch] plug-ins/psd/psd-layer-res-load.[ch]
2008-01-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/psd/psd-image-res-load.[ch]
	* plug-ins/psd/psd-layer-res-load.[ch]
	* plug-ins/psd/psd-load.c
	* plug-ins/psd/psd-thumb-load.c
	* plug-ins/psd/psd-util.[ch]
	* plug-ins/psd/psd.[ch]: applied a patch from John Marshall that
	improves error handling of the new PSD load plug-in (bug 
#448181).


svn path=/trunk/; revision=24572
2008-01-08 21:02:56 +00:00
Kevin Cozens 2e951b7f9c Test for symlink before testing for other file types. Spotted by David
2008-01-08  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/ftx/ftx.c (foreign_filetype): Test for symlink
	before testing for other file types. Spotted by David Martin.

svn path=/trunk/; revision=24568
2008-01-08 06:58:39 +00:00
Joao S. O. Bueno 080cdd66fb fixed incorrect function name in error message for vs_flip
2008-01-05  Joao S. O. Bueno <gwidion@mpc.com.br>

* plug-ins/pygimp/pygimp-vectors.c: fixed incorrect function name
in error message for vs_flip

svn path=/trunk/; revision=24556
2008-01-07 03:02:58 +00:00
Sven Neumann b95be71ca5 compile a list of MIME types that GIMP can read.
2008-01-06  Sven Neumann  <sven@gimp.org>

	* configure.in: compile a list of MIME types that GIMP can read.

	* desktop/gimp.desktop.in.in: use the list of MIME types as
	compiled by the configure script. Fixes bug #507318.

	* desktop/Makefile.am
	* desktop/gimp.applications.in
	* desktop/gimp.keys.in: removed, the gimp.application and
	gimp.keys files are obsolete.

	* plug-ins/psd/psd.c (MAIN): corrected MIME type in unused code.


svn path=/trunk/; revision=24550
2008-01-06 13:53:14 +00:00
Sven Neumann 05ea134310 configure.in fixed --without-jpeg configure option (bug #507572).
2008-01-06  Sven Neumann  <sven@gimp.org>

	* configure.in
	* plug-ins/Makefile.am: fixed --without-jpeg configure option
	(bug #507572).


svn path=/trunk/; revision=24548
2008-01-06 12:09:38 +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
Manish Singh 30e0e4125c new Image.new_layer() method, which is convenience for creating, filling,
2008-01-05  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-image.c: new Image.new_layer() method,
        which is convenience for creating, filling, and attaching a new
        layer onto an image. Based on a idea and patch by João S. O. Bueno
        in bug #505982.

svn path=/trunk/; revision=24540
2008-01-05 23:36:42 +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
Manish Singh 7313f6d06c subscript API for PixelFetcher.
2007-12-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-tile.c: subscript API for PixelFetcher.

svn path=/trunk/; revision=24486
2007-12-30 16:56:57 +00:00
Manish Singh 43f8239668 plug-ins/pygimp/gimpmodule.c plug-ins/pygimp/pygimp-pdb.c
2007-12-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/pygimp-pdb.c
        * plug-ins/pygimp/pygimp-colors.c
        * plug-ins/pygimp/pygimpcolor-api.h
        * plug-ins/pygimp/pygimpcolor.h: Move pygimp_rgb_from_pyobject into
        the gimpcolor module, and make it handle translation of sequences
        into colors too. Make the GimpParam translation code use it.

        * plug-ins/pygimp/gimpcolormodule.c: Initial wrapping of
        gimp_bilinear color functions.

        * plug-ins/pygimp/gimpenumsmodule.c
        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/pygimp.h
        * plug-ins/pygimp/pygimp-tile.c: Basic wrapping of GimpPixelFetcher.

svn path=/trunk/; revision=24481
2007-12-30 15:25:13 +00:00
Sven Neumann 10a38da7de added entry for Canon Digital Ixus v2 and removed duplicate entry.
2007-12-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpegqual.c (quant_info): added entry for Canon
	Digital Ixus v2 and removed duplicate entry.


svn path=/trunk/; revision=24478
2007-12-30 14:47:06 +00:00
Sven Neumann b0c2f3dee1 use G_OPTION_REMAINING to access the filenames passed as command-line
2007-12-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpegqual.c: use G_OPTION_REMAINING to access the
	filenames passed as command-line arguments.


svn path=/trunk/; revision=24477
2007-12-30 14:36:00 +00:00
Sven Neumann 289fa19212 applied another patch from Ulf-D. Ehlert for the parameter range (bug
2007-12-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/chip-away.scm: applied another 
patch
	from Ulf-D. Ehlert for the parameter range (bug #506110).


svn path=/trunk/; revision=24475
2007-12-30 13:40:22 +00:00
Sven Neumann dd95dffaec applied patch from Ulf-D. Ehlert that fixes the range of the "Chip amount"
2007-12-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/chip-away.scm: applied patch from
	Ulf-D. Ehlert that fixes the range of the "Chip amount" 
parameter
	(bug #506110).


svn path=/trunk/; revision=24448
2007-12-28 17:57:54 +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
Kevin Cozens 6e476b9b4a Added extra checks to stop bad syntax in LET*, LET, and LETREC from
2007-12-17  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Added extra checks to stop
	bad syntax in LET*, LET, and LETREC from causing a segmentation fault
	in Linux. See SourceForge bug #1817986.

svn path=/trunk/; revision=24400
2007-12-18 20:12:11 +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
Kevin Cozens 8d38858180 Only return true when numbers are of equal value AND of the same type (ie.
2007-12-14  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c (eqv): Only return true
	when numbers are of equal value AND of the same type (ie. both
	exact or inexact). R5RS compliance fix.

svn path=/trunk/; revision=24366
2007-12-14 19:20:50 +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
Kevin Cozens 916e4d4f78 Fix to prevent reporting out of memory when there should be plenty of
2007-12-11  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c (get_consecutive_cells):
	Fix to prevent reporting out of memory when there should be plenty
	of cells still available. See SourceForge bug #1794369.

svn path=/trunk/; revision=24328
2007-12-12 03:11:16 +00:00
Kevin Cozens 8a685dd322 Don't abort the top-level s-exp when loading a file. See SourceForge bug
2007-12-11  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Don't abort the top-level
	s-exp when loading a file. See SourceForge bug #1589711.

svn path=/trunk/; revision=24327
2007-12-12 01:56:49 +00:00
Kevin Cozens 38fd9dad2c Applied changes from official version of TinyScheme which fix
2007-12-11  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Applied changes from
	official version of TinyScheme which fix is_integer(). See
	SourceForge bug #1593861.

svn path=/trunk/; revision=24325
2007-12-11 21:46:40 +00:00
Sven Neumann 40f237269c allow the use of CSS color names and hexadecimal color notation.
2007-12-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpmodule.c (pygimp_set_background)
	(pygimp_set_foreground): allow the use of CSS color names and
	hexadecimal color notation.


svn path=/trunk/; revision=24310
2007-12-10 20:07:33 +00:00
Hans Breuer 6f5bbfe0bd updated and removed -GD to let msvc9 complain less
2007-12-09  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc : updated and removed -GD to let msvc9 complain less


svn path=/trunk/; revision=24305
2007-12-09 14:11:09 +00:00
Sven Neumann 2c594fbc33 fixed logic that decides if a dialog should be shown or not.
2007-12-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py (_run): fixed logic that decides if 
a
	dialog should be shown or not.


svn path=/trunk/; revision=24300
2007-12-08 17:29:06 +00:00
Sven Neumann 4c9e97d4ad plug-ins/pygimp/pygimp-colors.c removed calls to PyMem_Free().
2007-12-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/pygimp-colors.c
	* plug-ins/pygimp/gimpcolormodule.c: removed calls to 
PyMem_Free().


svn path=/trunk/; revision=24290
2007-12-07 19:21:35 +00:00
Sven Neumann 021abe4a74 accept a string and parse it using gimpcolor.rgb_parse_css().
2007-12-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpui.py (ColorSelector.__init__): accept a
	string and parse it using gimpcolor.rgb_parse_css().

	* plug-ins/pygimp/plug-ins/sphere.py: show off the new feature.

svn path=/trunk/; revision=24285
2007-12-07 16:53:06 +00:00
Sven Neumann 8b15c5e2f3 push/pop a context instead of manually restoring the background color.
2007-12-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/foggify.py: push/pop a context instead
	of manually restoring the background color.

svn path=/trunk/; revision=24283
2007-12-07 13:43:07 +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 fcbc8eda42 only set the resolution if X_density and Y_density are not zero. Otherwise
2007-12-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (jpeg_load_resolution): only set the
	resolution if X_density and Y_density are not zero. Otherwise 
the
	default resolution would be used anyway and the user sees an
	annoying and confusion warning.


svn path=/trunk/; revision=24251
2007-12-02 14:40:35 +00:00
William Skaggs ec4819c4b5 Bill Skaggs <weskaggs@primate.ucdavis.edu>
* plug-ins/Lighting/lighting_ui.c: make sure to update bumpmap
	when combo is changed.  Addresses bug #500317.

svn path=/trunk/; revision=24240
2007-11-29 19:32:50 +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 7cf6c22d11 reduced progress updates based on a patch from Tobias Jakobs (bug
2007-11-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/flame/rect.c: reduced progress updates based on a 
patch
	from Tobias Jakobs (bug #499255). Untabified.


svn path=/trunk/; revision=24223
2007-11-23 21:26:52 +00:00
Sven Neumann a24102ee7f applied patch from Ulf-D. Ehlert that fixes the background color used in
2007-11-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/t-o-p-logo.scm: applied patch from
	Ulf-D. Ehlert that fixes the background color used in the Particle
	Trace filter (bug #498282).

svn path=/trunk/; revision=24200
2007-11-20 09:17:11 +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
Kevin Cozens b9c181bf73 Return a list from cons-array when type is 'string.
2007-11-11  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/script-fu-compat.init: Return a list
	from cons-array when type is 'string.

svn path=/trunk/; revision=24126
2007-11-11 21:22:01 +00:00
Sven Neumann a75838e6c1 deal gracefully with NULL titles.
2007-11-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c 
(browser_dialog_make_index_foreach):
	deal gracefully with NULL titles.


svn path=/trunk/; revision=24107
2007-11-09 23:56:19 +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
Michael Natterer fb1ec39812 remove check for putenv().
2007-11-06  Michael Natterer  <mitch@gimp.org>

	* configure.in: remove check for putenv().

	* app/composite/gimp-composite-3dnow-test.c
	* app/composite/gimp-composite-altivec-test.c
	* app/composite/gimp-composite-mmx-test.c
	* app/composite/gimp-composite-sse-test.c
	* app/composite/gimp-composite-sse2-test.c
	* app/composite/gimp-composite-vis-test.c
	* libgimp/gimpui.c
	* plug-ins/uri/uri-backend-wget.c
	* tools/gimp-remote-x11.c: use g_setenv() instead of putenv().


svn path=/trunk/; revision=24076
2007-11-06 13:28:19 +00:00
Sven Neumann 9a740afcb2 removed this script. Fixes bug #491311.
2007-11-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/Makefile.am (scripts):
	* plug-ins/script-fu/scripts/hsv-graph.scm: removed this script.
	Fixes bug #491311.

svn path=/trunk/; revision=24030
2007-11-01 17:30:38 +00:00
Manish Singh a8fb4f0c03 app/core/gimpcontainer-filter.c app/pdb/gimppdb-query.c replace usage of
2007-11-01  Manish Singh  <yosh@gimp.org>

        * app/core/gimpcontainer-filter.c
        * app/pdb/gimppdb-query.c
        * app/plug-in/gimppluginmanager-query.c: replace usage of POSIX
        regex API with GRegex.

        * configure.in: remove check for regex support in glibc.

        * app/Makefile.am
        * plug-ins/script-fu/Makefile.am: remove REGEXREPL references.

        * tools/pdbgen/app.pl: remove code that references HAVE_GLIBC_REGEX.

        * regexrepl/*
        * makefile.msc
        * Makefile.am: remove regexrepl directory.

svn path=/trunk/; revision=24024
2007-11-01 08:15:38 +00:00
Michael Natterer 36bda892a9 libgimpbase/Makefile.am removed.
2007-10-31  Michael Natterer  <mitch@gimp.org>

	* libgimpbase/Makefile.am
	* libgimpbase/xdg-user-dir.[ch]: removed.

	* libgimpbase/gimpbaseenums.[ch]: deprecate enum GimpUserDirectory.

	* libgimpbase/gimpenv.[ch]: deprecate gimp_user_directory() and make
	the implementation call g_get_user_special_dir().

	* libgimp/Makefile.am: #undef GIMP_DISABLE_DEPRECATED in gimpenums.c

	* app/widgets/gimpfiledialog.c: use g_get_user_special_dir() instead.

	* plug-ins/pygimp/gimpmodule.c: #undef GIMP_DISABLE_DEPRECATED.


svn path=/trunk/; revision=24018
2007-10-31 13:09:46 +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
Kevin Cozens 37b875ccdc plug-ins/script-fu/tinyscheme/scheme-private.h Allow a maximum of two
2007-10-25  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme-private.h
	* plug-ins/script-fu/tinyscheme/scheme.c:
	Allow a maximum of two calls to backchar() needed by the "case '.'"
	part of the switch statement in token(). Fixes bug #490198.

svn path=/trunk/; revision=23952
2007-10-25 20:47:27 +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
Raphael Quinet 6a62905846 Added hash value for all known quantization tables in order to detect
2007-10-23  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpegqual.c: Added hash value for all known
	quantization tables in order to detect transposed tables from
	rotated images or bad matches coming from different tables with
	the same sum.

svn path=/trunk/; revision=23920
2007-10-22 23:48:19 +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
Kevin Cozens 19ba673b2f Allow one to three digits in octal coded characters.
2007-10-22  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Allow one to three
	digits in octal coded characters.

svn path=/trunk/; revision=23908
2007-10-22 16:12:49 +00:00
Sven Neumann 825c0f71fc fixed initialisation of pixel regions (bug #488845).
2007-10-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/gflare/gflare.c (plugin_do_non_asupsample): fixed
	initialisation of pixel regions (bug #488845).

svn path=/trunk/; revision=23905
2007-10-22 11:27:22 +00:00
Sven Neumann 8436366da3 formatting.
2007-10-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/gflare/gflare.c: formatting.

svn path=/trunk/; revision=23904
2007-10-22 11:17:07 +00:00
Raphael Quinet 7154e4ffc3 Updated table for Adobe products. Thanks to Bart for the sample files.
2007-10-22  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpegqual.c (quant_info): Updated table for Adobe
	products.  Thanks to Bart for the sample files.

svn path=/trunk/; revision=23899
2007-10-22 00:13:40 +00:00
Simon Budig 7d42178b82 Add comment regarding the safe-foreign issue.
2007-10-21  Simon Budig  <simon@gimp.org>

        * plg-ins/script-fu/scheme-wrapper.c: Add comment regarding
	  the safe-foreign issue.


svn path=/trunk/; revision=23898
2007-10-21 20:47:26 +00:00
Kevin Cozens eaaf936670 Reverted changes in handling of string arrays to stay backwards compatible
2007-10-21  Kevin Cozens  <kcozens@cvs.gnome.org>

        * plug-ins/script-fu/scheme-wrapper.c: Reverted changes in handling
        of string arrays to stay backwards compatible (see bug #317634).

        * plug-ins/script-fu/scripts/font-map.scm: Updated based on change
        in handling of string arrays listed above.

svn path=/trunk/; revision=23897
2007-10-21 20:39:01 +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
Sven Neumann ace8b024b6 marked strings for translation (bug #485937).
2007-10-12  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpcolorselectorpalette.c: 
	* plug-ins/twain/twain.c: marked strings for translation (bug #485937).

svn path=/trunk/; revision=23807
2007-10-12 09:10:06 +00:00
Kevin Cozens 913d0d5f20 Fix off by one error. Stop on third digit after backslash when reading
2007-10-12  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Fix off by one error.
	Stop on third digit after backslash when reading octal character.
	Original cause of bug #485538.

svn path=/trunk/; revision=23806
2007-10-12 06:19:41 +00:00
Sven Neumann 66fecb60e6 moved the new string escape function here and also it for the
2007-10-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.[ch]: moved the new string
	escape function here and also it for the non-interactive case.

	* plug-ins/script-fu/script-fu-interface.c: changed accordingly.

svn path=/trunk/; revision=23802
2007-10-11 11:59:55 +00:00
Sven Neumann 426eb27e7e don't use g_strescape() as it mangles UTF-8 strings. Introduced our own
2007-10-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c: don't use
	g_strescape() as it mangles UTF-8 strings. Introduced our own
	escape function instead. Fixes bug #485538.

svn path=/trunk/; revision=23801
2007-10-11 11:48:35 +00:00
Sven Neumann 8a810a0300 use G_DIR_SEPARATOR instead of hardcoding the '\' under Windows.
2007-10-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
	use G_DIR_SEPARATOR instead of hardcoding the '\' under Windows.

svn path=/trunk/; revision=23800
2007-10-11 11:26:11 +00:00
Sven Neumann 80752d37c3 removed an obsolete comment.
2007-10-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c: removed an obsolete comment.

svn path=/trunk/; revision=23774
2007-10-09 13:23:11 +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 e04cfdc3b4 store the zoom factor. Doesn't work currently, but just needs a simple fix
2007-10-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c: store the zoom factor. Doesn't
	work currently, but just needs a simple fix in gtkhtml2.


svn path=/trunk/; revision=23747
2007-10-06 16:51:34 +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 e5b6b9dd13 applied patch from Ulf-D. Ehlert with usability improvements (bug
2007-10-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/perspective-shadow.scm: applied 
patch
	from Ulf-D. Ehlert with usability improvements (bug #482743).


svn path=/trunk/; revision=23736
2007-10-05 18:49:34 +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 63b451abb0 use the display rendering intent as set in the user's color management
2007-10-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (jpeg_load_cmyk_transform): use the
	display rendering intent as set in the user's color management
	preferences. Use black point compensation if the rendering 
intent
	is relative colorimetric.


svn path=/trunk/; revision=23722
2007-10-03 22:18:46 +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 3b4f775d74 applied patch from Ulf-D. Ehlert that fixes resizing in the Perspective
2007-10-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/perspective-shadow.scm: applied 
patch
	from Ulf-D. Ehlert that fixes resizing in the Perspective Shadow
	script (bug #482743).


svn path=/trunk/; revision=23718
2007-10-02 22:03:40 +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
Raphael Quinet 9795a920b1 plug-ins/metadata/metadata.c plug-ins/metadata/xmp-model.c replaced calls
2007-10-02  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/metadata/metadata.c
	* plug-ins/metadata/xmp-model.c
	* plug-ins/metadata/xmp-encode.c: replaced calls to g_warning() by
	g_printerr().

svn path=/trunk/; revision=23716
2007-10-02 09:15:34 +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
Kevin Cozens f3d514c845 Use 'list' to create argument list for SF-ADJUSTMENT since it uses a named
2007-10-02  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/guides-new.scm: Use 'list' to create
	argument list for SF-ADJUSTMENT since it uses a named constant.
	Fixes bug #480799.

svn path=/trunk/; revision=23714
2007-10-02 04:24:40 +00:00
Kevin Cozens 1035b7fab4 use RUN-NONINTERACTIVE for the run-mode where 0 was used instead.
2007-10-01  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/burn-in-anim.scm: use RUN-NONINTERACTIVE
	for the run-mode where 0 was used instead.

svn path=/trunk/; revision=23712
2007-10-01 20:31:12 +00:00
Sven Neumann 8b624fa210 moved shadow_bevel.py to test-scripts so that it isn't installed by
2007-10-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/Makefile.am: moved shadow_bevel.py to
	test-scripts so that it isn't installed by default (bug 
#482289).


svn path=/trunk/; revision=23711
2007-10-01 20:29:45 +00:00
Sven Neumann 1a75b7258e use RUN-NONINTERACTIVE for the run-mode where 1 was used instead.
2007-10-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/*.scm: use RUN-NONINTERACTIVE for 
the
	run-mode where 1 was used instead.


svn path=/trunk/; revision=23707
2007-10-01 19:44:23 +00:00
Sven Neumann 3b930bb1a8 plug-ins/script-fu/scripts/rendermap.scm
2007-10-01  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/rendermap.scm
	* plug-ins/script-fu/scripts/distress-selection.scm
	* plug-ins/script-fu/scripts/old-photo.scm
	* plug-ins/script-fu/scripts/unsharp-mask.scm
	* plug-ins/script-fu/scripts/tileblur.scm
	* plug-ins/script-fu/scripts/fuzzyborder.scm
	* plug-ins/script-fu/scripts/camo.scm: use RUN-NONINTERACTIVE for
	the run-mode instead of TRUE.

svn path=/trunk/; revision=23700
2007-10-01 08:42:48 +00:00
Manish Singh 9e13d05f5c drop the reference we added to the args tuple in the error case.
2007-09-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-pdb.c (pygimp_param_from_tuple): drop the
        reference we added to the args tuple in the error case.

svn path=/trunk/; revision=23694
2007-09-30 08:37:45 +00:00
Manish Singh d70088c961 fill layer before using it. Fixes bug #481798, thanks to Jakub Friedl for
2007-09-30  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/plug-ins/foggify.py: fill layer before using it.
        Fixes bug #481798, thanks to Jakub Friedl for suggesting fix.

svn path=/trunk/; revision=23693
2007-09-30 08:22:06 +00:00
Sven Neumann 4c0b47c34d allocate the ConsoleInterface struct on the stack.
2007-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.c: allocate the
	ConsoleInterface struct on the stack.


svn path=/trunk/; revision=23685
2007-09-28 17:26:15 +00:00
Kevin Cozens 14eb770a4c Made all the functions defined in the file local instead of global to
2007-09-28  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/addborder.scm: Made all the functions
	defined in the file local instead of global to avoid possible
	conflicts with other scripts.

svn path=/trunk/; revision=23684
2007-09-28 16:13:58 +00:00
Sven Neumann 4d77d9a2d1 plugged memory leaks.
2007-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c: plugged memory leaks.

	* libgimpbase/gimpprotocol.c (gp_params_destroy): formatting.

svn path=/trunk/; revision=23683
2007-09-28 14:20:35 +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 3553d68652 fixed the twisted logic.
2007-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (load_image): fixed the twisted logic.

svn path=/trunk/; revision=23678
2007-09-28 08:11:33 +00:00
Sven Neumann 8f2b37a8e5 moved handling of the CMYK profile to a utility function. Respect the
2007-09-28  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c: moved handling of the CMYK profile 
to
	a utility function. Respect the user's color management 
settings.


svn path=/trunk/; revision=23677
2007-09-28 07:13:47 +00:00
Kevin Cozens 0cb80bdcd8 Create SF-RUN-MODE constant for use in Script-Fu. Fixes bug #479893.
2007-09-27  Kevin Cozens  <kcozens@cvs.gnome.org>

	Create SF-RUN-MODE constant for use in Script-Fu. Fixes bug #479893.

	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/scheme-wrapper.h: Added set_run_mode_constant()
	which creates a new constant called SF-RUN-MODE. This constant can
	be used by Script-Fu scripts when calling a plug-in that needs to
	know the current run mode.

	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-console.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/script-fu-server.c: Added calls to create the
	new SF-RUN-MODE constant.

	* plug-ins/script-fu/scripts/difference-clouds.scm: Pass SF-RUN-MODE
	to the solid noise plug-in instead of always using RUN-INTERACTIVE.

svn path=/trunk/; revision=23674
2007-09-27 19:54:28 +00:00
Sven Neumann d5afc9128b define HAVE_LCMS if lcms is available.
2007-09-27  Sven Neumann  <sven@gimp.org>

	* configure.in: define HAVE_LCMS if lcms is available.

	* plug-ins/jpeg/Makefile.am: link with LIBLCMS.

	* plug-ins/jpeg/jpeg-load.c (load_image): when loading a CMYK JPEG
	file and it comes with an embedded CMYK profile, use lcms to do
	the colorspace conversion.

svn path=/trunk/; revision=23672
2007-09-27 15:09:50 +00:00
Sven Neumann d920ed2eae same change here. Moved colorspace conversion to a utility function.
2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (load_thumbnail_image): same change
	here. Moved colorspace conversion to a utility function.

svn path=/trunk/; revision=23671
2007-09-27 14:35:01 +00:00
Sven Neumann 5064d56b16 get rid of one of the temporary buffers. We don't need an alpha channel on
2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (load_image): get rid of one of the
	temporary buffers. We don't need an alpha channel on the preview
	layer and we can do the CMYK->RGB conversion in place.

svn path=/trunk/; revision=23670
2007-09-27 14:22:40 +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 c2020bf56d fixed GimpImageType parameter passed to gimp-layer-new. Do not register
2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/add-bevel.scm: fixed GimpImageType
	parameter passed to gimp-layer-new. Do not register the script for
	grayscale images, it doesn't handle them properly.

svn path=/trunk/; revision=23667
2007-09-27 10:45:03 +00:00
Sven Neumann b774625eee unified error messages, removed trailing newlines.
2007-09-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c: unified error
	messages, removed trailing newlines.

svn path=/trunk/; revision=23666
2007-09-27 10:27:46 +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 bda4441973 use separate variables for width and height entry. Fixes bug #480303.
2007-09-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/maze/maze_face.c (maze_dialog): use separate variables
	for width and height entry. Fixes bug #480303.

svn path=/trunk/; revision=23658
2007-09-26 10:57:44 +00:00
Sven Neumann c8ef39e096 minor cleanup, removed unused code.
2007-09-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/maze/maze_face.c: minor cleanup, removed unused code.

svn path=/trunk/; revision=23656
2007-09-26 09:01:20 +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
Kevin Cozens 0bd67f281f Applied patch from Ulf-D. Ehlert which pushes and pops a context to
2007-09-25  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/fuzzyborder.scm: Applied patch from
	Ulf-D. Ehlert which pushes and pops a context to prevent
	changing background colour in the UI. Fixes bug #479974.

svn path=/trunk/; revision=23648
2007-09-25 05:17:35 +00:00
Sven Neumann 6e412c1e42 applied patch from Ulf-D. Ehlert which fixes a bug which may shrink the
2007-09-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/drop-shadow.scm: applied patch from
	Ulf-D. Ehlert which fixes a bug which may shrink the image instead
	of enlarging it (bug #478385).

svn path=/trunk/; revision=23636
2007-09-24 08:00:14 +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
Simon Budig 24f9ed8446 further simplifications.
2007-09-22  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: further simplifications.


svn path=/trunk/; revision=23614
2007-09-22 18:03:39 +00:00
Kevin Cozens 9a5e22bdf5 Applied modified patch from Simon Budig. Any bytes read from a file which
2007-09-21  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c (basic_inchar): Applied
	modified patch from Simon Budig. Any bytes read from a file which
	are not valid UTF-8 characters will be ignored. Fixes bug #476356.

svn path=/trunk/; revision=23613
2007-09-21 23:53:03 +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
Raphael Quinet 0de56fd922 updated the table of known devices and software, work in progress.
2007-09-20  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpegqual.c (quant_info): updated the table of
	known devices and software, work in progress.

svn path=/trunk/; revision=23595
2007-09-20 16:01:29 +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
Raphael Quinet 3385f9c482 Re-wrote large parts of the code, still work in progress: use GOption for
2007-09-19  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpegqual.c: Re-wrote large parts of the code,
	still work in progress: use GOption for command-line options, add
	number of quantization tables in QuantInfo, added info for more
	sources (devices or software) but not verified yet.

svn path=/trunk/; revision=23589
2007-09-19 16:09:00 +00:00
Raphael Quinet 51a3ee471b plug-ins/jpeg/jpeg-load.c ifdef'ed out some debugging statements so that
2007-09-19  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpeg-load.c
	* plug-ins/jpeg/jpeg-save.c: ifdef'ed out some debugging
	statements so that they show up only in unstable releases.

	* plug-ins/jpeg/jpeg.c (run): removed calls to gimp_set_data() and
	gimp_get_data() so that changes made to the JPEG save settings for
	one file do not affect other files saved later.

svn path=/trunk/; revision=23584
2007-09-19 11:44:42 +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
Kevin Cozens df8ba63817 Removed 'from-selection'. Reset active layer after calling
2007-09-13  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/lava.scm: Removed 'from-selection'.
	Reset active layer after calling gimp-selection-save. Modified
	version of patch from Jakub Friedl which fixes bug #476672. Don't
	add alpha if drawable already has alpha. Minor format changes.

svn path=/trunk/; revision=23534
2007-09-13 20:37:17 +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 5554d0b1d6 plug-ins/script-fu/scripts/burn-in-anim.scm removed newlines from
2007-09-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/burn-in-anim.scm
	* plug-ins/script-fu/scripts/coffee.scm: removed newlines from
	translatable strings. Fixes bug #475553.


svn path=/trunk/; revision=23496
2007-09-11 06:13:21 +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
Michael Natterer 9112c91dfb applied patch from Kevin Cozens which implements RUN-WITH-LAST-VALS. On
2007-09-07  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
	applied patch from Kevin Cozens which implements RUN-WITH-LAST-VALS.
	On top of that, factored out script_fu_collect_standard_args()
	which collects DISPLAY,IMAGE,[DRAWABLE|LAYER|...] from the passed
	parameters according to the new calling conventions (the old code
	for INTERACTIVE was broken). Also cleaned up the function a bit.
	Fixes bug #472493.


svn path=/trunk/; revision=23474
2007-09-07 14:43:26 +00:00
Kevin Cozens c3ec9e82e9 Preserve aspect ratio of original images. Center thumbnails in space above
2007-09-06  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/contactsheet.scm: Preserve aspect ratio
	of original images. Center thumbnails in space above filename label.
	Added new sheet size of 1600x1200 pixels. Changed a dialog label.

svn path=/trunk/; revision=23470
2007-09-06 19:50:00 +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 2048979560 quick fix: raise the cell segment size as well as the number of possible
2007-09-06  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/tinyscheme/scheme-private.h: quick fix:
	raise the cell segment size as well as the number of possible
	segments to reduce the likelihood of a failing (make-vector)

	(yes, this is a hack and no proper fix)


svn path=/trunk/; revision=23465
2007-09-05 23:18:10 +00:00
Simon Budig 8d42d089ca plug-ins/script-fu/tinyscheme/scheme.[ch] make it possible for foreign
2007-08-31  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/tinyscheme/scheme.[ch]
	* plug-ins/script-fu/tinyscheme/scheme-private.h: make it possible
	for foreign functions to return an error.

	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/scheme-wrapper.c: Make use of this.
	Fixes bug #472026.


svn path=/trunk/; revision=23432
2007-08-31 19:35:26 +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
Simon Budig a333d6c660 plug-ins/script-fu/scheme-wrapper.c
2007-08-30  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/tinyscheme/scheme.[ch]
	* plug-ins/script-fu/scheme-wrapper.h: Shuffeled some
	code around to have scheme.c not include scheme-wrapper.h.


svn path=/trunk/; revision=23411
2007-08-30 12:52:42 +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
Kevin Cozens 667d6eac9b Applied the change suggested in SourceForge bug #1593861 that fixes the
2007-08-29  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Applied the change suggested
	in SourceForge bug #1593861 that fixes the case where integer? thinks
	non-numbers are sometimes integers.

svn path=/trunk/; revision=23402
2007-08-30 00:33:50 +00:00
Simon Budig 0928a32a21 plug-ins/script-fu/tinyscheme/scheme.[ch] small changes to tinyscheme -
2007-08-30  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/tinyscheme/scheme.[ch]
	* plug-ins/script-fu/tinyscheme/scheme-private.h: small changes
	to tinyscheme - mostly removing workarounds for message output.

	* plug-ins/script-fu/scheme-wrapper.[ch]: try to channel the
	output through a central function, have various output functions
	to handle the messages. Remove some hacks.

	* plug-ins/script-fu/script-fu-text-console.c
	* plug-ins/script-fu/script-fu-scripts.[ch]
	* plug-ins/script-fu/script-fu-interface.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/script-fu-server.c
	* plug-ins/script-fu/script-fu-console.[ch]: use the new
	infrastructure. Remove more hacks.

	* plug-ins/script-fu/servertest.py: small script to test the
	communication with the script-fu-server.


svn path=/trunk/; revision=23400
2007-08-30 00:21:20 +00:00
Raphael Quinet fb5284e50d escape the text values output in the XMP packet. Based on a bug report and
2007-08-29  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/metadata/xmp-encode.c (gen_property): escape the text
	values output in the XMP packet.  Based on a bug report and patch
	by John Marshall.  Fixes bug #455481.

svn path=/trunk/; revision=23398
2007-08-29 19:32:39 +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 59fb23cea9 plug-ins/jpeg/jpeg-save.[ch] change the behavior of the code so that "Use
2007-08-29  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpeg-save.[ch]
	* plug-ins/jpeg/jpeg.c: change the behavior of the code so that
	"Use quality settings from original image" does what it claims,
	even if these settings are worse than the user's defaults (note
	that the option is not automatically enabled in this case).  Also
	set the subsampling type when that box is checked.

	* plug-ins/jpeg/jpeg-settings.h: formatting.

svn path=/trunk/; revision=23395
2007-08-29 12:01:38 +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
Hans Breuer aface5c12a updated msvc build include <io.h> for get_osfhandle() prototype
2007-08-26  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc : updated msvc build
	* app/main.c : include <io.h> for get_osfhandle()
	* plug-ins/jpeg/jpeg-settings.h : prototype
	jpeg_swap_original_settings


svn path=/trunk/; revision=23377
2007-08-26 18:59:34 +00:00
Raphael Quinet be9681f4e1 use a label that is easier to understand. Required code changes will
2007-08-24  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpeg-save.c (save_dialog): use a label that is
	easier to understand.  Required code changes will follow later.

svn path=/trunk/; revision=23373
2007-08-24 20:32:39 +00:00
Raphael Quinet 91d99d4d63 new function that swaps the vertical and horizontal axis for the saved
2007-08-24  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpeg-settings.c (jpeg_swap_original_settings): new
	function that swaps the vertical and horizontal axis for the saved
	subsampling parameters and quantization tables.

	* plug-ins/jpeg/jpeg-exif.c (jpeg_exif_rotate): swap the saved
	settings when the image is rotated.  Fixes bug #466593.

	* devel-docs/release-howto.txt: added note about having admin
	access to Bugzilla and to the news section on www.gimp.org.

svn path=/trunk/; revision=23370
2007-08-24 18:38:30 +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
Michael Natterer 8717f90460 set a default page setup on the operation if it is NULL to prevent crash
2007-08-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/print/print-page-layout.c: set a default page setup on
	the operation if it is NULL to prevent crash in new installations
	(which don't have a setup yet). Fixes bug #467643, patch from
	Stefan Röllin.


svn path=/trunk/; revision=23303
2007-08-17 15:30:39 +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 781b9ced7f added a timeout as a workaround for bug #466928.
2007-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (end_print): added a timeout as a
	workaround for bug #466928.


svn path=/trunk/; revision=23277
2007-08-15 18:19:52 +00:00
Joao S. O. Bueno Calligaris ea9a919220 avoids function call with an invalid drawable id
2007-08-15  Joao S. O. Bueno Calligaris <gwidion@mpc.com.br>

        * plug-ins/pygimp/pygimp-drawable.c: avoids function call
          with an invalid drawable id


svn path=/trunk/; revision=23272
2007-08-15 14:01:01 +00:00
Sven Neumann 4a6b4bc067 applied patch from Stefan Röllin that makes the preview resize with the
2007-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: applied patch from Stefan
	Röllin that makes the preview resize with the dialog (bug #466923).

svn path=/trunk/; revision=23271
2007-08-15 13:57:36 +00:00
Sven Neumann e05f208e62 plug-ins/script-fu/scripts/Makefile.am removed fade-outline script. Fixes
2007-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/Makefile.am
	* plug-ins/script-fu/scripts/fade-outline.scm: removed
	fade-outline script. Fixes bug #466382.


svn path=/trunk/; revision=23262
2007-08-14 22:40:16 +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