Commit graph

4895 commits

Author SHA1 Message Date
Sven Neumann ef339861d7 applied slightly modified patch from Aurimas Ju?ka which fixes bug #167260
2007-04-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/neon-logo.scm: applied slightly
	modified patch from Aurimas Ju?ka which fixes bug #167260 by not
	allowing the selection to shrink too much.


svn path=/trunk/; revision=22263
2007-04-17 15:15:07 +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 2f9570d428 use GTK_CFLAGS and GTK_LIBS.
2007-04-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/Makefile.am: use GTK_CFLAGS and GTK_LIBS.


svn path=/trunk/; revision=22260
2007-04-17 07:21:06 +00:00
Sven Neumann 3b844999e5 applied patch from Aurimas Juška that fixes sensitivity of input fields
2007-04-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/Lighting/lighting_ui.c: applied patch from Aurimas
	Juška that fixes sensitivity of input fields related to the 
light
	type (bug #359833).


svn path=/trunk/; revision=22252
2007-04-16 06:12:09 +00:00
Raphael Quinet 7a1cdb8bfe made the parser more tolerant and accept XMP blocks that are not using the
2007-04-12  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/metadata/xmp-parse.c: made the parser more tolerant and
	accept XMP blocks that are not using the namespace prefixes
	recommended by the XMP specification.

svn path=/trunk/; revision=22242
2007-04-12 16:17:01 +00:00
Sven Neumann 65f2809545 if a plug-in or script registered with a DISPLAY argument after the
2007-04-12  Sven Neumann  <sven@gimp.org>

	* app/actions/plug-in-commands.c: if a plug-in or script
	registered with a DISPLAY argument after the run-mode argument,
	then pass the ID of the active display to the script, optionally
	followed by image and drawable IDs.

	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/script-fu-enums.h
	* plug-ins/script-fu/script-fu-interface.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-types.h: added SF-DISPLAY parameter.

svn path=/trunk/; revision=22241
2007-04-12 15:56:57 +00:00
Sven Neumann 328181185a updated copyright header.
2007-04-12  Sven Neumann  <sven@gimp.org>

	* plug-ins/sel2path/*.[ch]: updated copyright header.


svn path=/trunk/; revision=22240
2007-04-12 15:17:30 +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
Sven Neumann 7fd724e2da applied patch from Aurimas Juška to fix bug #428556.
2007-04-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/ifscompose/ifscompose_utils.c (ifs_render): applied
	patch from Aurimas Juška to fix bug #428556.


svn path=/trunk/; revision=22233
2007-04-11 11:23:39 +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
Kevin Cozens 16251836ac Fixed syntax error in string-trim-left function (spotted by Saul Goode).
2007-03-17  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/script-fu-compat.init: Fixed syntax
	error in string-trim-left function (spotted by Saul Goode). Added
	compatability routine for 'verbose'.

svn path=/trunk/; revision=22136
2007-03-17 16:32:17 +00:00
Michael Natterer 11f0125257 remove N_() from calls to gimp_plugin_menu_register().
2007-03-16  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu.c: remove N_() from calls to
	gimp_plugin_menu_register().


svn path=/trunk/; revision=22133
2007-03-16 13:21:42 +00:00
Michael Natterer 1a9cfa406e update the progress to avoid looking like the script hangs. Fixes bug
2007-03-16  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/spyrogimp.scm: update the progress
	to avoid looking like the script hangs. Fixes bug #356677.

	* plug-ins/script-fu/script-fu-interface.c
	(script_fu_interface_report_cc): if the command starts with
	"gimp-progress-", the script is obviously showing a progress bar
	for itself, so clear the text instead of showing an endless number
	of "gimp-progress-update" messages. Also fixed manual main loop
	iteration.


svn path=/trunk/; revision=22132
2007-03-16 00:26:34 +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
Raphael Quinet 66ac1db77c Fix for bug #417467 based on modified patch by Eric Lamarque and suggested
2007-03-13  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/script-fu/script-fu-console.c: Fix for bug #417467
	based on modified patch by Eric Lamarque and suggested by Mitch.
	Allows build without warnings and correct localization for Solaris
	and other platforms.

svn path=/trunk/; revision=22109
2007-03-13 09:55:18 +00:00
Kevin Cozens 44e6637d3b Removed erroneous comment block.
2007-03-09  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/script-fu-util-setpt.scm: Removed
	erroneous comment block.

	* plug-ins/script-fu/scripts/script-fu-set-cmap.scm: Use only
	American (USA) spelling in translatable strings.

svn path=/trunk/; revision=22085
2007-03-09 15:58:01 +00:00
Sven Neumann 4af6da98e1 support mnemonics in parameter labels.
2007-03-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: support mnemonics in parameter labels.

	* plug-ins/pygimp/plug-ins/foggify.py
	* plug-ins/pygimp/plug-ins/colorxhtml.py
	* plug-ins/pygimp/plug-ins/shadow_bevel.py
	* plug-ins/pygimp/plug-ins/palette-offset.py
	* plug-ins/pygimp/plug-ins/palette-sort.py: added mnemonics.


svn path=/trunk/; revision=22074
2007-03-08 15:17:54 +00:00
Raphael Quinet 2c072384cf fixed the incorrect declaration of the values[] array. Thanks to Petr
2007-03-08  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/winicon/main.c (run): fixed the incorrect declaration
	of the values[] array.  Thanks to Petr Gajdos <pgajdos@suze.cz>
	for reporting this problem and for supplying a patch.

svn path=/trunk/; revision=22070
2007-03-08 09:59:38 +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
Hans Breuer f8b13080e4 updated
2007-03-04  Hans Breuer  <hans@breuer.org>

	* **/makefile.msc app/gimpcore.def : updated


svn path=/trunk/; revision=22041
2007-03-04 19:04: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
Sven Neumann acdabd3923 plug-ins/pygimp/plug-ins/Makefile.am stop installing any test scripts.
2007-02-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/Makefile.am
	* plug-ins/script-fu/scripts/Makefile.am: stop installing any test
	scripts.


svn path=/trunk/; revision=21973
2007-02-22 08:08:09 +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 99f1d0e6dd use locale-independent function to convert a float value to a string.
2007-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/tinyscheme/scheme.c (atom2str): use
	locale-independent function to convert a float value to a 
string.


svn path=/trunk/; revision=21948
2007-02-19 11:05:21 +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
Sven Neumann d232d24ebc plug-ins/script-fu/script-fu-scripts.c use g_printerr() instead of
2007-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/scheme-wrapper.c: use g_printerr() instead 
of
	fprintf().


svn path=/trunk/; revision=21946
2007-02-19 10:04:20 +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
Kevin Cozens 4107f0faf8 Add define for symkey() to quiet the compiler.
2007-02-17  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme-private.h: Add define for
	symkey() to quiet the compiler.

	* plug-ins/script-fu/tinyscheme/scheme.c (basic_inchar): Return
	blank when invalid UTF-8 character is encountered while reading
	from memory. Point to start of next valid character on error.

svn path=/trunk/; revision=21934
2007-02-18 03:46:50 +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
Mukund Sivaraman d9a29e1a44 plug-ins/imagemap/imap_cmd_guides.c plug-ins/imagemap/imap_main.c
2007-02-12  Mukund Sivaraman <muks@mukund.org>

        * plug-ins/imagemap/imap_cmd_guides.c
        * plug-ins/imagemap/imap_main.c
        * plug-ins/imagemap/imap_main.h
        * plug-ins/imagemap/imap_menu.c
        * plug-ins/imagemap/imap_object.c
        * plug-ins/imagemap/imap_preferences.h
        * plug-ins/imagemap/imap_object.h: Cleaned up some warnings in
        the imagemap plug-in; also fixed many function declarations.


svn path=/trunk/; revision=21904
2007-02-12 17:30:42 +00:00