Commit Graph

1215 Commits

Author SHA1 Message Date
Kevin Cozens b435e55d14 Applied modified version of second patch for bug #642939.
Original patch supplied by Nelson A. de Oliveira. Modified to not use the
-1 "insanity" for invalid/none layer ID's in scripts per IRC discussion.
Additional scripts were changed to not pass -1 to gimp-image-insert-layer.
2011-03-02 02:55:43 -05:00
Kevin Cozens 403630fd57 Applied modified version of first patch for bug #642939.
Original patch supplied by Nelson A. de Oliveira. Modified to not use the
-1 "insanity" for invalid/none layer ID's in scripts per IRC discussion.
2011-03-02 02:27:15 -05:00
Barak Itkin b19645db49 script-fu: Use gimp-image-select-item instead of gimp-item-to-selection
gimp-item-to-selection does not seem to exist (in the PDB), so update to the
correct function gimp-image-select-item (which also takes the image as a
parameter).
2011-02-21 00:19:38 +02:00
Kevin Cozens 29716bccec Changed deprecation message to state name of replacement procedure 2011-02-13 14:02:46 -05:00
Kevin Cozens d2d6edc687 Eliminated compiler warning (from SVN version 71 of the TinyScheme project) 2011-02-09 01:41:34 -05:00
Kevin Cozens fac7d4dd64 Pulled in final changes from 1.40 release of the separate TinyScheme project.
With this commit, the TinyScheme component of Script-Fu now has all changes
and bug fixes that have been applied to the separate TinyScheme project.
2011-02-07 15:56:21 -05:00
Kevin Cozens 526c42dc35 Optionally report error line (from SVN r63 of official TinyScheme) 2011-02-07 15:56:21 -05:00
Kevin Cozens 7597d99c8d Added unwind-protect (from SVN r57 of official version of TinyScheme). 2011-02-07 15:56:20 -05:00
Kevin Cozens 8a8e8c6fad Fixed OP_INTEGERP op-code to match version in Tinyscheme 1.40
I don't know how the original block of code got the way it was since it has
been a single line of code in TinyScheme since the second revision. This also
prevents the compile from breaking if the USE_MATH #define was ever set to 0.
2011-01-19 15:30:47 -05:00
Kevin Cozens f571ebf247 Fix for SourceForge bug #2826594 (allow reverse to work on empty list).
From SVN version 64 of official version of TinyScheme.

Also removed obsolete op code from opdefines.h table.
2011-01-16 16:26:57 -05:00
Mukund Sivaraman cfde98394c Fix scheme for (integer? 7.0) which should return #t 2010-11-20 15:43:37 +05:30
Alexandre Prokoudine fee17f8712 Cleanup of recent changes in porting scripts to new API. Marked layer names in carved-logo.scm for translation while at that 2010-10-10 21:07:24 +04:00
Alexandre Prokoudine 3abf6de944 Porting scripts to new API, marking layer names for translation 2010-10-10 17:59:29 +04:00
Sven Neumann 4d18135b46 script-fu: use "Rule" instead of "Hrule" 2010-10-10 01:56:00 +02:00
Sven Neumann 9100fd1c62 script-fu: don't include whitespace used as separator in translatable string
Actually we should use a printf()-like syntax here to make such strings
translatable.
2010-10-10 01:54:11 +02:00
Alexandre Prokoudine 0a4657ae9f Porting scripts to new API, marking layer names for translation 2010-10-10 03:52:15 +04:00
Alexandre Prokoudine e1a705c125 Marking layer names for translation 2010-10-10 03:41:21 +04:00
Alexandre Prokoudine e062acbc64 Porting scripts to new API, marking layer names for translation 2010-10-10 03:40:59 +04:00
Alexandre Prokoudine 466523f732 Porting scripts to new API 2010-10-10 02:40:48 +04:00
Alexandre Prokoudine bb9c1210b3 Porting to new API: add-[layer|channel] > insert-[layer|channel] and more, perspective-shadow.scm will need revisiting re. new item transformation API 2010-10-10 02:14:53 +04:00
Alexandre Prokoudine eed3b054bc Porting to new API: add-[layer|channel] > insert-[layer|channel] and more 2010-09-28 09:10:07 +04:00
Alexandre Prokoudine 9f2f17851c Porting to new API: add-[layer|channel] > insert-[layer|channel] 2010-09-28 03:44:30 +04:00
Alexandre Prokoudine b02ba67199 Porting to new API: add-[layer|channel] > -insert-[layer|channel] 2010-09-28 03:30:33 +04:00
Kevin Cozens b0d8ba5ffd Additional fixes for handling UTF-8 coded strings (Bugs 572865 & 628893)
plug-ins/script-fu/scheme-wrapper.c:
- Fixed set and get of UTF-8 coded strings for parasites.

plug-ins/script-fu/tinyscheme/scheme.c:
- Additional fix to string-append and fixed substring. The mk_empty_string
  routine is not the way to allocate space for UTF-8 coded strings.
- Added some comments.
2010-09-20 23:20:45 -04:00
Kevin Cozens ae6670ba8b Last part of fixes for handling UTF-8 coded strings (Bugs 572865 & 628893)
At the end of a double quoted string, readstrexp() was passing byte count
instead of character count to mk_counted_string(). Cleaned up basic_inchar().
It ignores bad UTF-8 coded characters when reading from file or buffer.
2010-09-19 17:48:17 -04:00
Kevin Cozens 6855267470 First part of fixes for handling UTF-8 coded strings (Bugs 572865 & 628893)
Fixed string-set! and string-append due to mixup of chars vs. bytes.
Fixed calculation of pointer to past end of string in open-*-string
routines.
2010-09-19 17:48:17 -04:00
Tor Lillqvist 6d62a5e4fe Fix Win32 build
No sa_family_t in winsock headers, so typedef it.
2010-09-02 19:34:51 +03:00
Michael Schumacher e77dd90fc0 Bug 574018 - Add a manifest to executables
Created a resource file for plug-ins and a rule to link it to them.
The application icon file is smaller than the default one, there's no
point in doubling the size of a plug-in executable just for an icon.

If no problems turn up, this will close the bug.
2010-09-01 08:24:45 +02:00
Barak Itkin 03f1034a97 script-fu: Use the new gimp-item api where possible 2010-08-03 00:13:51 +03:00
Ulf-D. Ehlert f76981143d Bug 624761 - Stencil Chrome filter: missing parameter check
Limit the result of the internal "highlights" routine to 100.0,
preventing invalid "gimp-color-balance" color parameters.
Also, replace some parameters with appropriate named constants.
2010-07-21 20:43:48 +02:00
Nils Philippsen 521cf89006 script-fu: make server strict-aliasing friendly
use union of struct sockaddr* types instead of direct casts
2010-07-09 12:52:24 +02:00
Michael Natterer 2d6f808ff8 pdb: add a new PDB group "item" and move lots of functions to it
The item groups has all the duplicated functionality from drawable
and vectors (name, visible, linked etc).

Hijack the unused GIMP_PDB_REGION and turn it into GIMP_PDB_ITEM;
change all protocol aware files accordingly and bump the protocol
version number. Change script-fu to handle the new type.
2010-07-09 09:34:44 +02:00
Tor Lillqvist 6bfe88ae17 script-fu build fix for Windows 2010-07-05 09:59:34 +03:00
Nils Philippsen 04538534fc Bug 623045 - script-fu: make server IPv6 aware
use getnameinfo() instead of inet_ntoa()
use two sockets for IPv4, IPv6
2010-06-29 15:47:01 +02:00
Kevin Cozens 75941beaca Added SIOD compatability routines string-downcase and string-upcase. 2010-06-21 23:56:40 -04:00
Sven Neumann 7ed3998870 script-fu: clean up coding style and translatable messages 2010-05-31 21:36:36 +02:00
Sven Neumann e745ad94e4 script-fu: menu path should not be marked for translation 2010-05-31 21:10:46 +02:00
Barak Itkin 9cd68579e4 Bug 618961 - Bad escape character in script-fu palette-export prevents parsing
Fix a bad string escape character in palette-export.scm which prevents
the file from being parsed.
2010-05-22 12:48:38 +02:00
Cameron Gregory afa9bd3b9a plug-ins: script-fu-selection-rounded-rectangle takes four arguments
Don't forget to pass a value for the 'concave' parameter to
script-fu-selection-rounded-rectangle.
2010-05-16 11:46:33 +02:00
Alexandre Prokoudine bdd112c185 Better grammar, messages are translatable now 2010-04-20 00:11:54 +04:00
Kevin Cozens 32b7b79c33 Fixed scheme struct strbuff[] size to handle long strings in register blocks 2010-02-13 15:06:12 -05:00
Kevin Cozens 77498d1587 Bug 605540 - texts displayed with gimp-message are not translated
Applied modified version of patch supplied by Eric Lamarque.
2010-02-11 16:07:58 -05:00
Sven Neumann 799a7fc5a8 script-fu: drop gimp.org header and label scripts
These scripts used to be used to create graphics for the old gimp.org
web-page that has long been redone several times. There is no point in
distributing these scripts any longer.
2010-02-03 20:54:04 +01:00
Akkana Peck 36551daa19 Fix bug 590418: make chalk script-fu work.
Sobel doesn't work on layers with transparency, like text layers,
so the text layer in the chalk script needed to be merged with the
background layer beneath it.
2010-02-02 13:04:24 -08:00
Kevin Cozens cc6427e5d5 Applied patch from Saul Goode which mostly fixes bug #604587
Fixes delq when using numeric values. Fixes two bad let block declarations.
2010-01-31 18:46:21 -05:00
Michael Natterer 7175f3e883 Some more changes to build with GSEAL_ENABLE
- use more GTK+ accessors instead of struct members
- remove quite some #undef GSEAL_ENABLE from completely ported files
2010-01-15 15:35:03 +01:00
Sven Neumann 1339b5cd87 script-fu: remove dead code
Remove commented-out code that caused a false positive when
searching for deprecated GLib symbols.
2009-11-09 19:03:03 +01:00
Michael Natterer 018e8b0d29 Build with GSEAL_ENABLE and #undef it where accessors are missing 2009-10-17 20:31:57 +02:00
Michael Natterer f5115e06ec Use GtkAdjustment's accessors 2009-10-09 21:19:08 +02:00
Kevin Cozens 0e68a7d59a Updated TinyScheme to support UTF-8 coded filenames. See bug #592413. 2009-10-01 11:51:21 -04:00
Kevin Cozens 272073a196 Applied changes from CVS version 1.34 of official version of TinyScheme.
Fixed bug that could put the interpreter in to an endless loop on EOF in
the example case "(define foo".
2009-09-01 22:43:50 -04:00
Kevin Cozens 4acd4317a7 Eliminated compiler warnings (scheme.c). Fixed whitespace (dynload.c). 2009-09-01 21:52:11 -04:00
Kevin Cozens 728b1c6847 Eliminated some warnings when compiling TinyScheme. 2009-08-19 12:28:30 -04:00
Kevin Cozens bacce394b5 De-tabified file. 2009-08-18 10:48:10 -04:00
Kevin Cozens 5809ddcd32 Eliminated a compiler warning. 2009-08-18 10:47:43 -04:00
Kevin Cozens e602fc88af Defined *compile-hook*. Changes based on official version of TinyScheme
(CVS commit dated 2009/06/19 03:09).
2009-08-18 10:47:12 -04:00
Kevin Cozens 59ea11d78a Applied changes from CVS version 1.30 of official version of TinyScheme.
Some cleanups to in/outport and Eval_Cycle by Peter Michaux.
2009-08-18 10:46:01 -04:00
Kevin Cozens 05f2bd1aac Added style-control file variables for emacs to all C files.
Changes based on official version of TinyScheme (CVS commit dated
2009/06/15 00:01).
2009-08-18 10:45:03 -04:00
Kevin Cozens 70de6ab70f Applied changes from CVS version 1.27 of official version of TinyScheme.
Defined "snprintf" for WIN32 as "_snprintf".
2009-08-18 10:42:29 -04:00
Kevin Cozens 7ee46c4aa1 Added scheme_register_foreign_func_list and declarations for it.
Changes based on official version of TinyScheme (CVS commit dated
2008/07/11 19:09).
2009-08-18 10:38:33 -04:00
Kevin Cozens 4c862bf678 Applied changes from CVS version 1.24 of official version of TinyScheme.
Merged redundant list_length, is_list, OP_LISTP code.
2009-08-18 10:37:15 -04:00
Kevin Cozens 6a3a7befcf Applied changes from CVS version 1.23 of official version of TinyScheme.
Fixed potential problem of arglist to foreign calls being wrongly GC'ed.
2009-08-18 10:09:12 -04:00
Kevin Cozens 48c87c29fd Made nested calling thru C safer by save/restore old state.
Changes based on official version of TinyScheme (CVS commit dated
2008/05/25 03:27).
2009-08-18 10:09:12 -04:00
Kevin Cozens 76155d79df Minor changes to minimize differences to official version of TinyScheme.
Fixed potential buffer overflow in readstr_upto().
2009-08-18 10:09:12 -04:00
Kevin Cozens 7661513746 Updated TinyScheme version number to 1.39.
The TinyScheme component of Script-Fu is now in sync with the 1.39
release of the official version of TinyScheme from May 18, 2008.
Previous commit fixed bug #553377 and not #553337.
2009-08-09 16:01:30 -04:00
Kevin Cozens 01e27e8d6f Commented call to file_pop() left in inchar() by mistake. Fixes bug #553337.
Several changes to reduce some formatting differences to official TinyScheme.
De-tabified init.scm file.
2009-08-09 15:20:43 -04:00
Kevin Cozens 3db68e254a Applied changes based on official version of TinyScheme (CVS commit dated
2008/01/25 01:31). Put OP_T0LVL in charge of reacting to EOF.
2009-08-08 00:25:55 -04:00
Kevin Cozens 21cebda8a9 Applied changes based on official version of TinyScheme (CVS commits dated
2008/01/22 04:18). Fix for the load bug.
2009-08-07 23:56:40 -04:00
Kevin Cozens 9541fe0387 Applied changes from CVS version 1.15 of official version of TinyScheme.
Changed to always use snprintf (Patch due to Ramiro bsd1628).
2009-08-07 16:25:31 -04:00
Kevin Cozens 28e7c3f612 Applied changes from CVS version 1.9 of official version of TinyScheme.
Fix for nasty gc bug. This change shifts the burden of protecting newly
allocated cells in foreign functions from the foreign functions to the
TinyScheme interpreter.
2009-08-07 15:14:45 -04:00
Kevin Cozens 3d848b3917 Applied changes from CVS version 1.28 of scheme.c in official version of
TinyScheme. Peter Michaux cleaned up port_rep_from_file.
2009-08-07 15:14:45 -04:00
Kevin Cozens 101262b479 Applied changes based on official version of TinyScheme (CVS commit dated
2008/06/28 19:28). Applied C++ patch by Shintaro Jingu.
2009-08-04 19:40:09 -04:00
Kevin Cozens 60ddcb625b Applied changes from CVS version 1.4 of init.c in official version of
TinyScheme. Added unwind-protect (from Tom Breton).
2009-08-04 19:08:26 -04:00
Kevin Cozens b11f689986 Applied changes from CVS version 1.2 of init.scm in official version of
TinyScheme. Updated gcd and lcm to comply with the Scheme standard.
2009-08-04 19:04:31 -04:00
Kevin Cozens 5e9907d68d Applied changes from CVS version 1.16 of official version of TinyScheme.
file_push checks array bounds (patch from Ray Lehtiniemi)
2009-08-04 18:39:31 -04:00
Kevin Cozens bf3d355fd7 Applied changes based on official version of TinyScheme (CVS commit dated
2007/12/22 10:48) which makes string output ports conform to SRFI-6.
NOTE: SRFI-6 compliance is incomplete in official version of TinyScheme.
      (See SourceForge bug #2832150)

Also included two minor additions/corrections to old ChangeLog files.
2009-08-04 14:23:55 -04:00
Barak Itkin e7e5a6d19d Bug 304399 – Color Palette Export to TXT, CSS, XML, or XHTML
Add a palette export script which allows exporting palettes to .css,
.php, .py, .txt and .java by adding a Export to menu item in the
palette context menu in the Palettes dockable.
2009-08-02 15:11:28 +02:00
Michael Natterer e805cb0cf4 Use gtk_dialog_get_content_area() instead of dialog->vbox 2009-07-15 18:57:12 +02:00
Michael Schumacher eed061efbb Adding Microsoft Windows executables to the .gitignore files
All binaries have been added individually.
Old binaries are supposed to show up as untracked.
2009-06-19 00:14:17 +02:00
Christopher Montgomery b559354af1 plug-ins: Make sure to flush output in ts_stdout_output_func() 2009-05-28 21:07:07 +02:00
Sven Neumann 35ac02e66d Bug 557061 – Alpha to Logo
Applied patch from Eric Lamarque fixing an error in the Cool Metal Logo
script.
2009-05-21 18:49:51 +02:00
Sven Neumann a85bbe7fec added a newline to the output in the error case.
2009-03-22  Sven Neumann  <sven@gimp.org>

        * app/batch.c (batch_run_cmd): added a newline to the output in
        the error case.

        * plug-ins/script-fu/script-fu-eval.c (script_fu_eval_run):
        instead of disabling all output in batch mode, use the usual
        routine for error handling and pass the error string along with


svn path=/trunk/; revision=28200
2009-03-22 20:49:55 +00:00
Martin Nordholts 4d7a6b10d1 Added .gitignore files generated with git svn create-ignore.
svn path=/trunk/; revision=27972
2009-01-31 11:37:44 +00:00
Michael Natterer 4ea1437646 plug-ins/common/*.c plug-ins/color-rotate/color-rotate.c
2009-01-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/*.c
	* plug-ins/color-rotate/color-rotate.c
	* plug-ins/file-bmp/bmp.c
	* plug-ins/file-faxg3/faxg3.c
	* plug-ins/file-fits/fits.c
	* plug-ins/file-fli/fli-gimp.c
	* plug-ins/file-ico/ico.c
	* plug-ins/file-jpeg/jpeg.c
	* plug-ins/file-psd/psd-save.c
	* plug-ins/file-psd/psd.c
	* plug-ins/file-sgi/sgi.c
	* plug-ins/file-uri/uri.c
	* plug-ins/file-xjt/xjt.c
	* plug-ins/flame/flame.c
	* plug-ins/fractal-explorer/fractal-explorer.c
	* plug-ins/gfig/gfig.c
	* plug-ins/gimpressionist/gimp.c
	* plug-ins/gradient-flare/gradient-flare.c
	* plug-ins/help-browser/help-browser.c
	* plug-ins/ifs-compose/ifs-compose.c
	* plug-ins/imagemap/imap_main.c
	* plug-ins/lighting/lighting-main.c
	* plug-ins/map-object/map-object-main.c
	* plug-ins/maze/maze.c
	* plug-ins/metadata/metadata.c
	* plug-ins/pagecurl/pagecurl.c
	* plug-ins/print/print.c
	* plug-ins/pygimp/gimpfu.py
	* plug-ins/script-fu/script-fu-script.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/selection-to-path/selection-to-path.c
	* plug-ins/twain/twain.c
	* plug-ins/win-snap/winsnap.c: document the "run-mode" parameter
	as we document enums for core procedures.


svn path=/trunk/; revision=27922
2009-01-19 20:11:36 +00:00
Michael Natterer d9b5207aa2 Change licence to GPLv3 (and to LGPLv3 for libgimp).
2009-01-17  Michael Natterer  <mitch@gimp.org>

	* all files with a GPL header and all COPYING files:

	Change licence to GPLv3 (and to LGPLv3 for libgimp).

	Cleaned up some copyright headers and regenerated the parsers in
	the ImageMap plugin.


svn path=/trunk/; revision=27913
2009-01-17 22:28:01 +00:00
Sven Neumann d43a0fbf19 Bug 558454 – Plugin Map Color Range disapears from GIMP
2008-11-19  Sven Neumann  <sven@gimp.org>

	Bug 558454 – Plugin Map Color Range disapears from GIMP

	* plug-ins/script-fu/scripts/Makefile.am

	* plug-ins/script-fu/scripts/plug-in-compat.init: new file
	providing compatibility with plug-ins from older GIMP
	versions. Contains a reimplementation of plug-in-color-map based
	on ideas and code from Eric Lamarque.

	* plug-ins/script-fu/scheme-wrapper.c (tinyscheme_init): load 
the
	plug-in-compat.init file.


svn path=/trunk/; revision=27683
2008-11-19 08:17:28 +00:00
Sven Neumann 48baf2dd47 plug-ins/script-fu/scripts/Makefile.am renamed from web-browser.scm.
2008-10-29  Sven Neumann  <sven@gimp.org>

        * plug-ins/script-fu/scripts/Makefile.am
        * plug-ins/script-fu/scripts/gimp-online.scm: renamed from
        web-browser.scm.


svn path=/trunk/; revision=27457
2008-10-29 12:05:56 +00:00
Martin Nordholts abc09ec57a Bug 472403 – Add bevel script fu does not work if there is no
selection

* plug-ins/script-fu/scripts/add-bevel.scm (script-fu-add-bevel):
Applied modified patch from Barak Itkin that when there is no
selection makes the bevel be performed on the whole layer instead
of the whole image (which was broken in the first place). It also
fixes some bugs with setting the selection when there is no
initial selection.

svn path=/trunk/; revision=27070
2008-09-28 11:02:27 +00:00
Martin Nordholts fece66338e Rename 'select' to 'selection' since that is what it holds.
* plug-ins/script-fu/scripts/add-bevel.scm (script-fu-add-bevel):
Rename 'select' to 'selection' since that is what it holds.

svn path=/trunk/; revision=27069
2008-09-28 10:03:48 +00:00
Michael Natterer 9336d7be74 plug-ins/script-fu/Makefile.am new files containing script_fu_stresacpe().
2008-09-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/script-fu-utils.[ch]: new files containing
	script_fu_stresacpe().

	* plug-ins/script-fu/script-fu-script.c
	* plug-ins/script-fu/script-fu-scripts.[ch]: changed accordingly.


svn path=/trunk/; revision=27023
2008-09-20 09:58:30 +00:00
Michael Natterer 00c330825a rename "menu_path" to "menu_label". Having a full path here is just compat
2008-09-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-types.h (struct SFScript): rename
	"menu_path" to "menu_label". Having a full path here is just
	compat cruft.

	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-script.[ch]: changed accordingly.


svn path=/trunk/; revision=27016
2008-09-19 19:17:12 +00:00
Sven Neumann a2b283645a also apply the menu mapping on scripts that use script-fu-menu-register to
2008-09-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c: also apply the menu
	mapping on scripts that use script-fu-menu-register to add
	themselves to the menus.



svn path=/trunk/; revision=27015
2008-09-19 15:42:02 +00:00
Michael Natterer d80d1fabe9 move variables to local scopes, fix some whitespace and indentation, some
2008-09-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c: move variables to local
	scopes, fix some whitespace and indentation, some misc. cleanup,
	remove comments about array calling conventions that had lots of
	copy and paste errors.


svn path=/trunk/; revision=27014
2008-09-19 12:15:26 +00:00
Sven Neumann c7af52b846 renamed "file-new-menu" to "file-create-menu" and changed the menu label
2008-09-19  Sven Neumann  <sven@gimp.org>

	* app/actions/file-actions.c: renamed "file-new-menu" to
	"file-create-menu" and changed the menu label from "New" to 
"Create".

	* app/plug-in/plug-in-menu-path.c
	* menus/image-menu.xml.in
	* plug-ins/common/screenshot.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/scripts/*.scm
	* plug-ins/twain/twain.c
	* plug-ins/win-snap/winsnap.c: changed accordingly.


svn path=/trunk/; revision=27013
2008-09-19 12:01:12 +00:00
Sven Neumann a44896eeed increased size of the stack-allocated error string.
2008-09-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c
	(script_fu_marshal_procedure_call): increased size of the
	stack-allocated error string.


svn path=/trunk/; revision=27011
2008-09-19 09:47:10 +00:00
Michael Natterer bf7b72088f fix warning about missing braces around array initializer.
2008-09-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
	fix warning about missing braces around array initializer.


svn path=/trunk/; revision=27010
2008-09-19 09:36:17 +00:00
Michael Natterer cb702ebd1e add new functions script_fu_script_get_title() and
2008-09-19  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-script.[ch]: add new functions
	script_fu_script_get_title() and script_fu_script_reset().

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
	don't set all default values *and* values when parsing the script,
	just set the defaults and call script_fu_script_reset() afterwards.

	* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
	use the new script_fu_script_get_title().

	(script_fu_reset): call script_fu_script_reset() and then update
	the UI from the current values, instead of doing slightly
	different things for each arg type.


svn path=/trunk/; revision=27009
2008-09-19 09:34:35 +00:00
Sven Neumann 33500a415a don't leak the GError.
2008-09-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c 
(script_fu_script_proc):
	don't leak the GError.


svn path=/trunk/; revision=26998
2008-09-18 16:17:32 +00:00
Michael Natterer be043836f6 Bug 552785 – Script-fu run errors do not show in UI
2008-09-18  Michael Natterer  <mitch@gimp.org>

	Bug 552785 – Script-fu run errors do not show in UI

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_script_proc):
	fix the code that passes the error message back via the pipe.


svn path=/trunk/; revision=26997
2008-09-18 15:40:59 +00:00
Sven Neumann e0a2e4e5db plugged a memory leak.
2008-09-18  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c 
(script_fu_run_command):
	plugged a memory leak.

	* plug-ins/script-fu/script-fu-console.c
	* plug-ins/script-fu/script-fu-server.c: minor cleanup.


svn path=/trunk/; revision=26996
2008-09-18 14:12:30 +00:00
Michael Natterer 3b2661bd2b add new functions script_fu_script_collect_standard_args(),
2008-09-18  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-script.[ch]: add new functions
	script_fu_script_collect_standard_args(),
	script_fu_script_get_command() and
	script_fu_script_get_command_from_params().

	* plug-ins/script-fu/script-fu-scripts.c: remove the resp. code
	here and use above functions instead.

	* plug-ins/script-fu/script-fu-interface.c (script_fu_ok): changed
	loop over args to only copy all widget content into the script's
	values and then call script_fu_script_get_command().


svn path=/trunk/; revision=26993
2008-09-18 13:10:07 +00:00
Tor Lillqvist 9d28bbddb8 Fix small build break.
2008-09-18  Tor Lillqvist  <tml@novell.com>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
	Fix small build break.


svn path=/trunk/; revision=26991
2008-09-18 09:47:37 +00:00
Michael Natterer 03f0901de1 add struct SFArg which keeps all a script argument's type, label, value
2008-09-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-types.h: add struct SFArg which
	keeps all a script argument's type, label, value and default
	value.

	(struct SFScript): replace separate arrays of type, label etc. by
	one array of SFArg. Remove array of GimpParamDef because they are
	only needed while registering the temp proc.

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/script-fu-script.[ch]: new files implementing
	script_fu_script_new(), script_fu_script_free(),
	script_fu_script_register_proc() and
	script_fu_script_unregister_proc().

	* plug-ins/script-fu/script-fu-scripts.c: remove lots of code now
	implemented in script-fu-script.c. Changed stuff according to the
	introduction of SFArg. Moved variables to local scopes. Most
	changes are in script_fu_add_script(), almost every line changed
	and it's hopefully more readable now. Lots of cleanup all over the
	place.

	* plug-ins/script-fu/script-fu-interface.c: changed stuff
	according to the introduction of SFArg


svn path=/trunk/; revision=26978
2008-09-17 21:39:44 +00:00
Sven Neumann f00a167d2f tweaked error message.
2008-09-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c 
(script_fu_load_script):
	tweaked error message.


svn path=/trunk/; revision=26968
2008-09-17 11:18:53 +00:00
Sven Neumann 3fe2b1cb5a set the PDB error handler to GIMP_PDB_ERROR_HANDLER_PLUGIN while
2008-09-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c (script_fu_ok): set 
the
	PDB error handler to GIMP_PDB_ERROR_HANDLER_PLUGIN while
	interpreting the script.


svn path=/trunk/; revision=26967
2008-09-17 11:15:34 +00:00
Michael Natterer 23c141c8f9 fix indentation.
2008-09-17  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-interface.c (script_fu_interface):
	fix indentation.


svn path=/trunk/; revision=26966
2008-09-17 08:46:25 +00:00
Kevin Cozens 600274e85d Applied changes from official version of TinyScheme which adds tests for
2008-09-14  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c (mk_vector), (opexe_2):
	Applied changes from official version of TinyScheme which adds
	tests for when mk_vector is out of memory. Can't rely on sc->sink.

svn path=/trunk/; revision=26943
2008-09-14 22:59:06 +00:00
Kevin Cozens e5c73a05b4 plug-ins/script-fu/tinyscheme/scheme.c Applied changes froh official
2008-09-12  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c
	* plug-ins/script-fu/tinyscheme/scheme.h: Applied changes froh
	official version of TinyScheme which expose more of the internals.
	Part of making it more suitable for Scheme->C->Scheme calling.
	See SourceForge bug #1599947.

svn path=/trunk/; revision=26937
2008-09-12 17:30:28 +00:00
Kevin Cozens 2f42209d7a Updating to match version in official version of TinyScheme.
2008-09-11  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/CHANGES: Updating to match version
	in official version of TinyScheme.

	* plug-ins/script-fu/tinyscheme/scheme.c: Applied changes from
	official version of TinyScheme which adds entry point for nested
	calling. Part of making it more suitable for Scheme->C->Scheme
	calling. See SourceForge bug #1599945. Updated usage information
	using text from Manual.txt.

svn path=/trunk/; revision=26930
2008-09-11 20:57:38 +00:00
Michael Natterer c76db26367 reordered and renamed functions to be consistent. Got rid of file-global
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.[ch]: reordered and renamed
	functions to be consistent. Got rid of file-global "register_scripts"
	variable. Pass more "scheme *sc" pointers around to reduce usage
	or the global variable.

	* plug-ins/script-fu/script-fu-eval.c
	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-server.c
	* plug-ins/script-fu/script-fu.c: changed accordingly.


svn path=/trunk/; revision=26928
2008-09-11 18:00:18 +00:00
Michael Natterer 5c6132b8cb namespace, copyright headers, indentation, formatting, everything...
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-regex.[ch]: namespace, copyright
	headers, indentation, formatting, everything...

	* plug-ins/script-fu/scheme-wrapper.c: changed accordingly. Some
	formatting cleanup here too.


svn path=/trunk/; revision=26925
2008-09-11 13:33:58 +00:00
Michael Natterer 53d82016bc convert the filename to UTF-8 before displaying it in the error message.
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_load_script):
	convert the filename to UTF-8 before displaying it in the error
	message.


svn path=/trunk/; revision=26923
2008-09-11 08:49:49 +00:00
Michael Natterer 13a7c01115 use g_set_error() instead of g_set_error_literal() which is only available
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command):
	use g_set_error() instead of g_set_error_literal() which is only
	available in glib 2.18.


svn path=/trunk/; revision=26922
2008-09-11 08:36:29 +00:00
Michael Natterer bace080590 plug-ins/script-fu/Makefile.am removed....
2008-09-11  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/re/*: removed....

	* plug-ins/script-fu/script-fu-regex.[ch]: and replaced with a
	few-liner using GRegex. Seems to have some issues that need to be
	sorted out.

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


svn path=/trunk/; revision=26921
2008-09-10 23:10:15 +00:00
Michael Natterer 0765087a8f Change Script-Fu error handling to properly use the new error message
2008-09-10  Michael Natterer  <mitch@gimp.org>

	Change Script-Fu error handling to properly use the new error
	message passing in PDB return values:

	* plug-ins/script-fu/script-fu-scripts.[ch]: remove function
	script_fu_error_msg().

	* plug-ins/script-fu/script-fu-interface.c (script_fu_ok): output
	errors of interactive script-fu dialogs directly here with
	g_message().

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_run_command):
	add GError and return the error message instead of displaying it.

	(script_fu_load_script): show the returned error here (and make it
	more specific than the former script_fu_error_msg() did).

	(script_fu_script_proc): return error messages via the procedure's
	return values.

	* plug-ins/script-fu/scheme-wrapper.c
	(script_fu_marshal_procedure_call): if an error message was
	returned from the PDB call, pass it to foreign_error() so it ends
	up where it should (consle, text console or error string).

	* plug-ins/script-fu/script-fu-console.c
	* plug-ins/script-fu/script-fu-text-console.c: set the error
	handler to PLUGIN while interpreting scheme, we handle errors
	from calling back into the PDB ourselves now.


svn path=/trunk/; revision=26920
2008-09-10 20:33:50 +00:00
Michael Natterer 3977873bc0 fix prototype (foo() is not a prototype, use foo(void) instead).
2008-09-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/tinyscheme/scheme.h: fix prototype (foo() is
	not a prototype, use foo(void) instead).


svn path=/trunk/; revision=26919
2008-09-10 20:07:17 +00:00
Michael Natterer faf7eaa244 remove debug arrays to map the values of registered enums to strings. Look
2008-09-09  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c
	(script_fu_marshal_procedure_call): remove debug arrays to map the
	values of registered enums to strings. Look up the strings
	registered with the type system instead.


svn path=/trunk/; revision=26911
2008-09-09 14:40:52 +00:00
Michael Natterer 11b6b0742b fix formatting of prototypes.
2008-09-09  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c: fix formatting of prototypes.

	(script_fu_marshal_procedure_call): move variables to local scopes
	where possible. Make this function a bit readable by indenting the
	debug code in DEBUG_MARSHAL normally.


svn path=/trunk/; revision=26910
2008-09-09 14:22:44 +00:00
Michael Natterer 72c4ef1a83 app/Makefile.am remove references to $(REGEXREPL).
2008-09-09  Michael Natterer  <mitch@gimp.org>

	* app/Makefile.am
	* plug-ins/script-fu/Makefile.am: remove references to $(REGEXREPL).


svn path=/trunk/; revision=26907
2008-09-09 12:21:43 +00:00
Sven Neumann 8ec1d65a4a removed trailing whitespace
svn path=/trunk/; revision=26852
2008-09-04 08:37:32 +00:00
Sven Neumann d3ca13db06 applied patch from LightningIsMyName. Changes the script to not break if
2008-08-23  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/coolmetal-logo.scm: applied patch
	from LightningIsMyName. Changes the script to not break if 
called
	on a floating selection (bug #327681).


svn path=/trunk/; revision=26728
2008-08-23 16:29:39 +00:00
Sven Neumann c908bfc3fc plug-ins/script-fu/script-fu-scripts.c changed to actually return a
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c
	* plug-ins/script-fu/script-fu-interface.[ch]: changed to 
actually
	return a meaningful return status when a script-fu procedure is 
run.


svn path=/trunk/; revision=26702
2008-08-21 17:35:52 +00:00
Sven Neumann bf1c783f44 plug-ins/script-fu/Makefile.am new files split out of
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/Makefile.am
	* plug-ins/script-fu/script-fu-eval.[ch]: new files split out of
	script-fu-console.c[ch].

	* plug-ins/script-fu/script-fu-text-console.h: fixed comment.

	* plug-ins/script-fu/script-fu-console.[ch]: removed 
script-fu-eval
	procedure here.

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


svn path=/trunk/; revision=26698
2008-08-21 14:48:29 +00:00
Sven Neumann c85fc6eb21 formatting.
2008-08-21  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu.c (script_fu_run): formatting.


svn path=/trunk/; revision=26697
2008-08-21 14:01:17 +00:00
Sven Neumann 05287d057a pass error message with the return values instead of calling g_message().
2008-08-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-console.c (script_fu_eval_run):
	pass error message with the return values instead of calling
	g_message().


svn path=/trunk/; revision=26680
2008-08-20 14:45:21 +00:00
Sven Neumann 4a2063872d unmarked string for translation. Script-Fu doesn't support i18n outside
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/frosty-logo.scm
	(apply-frosty-logo-effect): unmarked string for translation.
	Script-Fu doesn't support i18n outside the register call.


svn path=/trunk/; revision=26624
2008-08-17 15:01:39 +00:00
Sven Neumann 3db928cfc7 plug-ins/script-fu/scripts/glowing-logo.scm changed the "Alpha to Logo"
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/glowing-logo.scm
	* plug-ins/script-fu/scripts/neon-logo.scm: changed the "Alpha 
to
	Logo" parts of these scripts so that the user can specify the
	effect size directly instead of as some multiple of the size.


svn path=/trunk/; revision=26623
2008-08-17 14:57:21 +00:00
Sven Neumann b801bc39ad dropped the "Alpha to Logo" part of the "Starscape logo script. It had a
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/starscape-logo.scm: dropped the
	"Alpha to Logo" part of the "Starscape logo script. It had a
	similar problem as the Starburst script (see bug #486779).


svn path=/trunk/; revision=26622
2008-08-17 14:54:53 +00:00
Sven Neumann 97f281a9c3 plug-ins/script-fu/scripts/Makefile.am dropped the "Starburst" logo
2008-08-17  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/Makefile.am
	* plug-ins/script-fu/scripts/starburst-logo.scm: dropped the
	"Starburst" logo script. Fixes bug #486779.


svn path=/trunk/; revision=26621
2008-08-17 14:42:11 +00:00
Sven Neumann d87877c257 instead of calling gimp-displays-flush twice a second, call it after each
2008-08-13  Sven Neumann  <sven@gimp.org>

	* plug-ins/pygimp/plug-ins/python-console.py: instead of calling
	gimp-displays-flush twice a second, call it after each command
	that is committed. This is similar to what the Script-Fu console
	does.

	* plug-ins/script-fu/script-fu-console.c: formatting.


svn path=/trunk/; revision=26543
2008-08-13 21:54:27 +00:00
Sven Neumann cf2c4f7639 applied slightly modified version of a patch provided by
2008-08-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/frosty-logo.scm: applied slightly
	modified version of a patch provided by LightningIsMyName.
	Catches some cases where the script would fail (bug #472316).


svn path=/trunk/; revision=26433
2008-08-07 21:48:19 +00:00
Sven Neumann 81131c0bb4 Add new PDB data type PDB_COLORARRAY for using arrays of GimpRGB colors as
2008-07-14  Sven Neumann  <sven@gimp.org>

	Add new PDB data type PDB_COLORARRAY for using arrays of GimpRGB
	colors as argument or return value.

	* libgimpbase/gimpbaseenums.[ch] (enum GimpPDBArgType): replaced
	the unused GIMP_PDB_BOUNDARY with GIMP_PDB_COLORARRAY.

	* libgimpbase/gimpprotocol.h: increased GIMP_PROTOCOL_VERSION.
	(struct _GPParam): added d_colorarray entry to the union.

	* libgimpbase/gimpprotocol.c
	* libgimp/gimp.[ch]
	* app/pdb/gimp-pdb-compat.c
	* app/plug-in/plug-in-params.c
	* app/plug-in/gimpplugin-message.c
	* tools/pdbgen/pdb.pl: deal with the new data type.

	* tools/pdbgen/enums.pl: regenerated.

	* plug-ins/pygimp/pygimp-pdb.c
	* plug-ins/script-fu/scheme-wrapper.c: handle the new data type.


svn path=/trunk/; revision=26189
2008-07-14 14:09:16 +00:00
Sven Neumann 73e717eb34 require glib-gettextize 2.16.
2008-05-23  Sven Neumann  <sven@gimp.org>

	* autogen.sh (GLIB_REQUIRED_VERSION): require glib-gettextize 2.16.

	* libgimp/libgimp-intl.h
	* plug-ins/pygimp/pygimp-intl.h: synced with gi18n-lib.h from glib
	2.16. This adds support for the C_() macro.

	* plug-ins/script-fu/script-fu-intl.h: just include gi18n.h instead
	of duplicating things from this header.

svn path=/trunk/; revision=25775
2008-05-23 13:36:31 +00:00
Kevin Cozens f8ac996bbe Added extra check to stop "(let x 5)" syntax from causing seg fault in
2008-05-22  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Added extra check to stop
	"(let x 5)" syntax from causing seg fault in Linux. See bug #508020.
	Removed some excess whitespace.

svn path=/trunk/; revision=25770
2008-05-22 22:08:18 +00:00
Kevin Cozens bedb7e3163 Reverting previous change. I figured it would break something. It breaks
2008-05-18  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Reverting previous change.
	I figured it would break something. It breaks the 'while' macro by
	preventing use of a named let.

svn path=/trunk/; revision=25706
2008-05-18 21:20:12 +00:00
Martin Nordholts b742fa2bcb Commited patch from gymp that removes bogus FIXME (bug #533647).
2008-05-18  Martin Nordholts  <martinn@svn.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Commited patch from gymp
	that removes bogus FIXME (bug #533647).

svn path=/trunk/; revision=25697
2008-05-18 13:23:16 +00:00
Kevin Cozens 8b619f37b2 Added extra checks to stop bad syntax in LET from causing a segmentation
2008-05-16  Kevin Cozens  <kcozens@cvs.gnome.org>

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

svn path=/trunk/; revision=25677
2008-05-16 20:22:01 +00:00
Sven Neumann fe60949678 applied patch from Ulf-D. Ehlert. Makes the vacated region, which is
2008-05-06  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/3d-outline.scm: applied patch from
	 Ulf-D. Ehlert. Makes the vacated region, which is created when
	 specifying a non-zero shadow offset, to be filled with the
	 background color (white) instead of transparency (bug #530216).

svn path=/trunk/; revision=25575
2008-05-06 11:52:56 +00:00
Martin Nordholts e946f60361 plug-ins/script-fu/scripts/3d-outline.scm
2008-04-12  Martin Nordholts  <martinn@svn.gnome.org>

	* plug-ins/script-fu/scripts/3d-outline.scm
	* plug-ins/script-fu/scripts/alien-glow-logo.scm
	* plug-ins/script-fu/scripts/alien-neon-logo.scm
	* plug-ins/script-fu/scripts/basic1-logo.scm
	* plug-ins/script-fu/scripts/basic2-logo.scm
	* plug-ins/script-fu/scripts/blended-logo.scm
	* plug-ins/script-fu/scripts/bovinated-logo.scm
	* plug-ins/script-fu/scripts/chalk.scm
	* plug-ins/script-fu/scripts/chip-away.scm
	* plug-ins/script-fu/scripts/chrome-logo.scm
	* plug-ins/script-fu/scripts/comic-logo.scm
	* plug-ins/script-fu/scripts/coolmetal-logo.scm
	* plug-ins/script-fu/scripts/frosty-logo.scm
	* plug-ins/script-fu/scripts/glossy.scm
	* plug-ins/script-fu/scripts/glowing-logo.scm
	* plug-ins/script-fu/scripts/gradient-bevel-logo.scm
	* plug-ins/script-fu/scripts/neon-logo.scm
	* plug-ins/script-fu/scripts/script-fu-util.scm
	* plug-ins/script-fu/scripts/starburst-logo.scm
	* plug-ins/script-fu/scripts/starscape-logo.scm
	* plug-ins/script-fu/scripts/t-o-p-logo.scm
	* plug-ins/script-fu/scripts/textured-logo.scm: Applied patch from
	Ulf-D. Ehlert that makes the Alpha to Logo-filters more gracefully
	handle images with many layers (bug #498480).

svn path=/trunk/; revision=25472
2008-04-12 10:45:42 +00:00
Sven Neumann cc57080a58 fixed compilation on Win32 (bug #527300).
2008-04-10  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
	fixed compilation on Win32 (bug #527300).


svn path=/trunk/; revision=25462
2008-04-10 19:38:30 +00:00
Michael Natterer e31bbcff9c plug-ins/pygimp/plug-ins/python-console.py fix new menu paths.
2008-04-10  Michael Natterer  <mitch@gimp.org>

	* plug-ins/pygimp/plug-ins/python-console.py
	* plug-ins/script-fu/scripts/ts-helloworld.scm: fix new menu paths.


svn path=/trunk/; revision=25459
2008-04-10 11:33:02 +00:00
Sven Neumann 5b5e0497bf plug-ins/script-fu/scripts/ts-helloworld.scm
2008-04-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/ts-helloworld.scm
	* plug-ins/script-fu/scripts/test-sphere.scm
	* plug-ins/script-fu/scripts/contactsheet.scm: register in new
	menu locations.


svn path=/trunk/; revision=25447
2008-04-09 17:24:05 +00:00
Sven Neumann 338d35b025 plug-ins/win-snap/winsnap.c plug-ins/common/screenshot.c
2008-04-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/win-snap/winsnap.c
	* plug-ins/common/screenshot.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/scripts/*.scm: register in new menu 
locations.


svn path=/trunk/; revision=25442
2008-04-09 17:04:24 +00:00
Sven Neumann dc11be31bb plug-ins/script-fu/scripts/Makefile.am removed Sphere script. It's a nice
2008-04-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/Makefile.am
	* plug-ins/script-fu/scripts/sphere.scm: removed Sphere
	script. It's a nice simple example but it has no real value.

	* plug-ins/script-fu/script-fu.c (script_fu_extension_init):
	removed "<Toolbox>/Xtns/Misc".

svn path=/trunk/; revision=25424
2008-04-09 09:00:20 +00:00
Sven Neumann e6b09b6141 marked a message for translation. Declare 'val' as const and use an extra
2008-04-09  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_add_script):
	marked a message for translation. Declare 'val' as const and use
	an extra variable where a not const variable is needed.

svn path=/trunk/; revision=25423
2008-04-09 08:54:01 +00:00
Sven Neumann 32d31eeb73 moved Languages to the bottom. Removed separator from the Filters list as
2008-04-09  Sven Neumann  <sven@gimp.org>

	* menus/image-menu.xml.in: moved Languages to the bottom.  Removed
	separator from the Filters list as there was really no rule as to
	what goes above and what goes below.

	* app/actions/plug-in-actions.c: added Filters->Decor submenu.

	* plug-ins/script-fu/script-fu.c (script_fu_extension_init):
	removed registration of redundant menu branches.

svn path=/trunk/; revision=25422
2008-04-09 08:39:24 +00:00
Michael Natterer 658d9f8d10 plug-ins/script-fu/scripts/guides-from-selection.scm
2008-03-28  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/guides-from-selection.scm
	* plug-ins/script-fu/scripts/guides-new-percent.scm
	* plug-ins/script-fu/scripts/guides-new.scm
	* plug-ins/script-fu/scripts/guides-remove-all.scm: use "*" as
	image type (not "") so the menu item is disabled when there is no
	image.


svn path=/trunk/; revision=25289
2008-03-28 17:50:35 +00:00
Michael Natterer 3a52a89c19 move the call to gimp-selection-save inside the undo group.
2008-03-28  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/scripts/line-nova.scm (script-fu-line-nova):
	move the call to gimp-selection-save inside the undo group.

	(script-fu-register): use "*" as image type (not "") so the menu
	item is disabled when there is no image.


svn path=/trunk/; revision=25276
2008-03-28 14:01:38 +00:00
Michael Natterer f63a7153ef Remove the toolbox menu:
2008-03-21  Michael Natterer  <mitch@gimp.org>

	Remove the toolbox menu:

	* configure.in: remove --enable-toolbox-menu option.

	* menus/Makefile.am
	* menus/toolbox-menu.xml.in: removed.

	* menus/image-menu.xml.in: add the debug menu here.

	* menus/menus.xsl: remove transformations depending on whether
	there is a toolbox menu or not.

	* app/menus/Makefile.am
	* app/menus/toolbox-menu.[ch]: removed.

	* app/menus/menus.c: remove the toolbox menu but keep the
	<Toolbox> UI manager around so we can configure its actions
	separate from normal docks.

	* app/actions/image-actions.c (image_actions): remove the action
	for the toolbox menubar.

	* app/widgets/gimptoolbox.c: remove all menu code.

	* app/plug-in/plug-in-menu-path.c: map plug-in registered toolbox
	menu items to their new location in the image menu
	unconditionally.

	* plug-ins/common/screenshot.c
	* plug-ins/common/uniteditor.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/scripts/web-browser.scm
	* plug-ins/twain/twain.c
	* plug-ins/winsnap/winsnap.c: remove menu registrations under
	<Toolbox>/File and change <Toolbox>/Help to <Image>/Help. Leave
	<Toolbox>/Xtns untouched until its final location and name are
	decided.


svn path=/trunk/; revision=25156
2008-03-21 17:55:32 +00:00
Michael Natterer bc9424a2b5 app/actions/data-commands.c app/actions/debug-commands.c
2008-03-12  Michael Natterer  <mitch@gimp.org>

	* app/actions/data-commands.c
	* app/actions/debug-commands.c
	* app/actions/dockable-commands.c
	* app/dialogs/stroke-dialog.c
	* app/display/gimpdisplayshell-handlers.c
	* app/gui/gui-message.c
	* app/gui/gui.c
	* app/tools/gimpforegroundselectoptions.c
	* app/tools/gimpinkoptions-gui.c
	* app/widgets/gimpcolordialog.c
	* app/widgets/gimpcontainerpopup.c
	* app/widgets/gimpcontainerview-utils.c
	* app/widgets/gimpdock.c
	* app/widgets/gimpdockable.c
	* app/widgets/gimpsessioninfo-book.c
	* app/widgets/gimpsessioninfo-dock.c
	* app/widgets/gimptoolbox.c
	* app/widgets/gimpunitcombobox.c
	* app/widgets/gimpviewablebox.c
	* libgimp/gimpexport.c
	* libgimpmodule/gimpmodule.h
	* libgimpwidgets/gimpenumwidgets.c
	* libgimpwidgets/gimpframe.c
	* libgimpwidgets/gimpoldwidgets.c
	* libgimpwidgets/gimpwidgets.c
	* plug-ins/MapObject/mapobject_ui.c
	* plug-ins/common/papertile.c
	* plug-ins/common/sinus.c
	* plug-ins/flame/flame.c
	* plug-ins/helpbrowser/gimpthrobber.c
	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/script-fu-console.c: use accessors instead of
	accessing GtkBin.child and GtkPaned.child1,2 directly.


svn path=/trunk/; revision=25095
2008-03-12 16:58:28 +00:00
Kevin Cozens bde85d9423 Commited slightly modified patch from LightningIsMyName. Fixes bug
2008-02-26  Kevin Cozens  <kcozens@cvs.gnome.org>

        * plug-ins/script-fu/scripts/frosty-logo.scm: Commited slightly
        modified patch from LightningIsMyName. Fixes bug #472316. The
	appearance of the sparkle layer could be better.

svn path=/trunk/; revision=24980
2008-02-26 18:32:39 +00:00
Sven Neumann b2f0d445c5 actually use the "Default Bumpmap Settings" parameter. Problem spotted by
2008-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/glossy.scm: actually use the "Default
	Bumpmap Settings" parameter. Problem spotted by Ulf-D. Ehlert.

svn path=/trunk/; revision=24921
2008-02-19 12:53:58 +00:00
Sven Neumann 74240ebcbd applied patch from Ulf-D. Ehlert that fixes a bug in the Glossy script
2008-02-19  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/glossy.scm: applied patch from
	Ulf-D. Ehlert that fixes a bug in the Glossy script when used with
	a pattern instead of a gradient blend (bug #517285).

svn path=/trunk/; revision=24919
2008-02-19 12:45:51 +00:00
Michael Natterer 23456dc253 app/display/gimpdisplayshell-callbacks.c
2008-02-16  Michael Natterer  <mitch@gimp.org>

	* app/display/gimpdisplayshell-callbacks.c
	* app/tools/gimpforegroundselecttool.c
	* app/tools/gimpimagemaptool.c
	* app/tools/gimpiscissorstool.c
	* app/tools/gimppolygonselecttool.c
	* app/tools/gimprectangletool.c
	* app/tools/gimptransformtool.c
	* app/tools/gimpvectortool.c
	* app/widgets/gimpcontainerpopup.c
	* app/widgets/gimppaletteview.c
	* libgimpwidgets/gimpcolorhexentry.c
	* libgimpwidgets/gimpnumberpairentry.c
	* plug-ins/script-fu/script-fu-console.c: Unify the handling of
	various "Enter" and "Space" keysyms all over the place. Fixes bug
	#516544 (also see gtk bug #515047).


svn path=/trunk/; revision=24894
2008-02-16 17:51:02 +00:00
Michael Natterer f4033561ef rename "Script-Fu Console" menu item to simply "Console".
2008-02-04  Michael Natterer  <mitch@gimp.org>

	* plug-ins/script-fu/script-fu.c: rename "Script-Fu Console" menu
	item to simply "Console".


svn path=/trunk/; revision=24791
2008-02-04 17:15:13 +00:00
Sven Neumann 03342ad774 plug-ins/common/bumpmap.c applied patch from Ulf-D. Ehlert that catches a
2008-01-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/bumpmap.c
	* plug-ins/script-fu/scripts/swirltile.scm: applied patch from
	Ulf-D. Ehlert that catches a potential division by zero in the
	Bumpmap plug-in and adjusts the range of the Depth parameter in
	the Swirl-Tile script (bug #509608).

svn path=/trunk/; revision=24616
2008-01-15 12:26:03 +00:00
Kevin Cozens 1f6ccb3c24 plug-ins/script-fu/scripts/3d-outline.scm
2008-01-15  Kevin Cozens  <kcozens@cvs.gnome.org>

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

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

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

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

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

svn path=/trunk/; revision=24568
2008-01-08 06:58:39 +00:00
Sven Neumann 289fa19212 applied another patch from Ulf-D. Ehlert for the parameter range (bug
2007-12-30  Sven Neumann  <sven@gimp.org>

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


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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

svn path=/trunk/; revision=24024
2007-11-01 08:15:38 +00:00
Kevin Cozens 37b875ccdc plug-ins/script-fu/tinyscheme/scheme-private.h Allow a maximum of two
2007-10-25  Kevin Cozens  <kcozens@cvs.gnome.org>

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

svn path=/trunk/; revision=23952
2007-10-25 20:47:27 +00:00
Kevin Cozens 19ba673b2f Allow one to three digits in octal coded characters.
2007-10-22  Kevin Cozens  <kcozens@cvs.gnome.org>

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

svn path=/trunk/; revision=23800
2007-10-11 11:26:11 +00:00
Sven Neumann e5b6b9dd13 applied patch from Ulf-D. Ehlert with usability improvements (bug
2007-10-05  Sven Neumann  <sven@gimp.org>

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


svn path=/trunk/; revision=23736
2007-10-05 18:49:34 +00:00
Sven Neumann 3b4f775d74 applied patch from Ulf-D. Ehlert that fixes resizing in the Perspective
2007-10-03  Sven Neumann  <sven@gimp.org>

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


svn path=/trunk/; revision=23718
2007-10-02 22:03:40 +00:00
Kevin Cozens f3d514c845 Use 'list' to create argument list for SF-ADJUSTMENT since it uses a named
2007-10-02  Kevin Cozens  <kcozens@cvs.gnome.org>

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

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

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

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

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


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

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

svn path=/trunk/; revision=23700
2007-10-01 08:42:48 +00:00
Sven Neumann 4c0b47c34d allocate the ConsoleInterface struct on the stack.
2007-09-28  Sven Neumann  <sven@gimp.org>

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


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

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

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

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

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

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

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

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

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

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

svn path=/trunk/; revision=23674
2007-09-27 19:54:28 +00:00
Sven Neumann c2020bf56d fixed GimpImageType parameter passed to gimp-layer-new. Do not register
2007-09-27  Sven Neumann  <sven@gimp.org>

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

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

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

svn path=/trunk/; revision=23666
2007-09-27 10:27:46 +00:00
Kevin Cozens 0bd67f281f Applied patch from Ulf-D. Ehlert which pushes and pops a context to
2007-09-25  Kevin Cozens  <kcozens@cvs.gnome.org>

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

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

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

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

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


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

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

svn path=/trunk/; revision=23613
2007-09-21 23:53:03 +00:00
Kevin Cozens df8ba63817 Removed 'from-selection'. Reset active layer after calling
2007-09-13  Kevin Cozens  <kcozens@cvs.gnome.org>

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

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

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


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

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


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

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

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

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

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


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

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

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


svn path=/trunk/; revision=23432
2007-08-31 19:35:26 +00:00