Commit graph

870 commits

Author SHA1 Message Date
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
Simon Budig a333d6c660 plug-ins/script-fu/scheme-wrapper.c
2007-08-30  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/scheme-wrapper.c
	* plug-ins/script-fu/tinyscheme/scheme.[ch]
	* plug-ins/script-fu/scheme-wrapper.h: Shuffeled some
	code around to have scheme.c not include scheme-wrapper.h.


svn path=/trunk/; revision=23411
2007-08-30 12:52:42 +00:00
Kevin Cozens 667d6eac9b Applied the change suggested in SourceForge bug #1593861 that fixes the
2007-08-29  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Applied the change suggested
	in SourceForge bug #1593861 that fixes the case where integer? thinks
	non-numbers are sometimes integers.

svn path=/trunk/; revision=23402
2007-08-30 00:33:50 +00:00
Simon Budig 0928a32a21 plug-ins/script-fu/tinyscheme/scheme.[ch] small changes to tinyscheme -
2007-08-30  Simon Budig  <simon@gimp.org>

	* plug-ins/script-fu/tinyscheme/scheme.[ch]
	* plug-ins/script-fu/tinyscheme/scheme-private.h: small changes
	to tinyscheme - mostly removing workarounds for message output.

	* plug-ins/script-fu/scheme-wrapper.[ch]: try to channel the
	output through a central function, have various output functions
	to handle the messages. Remove some hacks.

	* plug-ins/script-fu/script-fu-text-console.c
	* plug-ins/script-fu/script-fu-scripts.[ch]
	* plug-ins/script-fu/script-fu-interface.c
	* plug-ins/script-fu/script-fu.c
	* plug-ins/script-fu/script-fu-server.c
	* plug-ins/script-fu/script-fu-console.[ch]: use the new
	infrastructure. Remove more hacks.

	* plug-ins/script-fu/servertest.py: small script to test the
	communication with the script-fu-server.


svn path=/trunk/; revision=23400
2007-08-30 00:21:20 +00:00
Sven Neumann e05f208e62 plug-ins/script-fu/scripts/Makefile.am removed fade-outline script. Fixes
2007-08-15  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/Makefile.am
	* plug-ins/script-fu/scripts/fade-outline.scm: removed
	fade-outline script. Fixes bug #466382.


svn path=/trunk/; revision=23262
2007-08-14 22:40:16 +00:00
Kevin Cozens 2dfb1e5193 Use the string length in bytes passed in instead of recalculating it.
2007-08-13  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/scheme-wrapper.c (ts_output_string): Use the
	string length in bytes passed in instead of recalculating it.

	* plug-ins/script-fu/tinyscheme/scheme.c: Added comment.

svn path=/trunk/; revision=23239
2007-08-13 16:39:16 +00:00
Sven Neumann 24a2252a9a removed now unneeded _skey member from union. Part of the revert of bug
2007-08-11  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/tinyscheme/scheme-private.h: removed now
	unneeded _skey member from union. Part of the revert of bug 
#374854.


svn path=/trunk/; revision=23209
2007-08-11 15:29:40 +00:00
Kevin Cozens ef3bce7b6b Commited patch from Sven Neumann that reverts the optimization patch which
2007-08-11  Kevin Cozens  <kcozens@cvs.gnome.org>

	* plug-ins/script-fu/tinyscheme/scheme.c: Commited patch from
	Sven Neumann that reverts the optimization patch which stored
	collation keys. See bug #374854.

svn path=/trunk/; revision=23207
2007-08-11 14:51:04 +00:00
Sven Neumann 60ea36beb6 added more mappings from old to new Script-Fu menu locations.
2007-08-07  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_menu_map):
	added more mappings from old to new Script-Fu menu locations.


svn path=/trunk/; revision=23128
2007-08-06 22:54:03 +00:00
Sven Neumann 589edd0251 added a map from old to new Script-Fu submenus (to be extended).
2007-08-03  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/script-fu-scripts.c (script_fu_menu_map):
	added a map from old to new Script-Fu submenus (to be extended).


svn path=/trunk/; revision=23111
2007-08-03 19:39:41 +00:00
Sven Neumann c487e62e89 moved contactsheet.scm to test_SCRIPTS. We should look at it again after
2007-07-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/script-fu/scripts/Makefile.am: moved contactsheet.scm
	to test_SCRIPTS. We should look at it again after the 2.4 release.


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

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

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

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

svn path=/trunk/; revision=22908
2007-07-10 21:45:28 +00:00
Sven Neumann 1140960d35 hardcode the built-in units. Dynamically constructing the constants using
2007-06-20  Sven Neumann  <sven@gimp.org>

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

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

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

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

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

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

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

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

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


svn path=/trunk/; revision=22715
2007-06-06 08:44:52 +00:00
Sven Neumann 6ebc273959 applied patch from Saul Goode that enables Distress Selection for
2007-06-04  Sven Neumann  <sven@gimp.org>

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

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

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

svn path=/trunk/; revision=22697
2007-06-04 00:43:19 +00:00
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
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
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 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
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
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 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 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 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
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
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 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
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
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 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
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
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