Commit graph

5124 commits

Author SHA1 Message Date
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
Sven Neumann 687db3d69e plug-ins/common/svg.c plug-ins/common/tiff-load.c
2007-05-15  Sven Neumann  <sven@gimp.org>

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

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


svn path=/trunk/; revision=22491
2007-05-15 07:12:15 +00:00
Manish Singh d98ad07e18 add binding for gimp_user_directory().
2007-05-14  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpmodule.c: add binding for gimp_user_directory().

svn path=/trunk/; revision=22485
2007-05-14 07:37:52 +00:00
Sven Neumann 1b379af305 include libgimpbase/gimpbase.h.
2007-05-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/help/gimp-help-lookup.c: include 
libgimpbase/gimpbase.h.


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

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


svn path=/trunk/; revision=22473
2007-05-11 16:44:10 +00:00
Sven Neumann 62207445fd plug-ins/imagemap/imap_main.[ch] plug-ins/imagemap/imap_menu.c finished
2007-05-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/imagemap/imap_main.[ch]
	* plug-ins/imagemap/imap_menu.c
	* plug-ins/imagemap/imap_command.c: finished port of Undo and 
Redo
	menus to GtkAction. Closes bug #138841.


svn path=/trunk/; revision=22468
2007-05-10 19:29:47 +00:00
Manish Singh 083f18555d remove parameter definition special casing that was based on menu and
2007-05-10  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/gimpfu.py: remove parameter definition special
        casing that was based on menu and plugin types. Instead expect the
        script to specify all its parameters in its register call, and hide
        the UI elements for the parameters we are already passed in
        interactive mode. For compatibilty, this is only turned on when you
        specify the "menu" named argument in the register call, or if you
pass
        an empty label. This should fix bug #104639.

        * plug-ins/pygimp/plug-ins/clothify.py
        * plug-ins/pygimp/plug-ins/colorxhtml.py
        * plug-ins/pygimp/plug-ins/foggify.py
        * plug-ins/pygimp/plug-ins/py-slice.py
        * plug-ins/pygimp/plug-ins/shadow_bevel.py
        * plug-ins/pygimp/plug-ins/whirlpinch.py: update to register image
        * and
        drawable parameters explicitly.

svn path=/trunk/; revision=22467
2007-05-10 17:07:48 +00:00
Manish Singh e019d0c423 bind gimp_image_resize_to_layers.
2007-05-10  Manish Singh  <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-image.c: bind gimp_image_resize_to_layers.

svn path=/trunk/; revision=22466
2007-05-10 16:57:51 +00:00
Sven Neumann 09647decc7 reduced the number of progress updates.
2007-05-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/flame/rect.c: reduced the number of progress updates.

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

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


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

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

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

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


svn path=/trunk/; revision=22461
2007-05-09 16:14:18 +00:00
Sven Neumann 936324adfe focus the console entry, set the cursor position to the first parameter
2007-05-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.c 
(script_fu_browse_response):
	focus the console entry, set the cursor position to the first
	parameter and present the console window.


svn path=/trunk/; revision=22460
2007-05-09 12:29:19 +00:00
Raphael Quinet 9570934d39 quick workaround for bug #436077. A better solution will follow later.
2007-05-08  Raphael Quinet  <raphael@gimp.org>

	* plug-ins/metadata/xmp-encode.c (gen_property): quick workaround
	for bug #436077.  A better solution will follow later.

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

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


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

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


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

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

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

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


svn path=/trunk/; revision=22445
2007-05-07 07:36:56 +00:00
Sven Neumann 4babd09c14 plug-ins/fits/fitsrw.c applied modified patch from Peter Kirchgessner.
2007-05-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/fits/fitsrw.c
	* plug-ins/fits/fits.c: applied modified patch from Peter
	Kirchgessner. Fixes creation of the last data record and makes
	handling of float values independent of the locale (bug 
#351656).


svn path=/trunk/; revision=22444
2007-05-07 07:16:59 +00:00
Sven Neumann 9d91f3c5b7 don't add the radiobuttons into a GtkFrame.
2007-05-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/gimpfu.py: don't add the radiobuttons into a
	GtkFrame.

	* plug-ins/pygimp/plug-ins/sphere.py: added a PF_RADIO parameter
	as an example and for testing purposes.


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

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


svn path=/trunk/; revision=22441
2007-05-06 19:23:03 +00:00
Sven Neumann fb8af4647e make the default size even wider
svn path=/trunk/; revision=22440
2007-05-06 18:09:22 +00:00
Sven Neumann c4bf0847db start with a reasonable size and paned position and remember the window
2007-05-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c: start with a reasonable size 
and
	paned position and remember the window size and paned position 
at
	least within a GIMP session.


svn path=/trunk/; revision=22439
2007-05-06 17:53:57 +00:00
Sven Neumann 112595011f require libexif >= 0.6.0.
2007-05-06  Sven Neumann  <sven@gimp.org>

	* configure.in: require libexif >= 0.6.0.

	* plug-ins/jpeg/gimpexif.[ch]: removed 
gimp_exif_entry_get_value()
	which was needed to work with libexif < 0.6.0.

	* plug-ins/jpeg/jpeg.c: declare the global ExifData here instead
	of in gimpexif.c.

	* plug-ins/jpeg/jpeg-exif.c: cosmetics.


svn path=/trunk/; revision=22436
2007-05-06 14:48:32 +00:00
Sven Neumann 24ef133282 only check for EXIF_TAG_GPS_VERSION_ID if it's defined (see bug #377917).
2007-05-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/jpeg/jpeg-exif.c (jpeg_apply_exif_data_to_image): 
only
	check for EXIF_TAG_GPS_VERSION_ID if it's defined (see bug 
#377917).
	This tag was added in libexif 0.6.13.

svn path=/trunk/; revision=22435
2007-05-06 14:21:16 +00:00
Sven Neumann e685c1f189 clean gimpversion.h.
2007-05-06  Sven Neumann  <sven@gimp.org>

	* libgimpbase/Makefile.am (DISTCLEANFILES): clean gimpversion.h.

	* plug-ins/metadata/Makefile.am (CLEANFILES): clean testbase64.

	* po/Makefile.in.in (mostlyclean): clean 
.intltool-merge-cachemake

	* tools/pdbgen/Makefile.am: use DISTCLEANFILES instead of
	MAINTAINERCLEANFILES.


svn path=/trunk/; revision=22433
2007-05-06 13:54:56 +00:00
Simon Budig 196dda778e make gimp-edit-paste-as-new not fail at an empty clipboard, but return -1
2007-05-05  Simon Budig  <simon@gimp.org>

	* tools/pdbgen/pdb/edit.pdb: make gimp-edit-paste-as-new not fail
	at an empty clipboard, but return -1 as image id.

	* app/pdb/edit_cmds.c
	* libgimp/gimpedit_pdb.c: regenerated.

	* plug-ins/script-fu/scripts/paste-as-brush.scm
	* plug-ins/script-fu/scripts/paste-as-pattern.scm: Changed
	accordingly, fixes bug #357059.

	* modules/controller_linux_input.c: changed some axis names to
	make more sense.


svn path=/trunk/; revision=22429
2007-05-06 04:42:51 +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 32d6d421c6 added missing ellipsis to menu label and fixed default fonts.
2007-05-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/contactsheet.scm: added missing
	ellipsis to menu label and fixed default fonts.


svn path=/trunk/; revision=22415
2007-05-04 14:42:27 +00:00
Sven Neumann 7473d7e505 added missing ellipsis to menu label and corrected menu location.
2007-05-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/script-fu-set-cmap.scm: added missing
	ellipsis to menu label and corrected menu location.

svn path=/trunk/; revision=22414
2007-05-04 14:29:19 +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 94e0d48e7c reduced the number of progress updates.
2007-05-04  Mukund Sivaraman  <muks@mukund.org>

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


svn path=/trunk/; revision=22409
2007-05-04 11:22:36 +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 98105659ef plug-ins/ifscompose/ifscompose.c reduce the number of progress updates.
2007-05-04  Sven Neumann  <sven@gimp.org>

	* plug-ins/ifscompose/ifscompose.c
	* plug-ins/ifscompose/ifscompose_utils.c: reduce the number of
	progress updates.


svn path=/trunk/; revision=22400
2007-05-04 08:09:04 +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
Sven Neumann 0d3026e817 simplified message string
svn path=/trunk/; revision=22386
2007-05-03 08:51:14 +00:00
Sven Neumann 7d6ce73dcb plug-ins/winicon/icosave.c show a warning when the user is about to create
2007-05-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icosave.c
	* plug-ins/winicon/icodialog.c: show a warning when the user is
	about to create a file using newer features of the icon file 
format.
	Loosely based on a patch from Aurimas Juška. Fixes bug #409467.


svn path=/trunk/; revision=22385
2007-05-03 07:23:34 +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 5dc6e7ed2a applied patch from Eric Lamarque that fixes Script-Fu server output (bug
2007-05-02  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c (ts_get_error_msg): applied
	patch from Eric Lamarque that fixes Script-Fu server output
	(bug #431623).

svn path=/trunk/; revision=22378
2007-05-02 12:23:12 +00:00
Mukund Sivaraman 9c250a3e4c Check if any other IFDs exist before rejecting an image's EXIF info. Fixes
2007-05-02  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/jpeg/jpeg-exif.c: Check if any other IFDs exist before
        rejecting an image's EXIF info. Fixes bug #377917.


svn path=/trunk/; revision=22377
2007-05-02 12:14:48 +00:00
Manish Singh c0057c99a0 add optional run_mode keyword argument to pdb calls.
2007-04-28 Manish Singh <yosh@gimp.org>

        * plug-ins/pygimp/pygimp-pdb.c: add optional run_mode keyword argument
        to pdb calls.

svn path=/trunk/; revision=22361
2007-04-28 23:14:28 +00:00
Sven Neumann efb221acc7 app/widgets/gimpclipboard.c app/widgets/gimpdnd-xds.c use
2007-04-28  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpclipboard.c
	* app/widgets/gimpdnd-xds.c
	* plug-ins/helpbrowser/dialog.c: use 
gdk_atom_intern_static_string().


svn path=/trunk/; revision=22360
2007-04-28 10:11:37 +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
Sven Neumann 25e1872f78 fixed typo in procedure name (bug #433772).
2007-04-27  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/truchet.scm: fixed typo in 
procedure
	name (bug #433772).


svn path=/trunk/; revision=22352
2007-04-27 06:24:15 +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 d1e3313362 properly parse files with CRLF line-endings which were created in the past
2007-04-26  Mukund Sivaraman  <muks@mukund.org>

        * plug-ins/gfig/gfig-dobject.c: properly parse files with CRLF
        line-endings which were created in the past in Windows.

        * plug-ins/gfig/gfig.c: open files in binary mode so that the same
        line-endings are used on all platforms.


svn path=/trunk/; revision=22338
2007-04-26 10:08:08 +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
Michael Natterer e03ac7be42 Remove cruft probably left over from the svn migration script.
svn path=/trunk/; revision=22332
2007-04-25 14:51:07 +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 04dfa6366a enable word-wrapping in the Script-Fu console.
2007-04-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.c: enable word-wrapping 
in
	the Script-Fu console.


svn path=/trunk/; revision=22291
2007-04-20 11:14:27 +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
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