Commit graph

5226 commits

Author SHA1 Message Date
Sven Neumann 12474a3ba3 removed drawable parameter which was ignored anyway.
2007-07-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: removed drawable parameter which was
	ignored anyway.

svn path=/trunk/; revision=22999
2007-07-25 15:30:03 +00:00
Sven Neumann 03439b3775 reverted last change. Instead reimplemented the drawing to fetch the
2007-07-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c (draw_page_cairo): reverted
	last change. Instead reimplemented the drawing to fetch the pixels
	directly into the cairo image surface.

svn path=/trunk/; revision=22998
2007-07-25 14:59:15 +00:00
Sven Neumann 454f0baf1e push a group around the image surface fills. This seems to get rid of the
2007-07-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c (draw_page_cairo): push a group
	around the image surface fills. This seems to get rid of the white
	stripes in the output.

svn path=/trunk/; revision=22997
2007-07-25 13:35:13 +00:00
Sven Neumann f1d9937c25 always call gimp_ui_init(), we need funtionality from GTK+, even if called
2007-07-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (run): always call gimp_ui_init(), we need
	funtionality from GTK+, even if called non-interactively.

svn path=/trunk/; revision=22996
2007-07-25 11:05:13 +00:00
Sven Neumann 7e4e919152 added new procedure gimp-progress-end.
2007-07-25  Sven Neumann  <sven@gimp.org>

	* tools/pdbgen/pdb/progress.pdb: added new procedure gimp-progress-end.

	* app/pdb/progress_cmds.c
	* app/pdb/internal_procs.c
	* libgimp/gimpprogress_pdb.[ch]: regenerated.

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-settings.[ch]: end the progress and save
	the settings from the "end-print" handler. The plug-in then
	appears finished but keeps running in the background until it has
	finished the print operation.

svn path=/trunk/; revision=22994
2007-07-25 10:48:25 +00:00
Sven Neumann b7e345a06c delete the export image from the "end-print" handler.
2007-07-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: delete the export image from the
	"end-print" handler.


svn path=/trunk/; revision=22993
2007-07-25 07:36:15 +00:00
Sven Neumann adbe90b885 string changes.
2007-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: string changes.


svn path=/trunk/; revision=22988
2007-07-24 20:16:31 +00:00
Sven Neumann 39731af46c applied patch from Stefan Röllin to restore image offsets (bug #387604).
2007-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: applied patch from Stefan
	Röllin to restore image offsets (bug #387604).


svn path=/trunk/; revision=22986
2007-07-24 17:20:51 +00:00
Sven Neumann bf6c7816e0 use integer arithmetic to do the compositing.
2007-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-draw-page.c (create_surface_from_rgba):
	use integer arithmetic to do the compositing.

svn path=/trunk/; revision=22985
2007-07-24 13:59:12 +00:00
Sven Neumann 0b2684c393 use g_filename_display_basename() instead of g_path_get_basename().
2007-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_main.c (main_set_title): use
	g_filename_display_basename() instead of g_path_get_basename().

svn path=/trunk/; revision=22983
2007-07-24 10:05:27 +00:00
Sven Neumann 959cc9c5b0 use gimp_image_get_name() instead of duplicating its functionality
svn path=/trunk/; revision=22982
2007-07-24 08:56:09 +00:00
Sven Neumann 39e4997706 set a print job name.
2007-07-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: set a print job name.


svn path=/trunk/; revision=22981
2007-07-24 07:22:35 +00:00
Sven Neumann fefd674d40 if we created an export image, delete it as soon as possible so it isn't
2007-07-24  Sven Neumann  <sven@gimp.org>

        * plug-ins/print/print.c: if we created an export image, delete
        it as soon as possible so it isn't left behind if the user kills
        the plug-in later because of printer problems.


svn path=/trunk/; revision=22980
2007-07-24 07:05:06 +00:00
Sven Neumann bacbb23381 plug-ins/print/print.[ch] plug-ins/print/print-page-layout.c removed
2007-07-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.[ch]: removed image_ID from the
	PrintData struct and made sure that the parasites are read from
	and attached to the original image, not the export image.


svn path=/trunk/; revision=22978
2007-07-23 21:17:47 +00:00
Sven Neumann 1665395f50 don't add an alpha channel.
2007-07-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c: don't add an alpha channel.

	* plug-ins/print/print-draw-page.c: always use 
CAIRO_FORMAT_RGB24.


svn path=/trunk/; revision=22977
2007-07-23 20:47:25 +00:00
Sven Neumann 08dc7006ea only delete the image if gimp_export_image() actually created a new one.
2007-07-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print.c (print_image): only delete the image if
	gimp_export_image() actually created a new one.

svn path=/trunk/; revision=22975
2007-07-23 14:10:47 +00:00
Sven Neumann 9b22106ba6 some more dialog layout tweaks.
2007-07-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/print/print-page-layout.c: some more dialog layout tweaks.

svn path=/trunk/; revision=22974
2007-07-23 13:02:47 +00:00
Raphael Quinet e1c7012876 added support for reading indexed TGA images with transparency information
2007-07-20  Raphael Quinet  <raphael@gimp.org>

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

svn path=/trunk/; revision=22971
2007-07-20 21:56:55 +00:00
Sven Neumann 007e16fdf3 Applied another patch from Stefan Röllin:
2007-07-20  Sven Neumann  <sven@gimp.org>

	Applied another patch from Stefan Röllin:

	* plug-ins/print/print-page-layout.c: align buttons.


svn path=/trunk/; revision=22970
2007-07-20 18:03:11 +00:00
Sven Neumann 18d3c4835d libgimpwidgets/gimpoffsetarea.c set a cursor to indicate that the area is
2007-07-20  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/gimpoffsetarea.c
	* plug-ins/print/print-preview.c: set a cursor to indicate that
	the area is interactive.

	* plug-ins/print/print-page-layout.c: minor dialog tweaks.

svn path=/trunk/; revision=22963
2007-07-20 12:29:38 +00:00
Sven Neumann 5db980554c Applied patch from Stefan Röllin attached to bug #387604:
2007-07-20  Sven Neumann  <sven@gimp.org>

        Applied patch from Stefan Röllin attached to bug #387604:

        * plug-ins/print/print-draw-page.c: take offsets into account.


svn path=/trunk/; revision=22962
2007-07-20 11:08:39 +00:00
Raphael Quinet f1a5224a9b changed the magic string to "Research" starting at offset 4 (this also
2007-07-20  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/faxg3/faxg3.c (query): changed the magic string to
	"Research" starting at offset 4 (this also matches the longer
	string "PC Research, Inc" starting at offset 1).  Addresses a part
	of bug #445559.

svn path=/trunk/; revision=22960
2007-07-19 22:17:15 +00:00
Sven Neumann 1785cef894 Applied patch from Stefan attached to bug #387604:
2007-07-19  Sven Neumann  <sven@gimp.org>

	Applied patch from Stefan attached to bug #387604:

	* plug-ins/print/Makefile.am
	* plug-ins/print/print-preview.[ch]: new files implementing a
	print preview similar to GimpOffsetArea.

	* plug-ins/print/print.[ch]
	* plug-ins/print/print-page-layout.c
	* plug-ins/print/print-settings.c: adds GUI to adjust the 
offsets.


svn path=/trunk/; revision=22959
2007-07-19 20:32:53 +00:00
Raphael Quinet ab7d5cac94 plug-ins/jpeg/jpeg.c Removed obsolete libjpeg error manager that was
2007-07-17  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpeg.c
	* plug-ins/jpeg/jpeg-load.c: Removed obsolete libjpeg error
	manager that was disabling the loading of EXIF data.

svn path=/trunk/; revision=22952
2007-07-17 22:02:03 +00:00
Sven Neumann e9ee1c2ead fixed build for HAVE_EXIF being undefined.
2007-07-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (load_image): fixed build for
	HAVE_EXIF being undefined.


svn path=/trunk/; revision=22951
2007-07-17 20:37:26 +00:00
Raphael Quinet 1065f0eb85 Reorganized the way JPEG comments and metadata are loaded.
2007-07-17  Raphael Quinet  <raphael@gimp.org>

	Reorganized the way JPEG comments and metadata are loaded.
	
	* plug-ins/jpeg/jpeg-load.c (load_image): sanitize comments
	containing invalid UTF-8 instead of discarding them.  If there is
	more than one EXIF block in a file, merge all of them instead of
	keeping only the block that contains a thumbnail image (see also
	bug #446809 and bug #358117).  Process XMP after EXIF.

	* plug-ins/jpeg/jpeg.h: include two null characters as part of the
	EXIF header.

	* plug-ins/jpeg/jpeg-exif.c: added jpeg_exif_get_orientation(),
	removed jpeg_apply_exif_data_to_image() because this is now done
	directly in jpeg-load.c.

	* plug-ins/jpeg/jpeg-icc.c
	* plug-ins/jpeg/jpeg-icc.h: removed jpeg_icc_setup_read_profile()

svn path=/trunk/; revision=22949
2007-07-17 20:06:09 +00:00
Raphael Quinet 838a687a7c include GIMP version number in the EXIF "software" tag. This makes it
2007-07-17  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpeg-exif.c (jpeg_setup_exif_for_save): include
	GIMP version number in the EXIF "software" tag.  This makes it
	easier to debug issues related to metadata.

svn path=/trunk/; revision=22945
2007-07-17 11:52:50 +00:00
Sven Neumann 54078acc25 plug-ins/uri/uri.c get the procedure help strings from the backend
2007-07-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/uri/uri.c
	* plug-ins/uri/uri-backend.h: get the procedure help strings from
	the backend abstraction.

	* plug-ins/uri/uri-backend-gnomevfs.c
	* plug-ins/uri/uri-backend-libcurl.c
	* plug-ins/uri/uri-backend-wget.c: provide help strings.

svn path=/trunk/; revision=22937
2007-07-16 13:12:58 +00:00
Sven Neumann 10acbe9f7b only register one save MIME handler. Fixes bug #457045.
2007-07-16  Sven Neumann  <sven@gimp.org>

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

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

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

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

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


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

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


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

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

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


svn path=/trunk/; revision=22912
2007-07-11 20:31:18 +00:00
Sven Neumann c9f3acfcf4 plug-ins/script-fu/scripts/chrome-it.scm
2007-07-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/chrome-it.scm
	* plug-ins/script-fu/scripts/perspective-shadow.scm
	* plug-ins/script-fu/scripts/selection-round.scm
	* plug-ins/script-fu/scripts/sota-chrome-logo.scm
	* plug-ins/script-fu/scripts/swirltile.scm
	* plug-ins/script-fu/scripts/waves-anim.scm: added leading zero to
	floating point numbers.

svn path=/trunk/; revision=22910
2007-07-11 09:07:45 +00:00
Kevin Cozens a9e36ed3b0 TinyScheme doesn't like inexact numbers to start with a decimal point.
2007-07-10  Kevin Cozens  <kcozens@cvs.gnome.org>

        * plug-ins/script-fu/scripts/3dTruchet.scm: TinyScheme doesn't like
        inexact numbers to start with a decimal point. Added leading '0' to
        two instances of '.2'.

svn path=/trunk/; revision=22908
2007-07-10 21:45:28 +00:00
Sven Neumann 49398233df plug-ins/jpeg/jpeg.c fixed an issue with the latest changes. Now "Load
2007-07-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg.c
	* plug-ins/jpeg/jpeg-save.[ch]: fixed an issue with the latest
	changes. Now "Load Defaults" does also work if "Save Defaults"
	wasn't used before.

svn path=/trunk/; revision=22907
2007-07-10 08:43:20 +00:00
Sven Neumann 84216d2bc8 when the save procedure is being called with GIMP_RUN_WITH_LAST_VALS and
2007-07-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg.c (run): when the save procedure is being
	called with GIMP_RUN_WITH_LAST_VALS and the image doesn't have 
the
	"jpeg-save-options" parasite set, show the dialog to give the 
user
	control over the JPEG encoding parameters.


svn path=/trunk/; revision=22905
2007-07-09 06:42:45 +00:00
Sven Neumann 2496945c55 plug-ins/jpeg/jpeg.c applied patch from Etienne which adds configurable
2007-07-08  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg.c
	* plug-ins/jpeg/jpeg-save.[ch]: applied patch from Etienne which
	adds configurable default parameters similar to the PNG save 
plug-in.
	Addresses bug #63610.


svn path=/trunk/; revision=22895
2007-07-08 13:33:21 +00:00
Sven Neumann 7b19c74d10 minor layout tweak.
2007-07-06  Sven Neumann  <sven@gimp.org>

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

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


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

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


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

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

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

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


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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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


svn path=/trunk/; revision=22862
2007-07-04 11:34:39 +00:00
Sven Neumann 05c9bfa3b1 plug-ins/metadata/xmp-encode.c don't include gimpui.h.
2007-06-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/metadata/xmp-encode.c
	* plug-ins/metadata/xmp-model.c: don't include gimpui.h.

	* plug-ins/metadata/Makefile.am: don't build interface.c, don't
	link with libgimpui and libgimpwidgets.

	* plug-ins/metadata/metadata.c: don't register the metadata editor.

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

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

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

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

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

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

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

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

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


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

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


svn path=/trunk/; revision=22809
2007-06-20 20:04:33 +00:00
Sven Neumann 1140960d35 hardcode the built-in units. Dynamically constructing the constants using
2007-06-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c (init_constants): hardcode
	the built-in units. Dynamically constructing the constants using
	gimp_unit_get_singular() doesn't work because it returns a
	translated string.

svn path=/trunk/; revision=22804
2007-06-20 10:54:28 +00:00
Sven Neumann c622b604d7 applied patch from Eric Lamarque with some minor modifications. Fixes the
2007-06-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.c (script_fu_cc_key_function):
	applied patch from Eric Lamarque with some minor modifications.
	Fixes the remaining aspect of bug #438997.

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

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

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


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

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


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

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


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

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


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

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


svn path=/trunk/; revision=22790
2007-06-16 13:04:08 +00:00
Mukund Sivaraman ad6bb7664f prepend instead of appending to list (patch written earlier).
2007-06-15  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gfig/gfig-dobject.c: prepend instead of appending to
        list (patch written earlier).


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

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


svn path=/trunk/; revision=22775
2007-06-13 17:31:02 +00:00
Kevin Cozens 182b2e27f8 Update "cursor" after writing characters to a string buffer. Fixes bug
2007-06-13  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c (putchars): Update "cursor"
	after writing characters to a string buffer. Fixes bug #446884.

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

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


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

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


svn path=/trunk/; revision=22769
2007-06-13 09:57:43 +00:00
Raphael Quinet eab19066db Instead of passing any file to libexif blindly, check first that some JPEG
2007-06-12  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/jpeg/jpeg-load.c (load_image): Instead of passing any
	file to libexif blindly, check first that some JPEG APP1 marker
	contains the EXIF header.

	* plug-ins/jpeg/jpeg-exif.c (jpeg_apply_exif_data_to_image):
	removed the tests that were checking for the presense of some EXIF
	tags such as the EXIF version before deciding if the data should
	be processed or not (bug #446809).

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

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

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

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


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

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

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

svn path=/trunk/; revision=22759
2007-06-11 20:40:32 +00:00
Sven Neumann 3ce6de2bb1 moved run_mode initialisation up a few lines.
2007-06-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/twain/twain.c (run): moved run_mode initialisation up 
a
	few lines.


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

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

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

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


svn path=/trunk/; revision=22749
2007-06-09 17:17:30 +00:00
Kevin Cozens dabf16b162 Applied patch from Daniel Richard G. that defines SCHEME_EXPORT as extern
2007-06-08  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.h: Applied patch from Daniel
	Richard G. that defines SCHEME_EXPORT as extern for non-Windows
	systems. Fixes bug #444964.

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

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


svn path=/trunk/; revision=22715
2007-06-06 08:44:52 +00:00
Michael Natterer 7b1d0ce92c don't expand the row we are going to, only its parent node.
2007-06-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/helpbrowser/dialog.c (browser_dialog_goto_index): don't
	expand the row we are going to, only its parent node.


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

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


svn path=/trunk/; revision=22712
2007-06-05 14:26:42 +00:00
Sven Neumann c2758fcc61 plug-ins/helpbrowser/dialog.c plug-ins/imagemap/imap_browse.c
2007-06-05  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c
	* plug-ins/imagemap/imap_browse.c
	* plug-ins/imagemap/imap_preview.c
	* plug-ins/imagemap/imap_selection.c: added const qualifiers.

svn path=/trunk/; revision=22711
2007-06-05 14:15:50 +00:00
Michael Natterer fe6787a105 new function which takes an uri and selects its item from the index tree.
2007-06-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/helpbrowser/dialog.[ch] (browser_dialog_goto_index):
	new function which takes an uri and selects its item from the
	index tree.

	* plug-ins/helpbrowser/helpbrowser.c (temp_proc_run): use it to
	select the right tree item when invoked from gimp.


svn path=/trunk/; revision=22710
2007-06-05 13:24:15 +00:00
Michael Natterer 54016ed370 keep a reverse mapping uri -> GtkTreeIter around and use it to select the
2007-06-05  Michael Natterer  <mitch@gimp.org>

	* plug-ins/helpbrowser/dialog.c: keep a reverse mapping
	uri -> GtkTreeIter around and use it to select the currently
	displayed help page in the index tree.


svn path=/trunk/; revision=22709
2007-06-05 12:34:17 +00:00
Sven Neumann 6ebc273959 applied patch from Saul Goode that enables Distress Selection for
2007-06-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/distress-selection.scm: applied patch
	from Saul Goode that enables Distress Selection for grayscale images.

svn path=/trunk/; revision=22706
2007-06-04 16:18:32 +00:00
Kevin Cozens ca3c9634a4 Removed spurious call to 'gimp-image-undo-disable'. From a patch by Saul
2007-06-03  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/round-corners.scm: Removed spurious
	call to 'gimp-image-undo-disable'. From a patch by Saul Goode.

svn path=/trunk/; revision=22697
2007-06-04 00:43:19 +00:00
Sven Neumann 3f1114859f allocate structs using GSlice.
2007-05-31  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/queue.c:  allocate structs using GSlice.

svn path=/trunk/; revision=22684
2007-05-31 12:25:42 +00:00
Mukund Sivaraman 2957d402cf plug-ins/Lighting/lighting_ui.c Specify maximum field width in fscanf() to
2007-05-31  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/Lighting/lighting_ui.c
        * plug-ins/FractalExplorer/Dialogs.c: Specify maximum field width in   
        fscanf() to avoid buffer overflows.


svn path=/trunk/; revision=22683
2007-05-31 10:35:06 +00:00
Mukund Sivaraman 1bf9e5623a Specify maximum field width in sscanf() to avoid buffer overflows.
2007-05-31  Mukund Sivaraman  <muks@mukund.org>

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


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

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


svn path=/trunk/; revision=22681
2007-05-31 10:15:06 +00:00
Mukund Sivaraman 43360ede74 Specify maximum field width in sscanf() to avoid buffer overflows.
2007-05-31  Mukund Sivaraman  <muks@mukund.org> 

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


svn path=/trunk/; revision=22680
2007-05-31 10:09:06 +00:00
Mukund Sivaraman 188196bdaf Specify maximum field width in fscanf() to avoid buffer overflows.
2007-05-31  Mukund Sivaraman  <muks@mukund.org>

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


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

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


svn path=/trunk/; revision=22678
2007-05-30 17:57:26 +00:00
Mukund Sivaraman bf49055820 Use a macro for size of style text entries array.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gfig/gfig-style.c: Use a macro for size of style text
        entries array.  


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

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


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

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


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

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


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

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


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

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


svn path=/trunk/; revision=22672
2007-05-30 17:11:13 +00:00
Mukund Sivaraman 97ab35b5ea Check and handle case where number of style items read can overflow the
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gfig/gfig-style.c: Check and handle case where number of
        style items read can overflow the buffer.


svn path=/trunk/; revision=22671
2007-05-30 16:44:38 +00:00
Mukund Sivaraman 5cb2e5c6b5 Replaced use of g_new()+strcpy() with g_strdup().
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gfig/gfig-style.c: Replaced use of g_new()+strcpy() with
        g_strdup().


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

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


svn path=/trunk/; revision=22669
2007-05-30 16:22:45 +00:00
Mukund Sivaraman a3b97fc77a Replaced use of g_malloc()+strcpy() with g_strdup().
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/xjt/xjt.c: Replaced use of g_malloc()+strcpy() with
        g_strdup().


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

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


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

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


svn path=/trunk/; revision=22666
2007-05-30 15:54:00 +00:00
Mukund Sivaraman 327a683cd4 Removed redundant image_ID declaration that shadowed an outer variable
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/jpeg/jpeg.c: Removed redundant image_ID declaration that
        shadowed an outer variable needlessly (found using Splint).


svn path=/trunk/; revision=22665
2007-05-30 14:10:10 +00:00
Mukund Sivaraman 23ff5cc24f Initialize spline.linearity before use.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/sel2path/fit.c: Initialize spline.linearity before use.


svn path=/trunk/; revision=22663
2007-05-30 13:13:21 +00:00
Mukund Sivaraman f136f00756 Initialize spline.linearity before use.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/sel2path/spline.c: Initialize spline.linearity before use.


svn path=/trunk/; revision=22662
2007-05-30 12:54:15 +00:00
Mukund Sivaraman eedd56c67a plug-ins/script-fu/re/split.c plug-ins/script-fu/re/split.h
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/script-fu/re/split.c
        * plug-ins/script-fu/re/split.h
        * plug-ins/script-fu/re/main.c
        * plug-ins/script-fu/re/Makefile.am: Created a header file (split.h)
        and added a prototype for split().


svn path=/trunk/; revision=22661
2007-05-30 12:02:11 +00:00
Mukund Sivaraman f67306c1d3 Added missing include.
2007-05-30  Mukund Sivaraman  <muks@mukund.org>

        * app/tools/gimpdrawtool.c: Added missing include.

        * app/tools/gimpbycolorselecttool.c: Removed unused variable.

        * app/plug-in/gimpenvirontable.c: Added cast for callback function.

        * plug-ins/script-fu/tinyscheme/scheme.c: Correctly cast pointer to
        an long integer type.


svn path=/trunk/; revision=22659
2007-05-30 11:49:14 +00:00
Sven Neumann 2e32d33c6d set a filename based on the image name. Based on a patch from Kevin
2007-05-30  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_file.c (do_file_save_as_dialog): set a
	filename based on the image name. Based on a patch from Kevin
	Hurewitz (bug #317916).

	* plug-ins/twain/tw_mac.c: don't use C++ style comments.


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

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

svn path=/trunk/; revision=22657
2007-05-29 15:29:37 +00:00
Mukund Sivaraman c705096434 Use C89 declarations.
2007-05-29  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/imagemap/imap_object.c: Use C89 declarations.


svn path=/trunk/; revision=22646
2007-05-29 02:31:15 +00:00
Manish Singh 6f26979be4 plug-ins/pygimp/gimpcolormodule.c plug-ins/pygimp/gimpenumsmodule.c
2007-05-28  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpcolormodule.c
        * plug-ins/pygimp/gimpenumsmodule.c
        * plug-ins/pygimp/gimpmodule.c
        * plug-ins/pygimp/gimpthumbmodule.c
        * plug-ins/pygimp/gimpuimodule.c
        * plug-ins/pygimp/pygimp-drawable.c
        * plug-ins/pygimp/pygimp-image.c
        * plug-ins/pygimp/pygimp-pdb.c
        * plug-ins/pygimp/pygimp-tile.c: cleanups.

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

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


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

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


svn path=/trunk/; revision=22636
2007-05-27 22:28:52 +00:00
Kevin Cozens 0ce5d22b3b plug-ins/script-fu/script-fu-text-console.c plug-ins/script-fu/script-fu.c
2007-05-25  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/script-fu-text-console.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/scheme-wrapper.h: Applied slightly modified
	patch from Eric Lamarque that makes use of TinyScheme's interactive
	mode for the text console in Script-Fu. Fixes bug #440674.

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

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


svn path=/trunk/; revision=22621
2007-05-25 17:04:52 +00:00
Kevin Cozens 32259b03dc Missed commit of this file.
2007-05-25  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/Makefile.am: Missed commit of this file.

	* plug-ins/script-fu/scheme-wrapper.h:
	* plug-ins/script-fu/scheme-wrapper.c (ts_output_string): Updated
	to expect a 'const char *' and an int but no file pointer.

	* plug-ins/script-fu/tinyscheme/scheme.c:
	* plug-ins/script-fu/tinyscheme/scheme.h: Changes due to use of
	'const char *' for ts_output_routine.

svn path=/trunk/; revision=22620
2007-05-25 16:26:46 +00:00
Kevin Cozens c87485d1bf This is the first part of fixing bugs #438997 and #440674.
2007-05-25  Kevin Cozens  <kcozens@cvs.gnome.org>

	This is the first part of fixing bugs #438997 and #440674. 

	* plug-ins/script-fu/scheme-wrapper.c: Removed ts_output_routine
	declaration from here...

	* plug-ins/script-fu/tinyscheme/scheme.h: and added it here.

	* plug-ins/script-fu/tinyscheme/scheme.c (putchars): Updated to be
	smarter about where it's output needs to be sent.

svn path=/trunk/; revision=22619
2007-05-25 15:58:09 +00:00
Sven Neumann ec1161c139 plug-ins/imagemap/imap_main.c applied patch from Kevin Hurewitz that adds
2007-05-25  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_main.c
	* plug-ins/imagemap/imap_object.[ch]: applied patch from Kevin
	Hurewitz that adds keyboard control for resizing an area (bug 
#439226).


svn path=/trunk/; revision=22609
2007-05-25 07:28:15 +00:00
Manish Singh 1c1ee4dd21 return None if we're passed an ID of -1, like the other GIMP object
2007-05-24  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-display.c (pygimp_display_new): return None
        if we're passed an ID of -1, like the other GIMP object constructors.

svn path=/trunk/; revision=22608
2007-05-25 01:28:31 +00:00
Manish Singh db08253213 remove the delete method, PyGimp objects are supposed to be deleted via
2007-05-24  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-display.c: remove the delete method, PyGimp
        objects are supposed to be deleted via gimp.delete()

svn path=/trunk/; revision=22607
2007-05-25 01:27:48 +00:00
Sven Neumann f98b0de0d6 added an ID attribute and a delete method to the Gimp.Display object.
2007-05-24  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/pygimp-display.c: added an ID attribute and a
	delete method to the Gimp.Display object.

	* plug-ins/pygimp/gimpshelf.py (_display_id): use the ID 
attribute.

	* plug-ins/pygimp/gimpfu.py: enabled support for PF_DISPLAY.


svn path=/trunk/; revision=22605
2007-05-24 20:12:50 +00:00
Sven Neumann dfc676e2f5 formatting, added const qualifiers.
2007-05-24  Sven Neumann  <sven@gimp.org>

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

svn path=/trunk/; revision=22602
2007-05-24 15:39:44 +00:00
Sven Neumann 8216ba62ed plug-ins/help/gimphelpitem.c plug-ins/help/gimphelplocale.c
2007-05-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/gimphelpitem.c
	* plug-ins/help/gimphelplocale.c
	* plug-ins/help/help.c
	* plug-ins/help/gimphelpdomain.c: allocate structs using GSlice.

svn path=/trunk/; revision=22596
2007-05-23 13:59:51 +00:00
Sven Neumann 30bdffb11e applied patch from Kevin Hurewitz that fixes resizing an area while being
2007-05-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_cmd_move_sash.c (sash_move): applied
	patch from Kevin Hurewitz that fixes resizing an area while being
	zoomed in (bug #439222).

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

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


svn path=/trunk/; revision=22591
2007-05-23 10:23:37 +00:00
Sven Neumann 017ff2e06d plug-ins/script-fu/script-fu-scripts.c use GSlice to allocate structs.
2007-05-22  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-interface.c: use GSlice to allocate
	structs.

svn path=/trunk/; revision=22568
2007-05-22 14:20:08 +00:00
Sven Neumann 618f648c21 pass the GimpProgress to gimp_message().
2007-05-21  Sven Neumann  <sven@gimp.org>

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

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

svn path=/trunk/; revision=22551
2007-05-21 15:57:22 +00:00
Jakub Steiner d5c5fba814 the "joy of gimp"
2007-05-21  Jakub Steiner <jimmac@ximian.com>

* plug-ins/helpbrowser/wilber-reading.{svg,png}: the "joy of gimp"

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

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


svn path=/trunk/; revision=22543
2007-05-20 18:43:22 +00:00
Sven Neumann dc26524025 moved duplicated code to a utility function.
2007-05-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-load.c: moved duplicated code to a utility
	function.


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

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

svn path=/trunk/; revision=22535
2007-05-18 14:18:49 +00:00
Kevin Cozens a479f0da28 Applied patch from Eric Lamarque that optimizes backchar() use. See bug
2007-05-17  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Applied patch from
	Eric Lamarque that optimizes backchar() use. See bug #374854.

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

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


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

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


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

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

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

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


svn path=/trunk/; revision=22517
2007-05-16 23:56:51 +00:00
Michael Natterer 8de797e0fa app/widgets/gimpthumbbox.c libgimp/gimpprogressbar.c use Gtk functions to
2007-05-16  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpthumbbox.c
	* libgimp/gimpprogressbar.c
	* plug-ins/script-fu/script-fu-interface.c: use Gtk functions to
	manually iterate the main loop because they release the Gdk lock
	correctly around calling the GLib main loop functions.


svn path=/trunk/; revision=22516
2007-05-16 20:19:31 +00:00
Sven Neumann 8444fb1ecb readded (better) code to deal with full menu paths.
2007-05-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c 
(script_fu_interface):
	readded (better) code to deal with full menu paths.


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

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


svn path=/trunk/; revision=22513
2007-05-16 17:40:13 +00:00
Sven Neumann 8684b3267c removed code that used to deal with full menu paths. All our scripts use
2007-05-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
	removed code that used to deal with full menu paths. All our
	scripts use script-fu-menu-register now.

svn path=/trunk/; revision=22512
2007-05-16 16:34:48 +00:00
Sven Neumann 147cb67322 plug-ins/script-fu/scripts/selection-round.scm unmarked strings for
2007-05-16  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/selection-round.scm
	* plug-ins/script-fu/scripts/copy-visible.scm: unmarked strings for
	translation.

2007-05-16  Sven Neumann  <sven@gimp.org>

	* POTFILES.in: removed copy-visible.scm.

	* de.po: fixed incorrect translation.

svn path=/trunk/; revision=22511
2007-05-16 16:28:04 +00:00
Sven Neumann a2621b55e0 plug-ins/jpeg/jpeg-save.c reduced number of progress updates.
2007-05-15  Sven Neumann  <sven@gimp.org>

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


svn path=/trunk/; revision=22502
2007-05-15 20:55:31 +00:00
Sven Neumann 7f97073527 renamed "Utils" to "Utilities".
2007-05-15  Sven Neumann  <sven@gimp.org>

        * plug-ins/script-fu/script-fu.c (script_fu_extension_init):
        renamed "Utils" to "Utilities".


svn path=/trunk/; revision=22498
2007-05-15 19:18:29 +00:00
Kevin Cozens 656a6d8639 Use 'img' and not 'new-img' in make-thumbnail-size routine. Moved menu
2007-05-15  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scripts/contactsheet.scm: Use 'img' and not
	'new-img' in make-thumbnail-size routine. Moved menu entry from
	Xtns/Utils to Xtns/Utilities. See bug #132532.

svn path=/trunk/; revision=22497
2007-05-15 18:53:36 +00:00
Kevin Cozens 4b2000bd1d Allow any number type in a vector to be passed in PDB call as an
2007-05-15  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scheme-wrapper.c (marshall_proc_db_call): Allow
	any number type in a vector to be passed in PDB call as an INT*ARRAY.
	Updated error messages accordingly. Fixes bug #435640.

svn path=/trunk/; revision=22495
2007-05-15 16:45:51 +00:00
Sven Neumann acc0e90145 don't show the window yet. The user might not have the help pages
2007-05-15  Sven Neumann  <sven@gimp.org>

        * plug-ins/helpbrowser/dialog.c (browser_dialog_open): don't show
        the window yet. The user might not have the help pages installed.

        * plug-ins/helpbrowser/wilber-reading.png: use the new style Wilber.


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

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


svn path=/trunk/; revision=22492
2007-05-15 11:58:56 +00:00