Commit graph

2356 commits

Author SHA1 Message Date
Sven Neumann 0d7835ac5b try to do something reasonable for the empty source range (bug #436145).
2007-05-06  Sven Neumann  <sven@gimp.org>

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


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

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


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

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

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

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

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

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

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


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

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


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

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


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

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

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

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

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

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


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

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


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

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

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

	Addresses (maybe fixes) bug #351281.

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

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


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

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

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


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

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

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

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

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

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

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

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

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

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


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

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


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

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

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

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

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

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


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

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


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

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


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

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


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

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


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

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

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

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


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

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


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

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


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

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


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

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

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

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


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

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

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

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

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

	* app/tools/gimprectangletool.c: formatting.

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

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


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

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


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

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


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

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


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

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

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

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

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

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


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

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

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

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

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

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


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

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

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

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

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

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

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

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


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

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


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

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

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

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


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

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

	(file_utils_find_proc)
	(file_check_magic_list): some cleanup.

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


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

	Fix stuck progress bars (bug #393832):

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

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

	Unrelated:

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

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


svn path=/trunk/; revision=22131
2007-03-15 23:39:32 +00:00