Commit Graph

1382 Commits

Author SHA1 Message Date
Michael Natterer 169f98f915 libgimpwidgets: add GDestroyNotify to gimp_int_combo_box_connect() 2019-08-08 00:22:15 +02:00
Michael Natterer c6bcb3114f libgimp: add GDestroyNotify for image and item combo box data 2019-08-07 23:16:25 +02:00
Michael Natterer 05baadcd1d pdb: rename the "procedural_db" PDB group to just "pdb" 2019-08-06 12:51:56 +02:00
Sabri Ünal e93a20e7ac Issue #3112 - Missing mnemonics.
(cherry picked from commit 30e4a7ee5e)
2019-08-05 22:44:36 +02:00
Michael Natterer fad59611bc libgimp: port gimpprogress to the new plug-in API, untested
It's tested to still work when using the old API though.
2019-08-04 17:51:59 +02:00
Michael Natterer 3d049f565a Issue #360 - scripts that require brushes that GIMP no longer installs
carve-it.scm, chrome-it.scm: apply slightly modified patch from Carol
Spears which replaces hardcoding round brush names by creating a brush
on the fly and setting its radius.

Also fixed both scripts to not use deprecated color API which is
even completely gone from master.
2019-07-14 13:59:11 +02:00
Sabri Ünal cf892ba2f0 Issue #3220 - "How to Use Dialogs" does not open any page.
(cherry picked from commit 45784e9f50)
2019-04-24 23:32:57 +02:00
Jehan ed3bcf248e plug-ins: remove old spyrogimp.
Spyrogimp has been rewritten in Python with more features.

Note: this commit should not be backported to gimp-2-10 since we will
keep the old plug-in around (in case its API is used by older scripts in
particular). But let's turn over a new leaf with future GIMP 3 and only
keep the new plug-in.
2019-03-18 15:53:04 +01:00
Ell 8954d1f386 libgimpwidgets, app, plug-ins: use GimpSpinButton everywhere
Replace all direct uses of GtkSpinButton with GimpSpinButton, so
that its modified behavior extends to all our spin buttons.
2019-03-09 07:28:52 -05:00
Jehan e91028df2f plug-ins: clean the new Spyrogimp, rename it and remove old version...
... from menus.
The script-fu version is still available through pdb (for scripts) and
even in the action search. But in menus, only the new Python version
will be shown. Also update the description and name of the old version
to make clear it is deprecated in favor of the new plug-in.
Finally rename the new version to simply "plug-in-spyrogimp" (dropping
the "-plus" part as we should consider it as a replacement rather than
as another plug-in, which the "plus" would imply). Anyway the old one
was called "script-fu-spyrogimp", so there is no name clash.

While at it, do some trailing whitespace cleaning in the new plug-in.

(cherry picked from commit 8729f9a662)
2019-01-24 01:15:41 +01:00
Alexandre Prokoudine 85e6700aac Help menu: various updates
Commented out the inactive plug-ins registry: no point linking to a dead page.

Added links to the roadmap page, main wiki page, and the bug tracker. Placed
the link to the bug tracker one level up from '<Image>/Help/GIMP Online'
to make it more visible.
2018-11-14 09:17:21 +00:00
luz.paz ac282f2045 Misc. typos
Found via `codespell`
2018-10-19 15:30:27 +00:00
Ell 5e6e979a00 Issue #2339 - Error while executing script-fu-ripply-anim
In ripply-anim.scm, correct the edge-type argument passed to
plug-in-displace.
2018-10-09 19:31:23 -04:00
Ell 9a2999a553 plug-ins: in script-fu, don't query PDB procedures' info on startup
script-fu used to query the information of every PDB procedure on
startup, in order to get the number of parameters for each
procedure.  This was done so that nullary procedures were defined
in such a way as to accept (and ignore) any number of arguments
(and at least one of the scripts we ship relies on this behavior).
However, this requires expensive back-and-forth communication with
the main GIMP process, which notable slowed down script-fu's
startup, and had a non-negligible impact on GIMP's startup time.

Instead, avoid querying procedure information, and implement the
special behavior for nullary procedures at call time.  We do this
by defining, in addition to the "strict" gimp-proc-db-call
procedure, a "permissive" -gimp-proc-db-call internal procedure,
and using the latter to call the predefined PDB procedures.
2018-09-26 14:41:12 -04:00
Michael Natterer 5f700549e7 Change the license URL from http://www.gnu.org/licenses/ to https:// 2018-07-11 23:29:46 +02:00
Michael Natterer 80997a8646 Remove most GTK_ADJUSTMENT() and (GtkAdjutment *) casts
they are obsolete in GTK+ 3.x because GtkAdjustment cannot be passed
around as GtkObject any longer, GtkObject is gone.
2018-06-24 18:15:16 +02:00
Ell 8e6a5298c1 plug-ins: increase input precision in guides-new-percent.scm
Increase the percision of the "position" property of
guides-new-percent.scm to two decimal places.  Currently, it only
accepts integers, which limits its accuracy to 100px.
2018-06-01 10:53:06 -04:00
Jehan 870ca6334d plug-ins: install plug-ins in subfolder.
I am going to forbid plug-ins from being installed directly in the root
of the plug-ins/ directory. They will have to be installed in a
subdirectory named the same as the entry point binary.
This may seem useless for our core plug-ins which are nearly all
self-contained in single binaries, but this is actually a necessary
restriction to eliminate totally the DLL hell issue on Windows. Moving
core plug-ins in subfolders is only a necessary consequence for it.
2018-05-20 21:06:35 +02:00
Simon Budig 7d64cf62c6 libgimpwidgets: rename the _grid()-Variants of gimp_scale_entry_*
Adjust all plugins to follow accordingly.

This concludes the GtkTable'ocide.
2018-05-20 21:06:35 +02:00
Michael Natterer 27ac4363b0 plug-ins: if GIMP_UNSTABLE, install test script-fu and pygimp scripts 2018-05-20 21:06:34 +02:00
Michael Natterer 046fcac2dd plug-ins: undeprecate script-fu-interface.c 2018-05-20 21:06:34 +02:00
Michael Natterer bdbec7941c Use the new macros from the last commit in all files
...and gone are the annoying warnings.
2018-05-20 21:06:34 +02:00
Simon Budig fb5d463d78 script-fu: kill GtkTable 2018-05-20 21:06:33 +02:00
Michael Natterer 1b3135ca95 Get rid of using GtkMisc API globally 2018-05-20 21:06:30 +02:00
Thomas Manni 806d260601 script-fu: in weave, improve context and undo management
Use a gimp-context-push/pop at the beginning/end of the script
to keep the current context unchanged.

Add undo support for the whole procedure.
2018-05-16 21:44:30 +02:00
Thomas Manni d01bf70f86 script-fu: in slide, use an undo group when working on the initial image 2018-05-15 17:58:11 +02:00
Thomas Manni 316adffaae script-fu: in fuzzy-border, add undo support for the whole procedure 2018-05-15 17:36:27 +02:00
Thomas Manni 9c547e7d71 Bug 795958 - Effect (like "old photo") does not group undo information properly
When working on the current image, enclose the script actions in an undo group.

When working with a copy of the image, disable the undo stack of the new image
at the beginning of the script and reenable it at the end.
2018-05-15 11:40:08 +02:00
luz.paz 69b2e84924 Source and trivial typos
Found via `codespell` and `grep`
2018-05-12 23:44:47 +02:00
Michael Natterer 62279047b1 Bug 795763 - Update gimp.org links to https://
Update links to https:// in "About". the "Help" menu, and several
user-visible error messages.
2018-05-03 00:27:29 +02:00
Alexandre Prokoudine 1811d8ebf9 script-fu: fix a typo in the Add Border script 2018-04-30 18:10:08 +03:00
Michael Natterer f35c2cdcec script-fu: port chrome-it.scm to non-deprecated color API 2018-04-26 15:45:04 +02:00
luz.paz 4a77ff2d3d Bug 795557 - Misc. typo fixes in source, comments and doxygen (pt3)
Found via `codespell` and grep.
2018-04-25 23:49:06 +02:00
Michael Natterer b80036e14f pdb: deprecated gimp-layer-translate
and port all plug-ins/scripts to gimp-item-transform-translate.
2018-04-23 15:49:23 +02:00
luz.paz 147c09f19e Bug 795161 - Misc. typo fixes in source comments and doxygen
Found via `codespell`
Follow-up to  commit 7fdb963e01
2018-04-18 21:06:57 +02:00
Michael Natterer 233ac80de1 script-fu: port all scripts to the new gimp-drawable-edit functions 2018-04-16 20:12:12 +02:00
Ell 6ebc3f1b09 Makefiles: don't use -xobjective-c when linking files on Mac
Last commit caused -xobjective-c to be passed during linking on
Mac, causing object files to be treated as source files.  Add a
-xnone flag to AM_LDFLAGS, canceling the effect of -xobjective-c.

Additinally, add a -xobjective-c++ flag to AM_CXXFLAGS, so that we
can use Objective-C in C++ files on Mac, if we ever need to.
2018-04-08 04:03:55 -04:00
Ell 06950be7f0 Makefiles: don't use -xobjective-c when compiling C++ files on Mac
On Mac, pass -xobjective-c to the compiler through AM_CFLAGS, not
AM_CPPFLAGS, so that it's only used for C sources, and not C++
sources.  In the latter case, it clashes with the -std=... flag,
spewing an error.  Thanks, Partha :)
2018-04-07 16:57:52 -04:00
Alexis Wilhelm a51efd09d1 Bug 663576 - make -C plug-ins/script-fu check-for-deprecated-procedures-in-script-fu...
...lists files that do not use deprecated functions

Better regex that matches the right stuff.
2018-01-01 14:25:03 +01:00
Alexandre Prokoudine 9724d7989d Mark legacy plug-ins/scripts as such in menu 2017-12-27 02:40:27 +03:00
Massimo Valentini 696b55b4f0 Bug 783382: Lava filter looks different than in 2.8
s/LAYER-MODE-NORMAL/LAYER-MODE-NORMAL-LEGACY/ almost makes it
look like before.
2017-12-12 12:32:29 +01:00
Michael Natterer e6c1c14a94 pdb, libgimp: change the gimp-drawable-invert API again
Remove the invert-linear and invert-non-linear variants and simply add
"gboolean linear" to gimp-drawable-invert. This should actually be an
enum but I didn't find a good name right now...
2017-09-03 21:28:47 +02:00
Michael Natterer 2e6c39ed9c pdb, libgimp: rename gimp_drawable_invert() to _invert_non_linear()
and add gimp_drawable_invert_linear(). Also, finally deprecate
gimp_invert() and port all its uses in plug-ins and scripts to
gimp_drawable_invert_non_linear() so the result is the same.
2017-08-30 12:27:17 +02:00
Massimo Valentini f2306abc0a Bug 761170: Warnings building with clang
Fix some of the warnings.
2017-07-15 21:05:56 +02:00
Simen Heggestøyl 8412192f85 Bug 783386 - Circuit filter broken
Fix an error in the circuit filter introduced in
1ce7fc6c77.

It's gimp-drawable-desaturate not gimp-desaturate-drawable.
2017-06-04 00:09:41 +02:00
Michael Natterer 6918b4b773 plug-ins: set the GimpColorConfig on all script-fu color buttons 2017-05-28 16:43:00 +02:00
Michael Natterer dda54c1df8 Deprecate stock items for good and change all icon defines to GIMP_ICON_*
Try to sort all GIMP_ICON_* defines into FDO categories like in
https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html

Add defines for all icons we override, rename some icons to their FDO
standard names, and mark the ones we duplicate with a comment so we
don't forget to rename those to standard names in 3.0.
2017-03-05 16:01:59 +01:00
Michael Natterer 5e666113b1 plug-ins: replace deprecated enum values in script-fu scripts 2017-02-26 21:30:11 +01:00
Michael Natterer 801bd8fb3f plug-ins: get rid of icons in dialog buttons (use labels not stock IDs) 2017-02-12 16:18:54 +01:00
Michael Natterer 67275dd1ff script-fu: replace deprecated constants by their new names 2017-01-09 20:38:19 +01:00
Michael Natterer 0a0acc9f2a plug-ins: remove the hardcoded compat enums from script-fu and pygimp
Instead, simply look them up via the type system, and register their
values like they were normal enums.
2017-01-09 16:00:10 +01:00
Michael Natterer 178794f6f1 libgimpbase: rename enum GimpHueRange's values
and add compat cruft for the old names.
2017-01-09 02:45:16 +01:00
Michael Natterer 152adbb1bd Rename GIMP_LAYER_MODE_FOO_BROKEN to GIMP_LAYER_MODE_FOO_LEGACY
"Broken" sounds like it needs fixing, but it's legacy compat stuff
that will have to stay for all eternity.
2017-01-09 01:27:20 +01:00
Michael Natterer 66060e3307 app, libgimp*, plug-ins: replace enum GimpLayerModeEffects by GimpLayerMode
with proper value names. Mark most values as _BROKEN because they use
weird alpha compositing that has to die. Move GimpLayerModeEffects to
libgimpbase, deprecate it, and set it as compat enum for GimpLayerMode.
Add the GimpLayerModeEffects values as compat constants to script-fu
and pygimp.
2017-01-08 23:00:19 +01:00
Jehan 3bab69310e plug-ins: variable alignement.
Extreme nitpicking on commit 6e608f6, I'm sorry!
I just couldn't let go this very slightly misaligned variable.
2017-01-01 19:16:32 +01:00
Cameron Gregory 6e608f6aae Bug 626494 - Enhancement to script-fu-server logging to output milliseconds taken 2016-12-24 23:42:48 +01:00
Michael Natterer 754b9a849c script-fu: port two scripts to gimp-edit-paste-as-new-image 2016-09-20 20:23:04 +02:00
Michael Natterer 4df9a1d568 Get rid of gtk_misc_set_alignment(label) and use gtk_label_set_x,yalign() 2016-09-08 19:11:20 +02:00
Richard Kreckel dd9b0fc55b Bug 768044 - Fix many typos
This fixes many typos in comments and one in a user-visible string (msgid
"center abscisse" changed to "center abscissa" in affected po files. too).
2016-06-26 00:35:24 +02:00
Kevin Cozens 3ef6033276 Make various limits configurable (from TinyScheme SVN r109) 2016-06-02 15:32:04 -04:00
Kevin Cozens 7297ace6bf Added "tinyscheme" to the features list. From SVN version 106 of offical version of TinyScheme. 2016-06-02 15:32:03 -04:00
Kevin Cozens 4b55c551f3 Removed redundant 'break;' statement. Based on SVN version 105 of offical version of TinyScheme. 2016-06-02 15:32:00 -04:00
Jehan 8a37c928eb app, plug-ins, libgimp*: clean out all remaining trailing spaces/tabs.
Rather than just discovering them by chance, a simple grep and some
search and replace are much more efficient! :-)
Cleaning only done on C and automake files.
2016-06-02 02:04:26 +02:00
Jehan 4d23939c3d plug-ins: make "filename" accessible to the loop of "with-files" macro.
The filename of the current bash file being processed is a pretty useful
data to access in a script.
2016-05-30 19:37:22 +02:00
Jehan ce2e187b08 plug-ins: script-fu bash processing should not finish with gimp-quit.
This is not the macro business to quit GIMP. The user may still have
processing to do after looping over images.
2016-05-30 19:37:22 +02:00
saul b6611b94ad Simplify command line processing by adding a 'with-files' macro. 2016-05-30 19:37:22 +02:00
Pedro Gimeno 139801f222 Bug 690544 - Script-fu (rand 4294967295) hangs on machines with 64-bit longs 2016-05-29 19:42:26 +02:00
Pedro Gimeno f665e4cfa9 Bug 738951 - (modulo n m) may fail for m >= 46342 (in 32-bit) or m >= 3037000501 (in 64-bit) 2016-05-29 13:48:44 +02:00
Simon Budig bdae0de1aa script-fu: make regex matching return character indexes
Since tinyscheme uses utf-8 for strings match the behaviour for the
script-fu regex utilities as well. Fixes bug #764811
2016-05-25 20:18:34 +02:00
Thomas Manni a8a214ffcb Bug 724731 - Difference clouds - memory leak if UNDO performed
Create the clouds layer after calling gimp-image-undo-group-start
2016-03-02 19:27:17 +01:00
Massimo Valentini f44c77b4a2 Bug 761330: Gimp Drop Shadow window always opens...
...behind main window on windows

Windows requires that the process with the
foreground window explicitely allows long
lasting background processes showing their
windows as foreground/focused
2016-02-10 17:14:00 +01:00
Michael Natterer 68a9835d56 Bug 756822 - Colors/Desaturate/Luminosity should operate on linear RGB
Add GIMP_DESATURATE_LUMINANCE to enum GimpDesaturateMode and rename
GIMP_DESATURATE_LUMINOSITY to GIMP_DESATURATE_LUMA.

Keep GIMP_DESATURATE_LUMINOSITY as deprecated compat value and add it
to the script-fo and pygimp compat constants.

Change GimpOperationDesaturate to process GIMP_DESATURATE_LUMINANCE
with linear "RGBA float".
2015-10-22 19:50:56 +02:00
Michael Natterer cd3843482f Bug 754227 - scripts path doesnt search in subfolders
script_fu_load_directory(): load scripts recursively.
2015-08-30 23:35:21 +02:00
Saul Goode 06bc22b197 Bug 746467 - 'convert-decimal-to-base' produces erroneous results 2015-08-16 00:08:41 +02:00
Adrian Likins 1ce7fc6c77 Bug 747407 - Update use of gimp-desaturate PDB.
gimp-desaturate and gimp-brightness-contrast usage
replaced with gimp-drawable-* based calls.

gimp-drawable-desaturate calls updated to use
desaturate mode (DESATURATE-LIGHTNESS) where it
was not specified.

gimp-drawble-brightness-contrast values scaled from
previous -127/+127 range to current -0.5/0.5 range.
2015-06-03 22:31:20 -04:00
Simon Budig b6946af0e1 Bug 738952 - Invalid syntax for (cond) causes a segfault
Segfault in script-fu, spotted by Pedro Gimeno.
2015-05-04 20:04:13 +02:00
Saul Goode cc042b35d2 Bug 748270 - ripply-anim.scm does not handle transparent backgrounds
Replace the script by a modernized re-write, which also handles layers
with alpha.
2015-04-26 22:22:00 -04:00
Saul Goode d03b33f1d9 Bug 739457 - Some errors not detected for GIMP_PDB_COLOR arguments
Check that all 3 array elements are numbers-
2014-11-30 18:32:15 +01:00
Michael Natterer 300b756e85 Bug 739775 - Select->Distort activates topmost layer
Remeber the active layer in distress-selection.scm and set it again
when the script is done.
2014-11-23 20:53:13 +01:00
Téo Mazars 4de78f51b3 Bug 681140 - Filter Render/Line Nova: renders in black instead...
Store the foreground color before setting the default context.
2014-11-22 08:48:25 +01:00
Mikael Magnusson 68a4c4f85c scheme: add missing breaks 2014-10-29 21:09:13 +01:00
Massimo Valentini 51d3498cd4 Bug 732072: Image windows created by script-fu plug-ins...
are opened behind the previously focused Image Window

libgimp/gimpui.c bypasses gtk in setting the transient_for
property and so it is not possible to call
gtk_set_transient_for (dialog, NULL), but it is necessary
to go directly to the gdk level.
2014-08-21 12:43:51 +02:00
Kevin Cozens 5bacf11360 Don't need to use snprintf() in atom2str to return some fixed strings.
From SVN version 102 of offical version of TinyScheme.
2014-08-17 21:02:30 -04:00
Kevin Cozens ac45213ccd Prevent possible crash when loading file with scheme_load_file.
From SVN version 101 of offical version of TinyScheme.
2014-08-17 21:02:30 -04:00
Simon Budig 99abc566d4 fix some precedence errors
Spotted by Andrey Karpov using static code analysis:
   http://www.viva64.com/en/b/0273/
2014-08-16 00:37:13 +02:00
Simon Budig 9a245989c0 fix bogus checks against unsigned variables.
Spotted by Andrey Karpov using static code analysis:
   http://www.viva64.com/en/b/0273/
2014-08-16 00:37:13 +02:00
Michael Natterer 48e6199a4f script-fu: port script loading to GFileEnumerator 2014-08-03 21:49:20 +02:00
Michael Natterer 5a893392ee script-fu: remove unused "input_id" from struct ConsoleInterface 2014-07-03 14:48:11 +02:00
Michael Natterer 08ffad9086 plug-ins: some gimp_spin_button_new() -> gtk_spin_button_new() 2014-06-22 00:26:59 +02:00
Michael Natterer 425748dab0 libgimpbase, *: rename GimpFillType values: GIMP_FOO_FILL -> GIMP_FILL_FOO
Change all users accordingly and add compat enum values and compat
constants to script-fu and pygimp.
2014-06-03 01:11:32 +02:00
Michael Natterer b39f0757db script-fu: don't add "Erase Every Other Row" to the menus
because it's not only useless but also utterly slow.
2014-05-30 23:26:09 +02:00
Michael Natterer 6aaa645e04 libgimp, script-fu: remove GIMP 1.2 (sic) compat defines
which we wanted to remove in the "next development cycle" after 2.0,
which would have been in 2.1.x.
2014-05-19 03:08:18 +02:00
Michael Natterer 386fb4080b script-fu: fix FOO-BUCKET-FILL compat enum value constants 2014-05-19 01:31:07 +02:00
Michael Natterer 4712701415 app, plug-ins: move everything from Render->Clouds to the new Render->Noise
because that's what they are and what most menu labels in there says.
Keep the "Clouds" menu around for 3rd party plug-ins, not sure if it's
right to auto-map it to "Noise" automatically.
2014-05-18 22:46:05 +02:00
Michael Natterer 4bd5c185cc plug-ins: gtk_image_new_from_stock() -> from_icon_name() 2014-05-12 00:20:48 +02:00
Michael Natterer a4223766f2 all,libgimp*: move GimpConvolveType and GimpInkBlobType to libgimpbase
and make GimpConvolveType's values sane.
2014-04-29 22:44:58 +02:00
Michael Natterer 22c222291d libgimpbase,*: clean up enum values in gimpbaseenums.h
GIMP_ADD_foo_MASK -> GIMP_ADD_MASK_foo
GIMP_foo_MODE -> GIMP_BLEND_foo
GIMP_foo_CLONE -> GIMP_CLONE_foo
GIMP_foo -> GIMP_DODGE_BURN_TYPE_foo
GIMP_foo -> GIMP_TRANSFER_foo

Add compat values for the old names and compat code to script-fu
and pygimp.
2014-04-29 20:58:30 +02:00
Christian Lehmann 3b72ad8939 Bug 708098 - Further mitigation for CVE-2012-4245 (script-fu-server)
Reorder server_start()'s arguments so they match the PDB signature.
2014-04-23 21:30:17 +02:00
Christian Lehmann 83741044fc Bug 708098 - Further mitigation for CVE-2012-4245 (script-fu-server)
Add an "ip" parameter as *first* argument to the
plug-in-script-fu-server procedure. This is an incompatible change
with the intent to make any old-style calls to the procedure
fail. Also reorder the GUI to have the IP in the first line.
2014-04-23 11:04:09 +02:00
Christian Lehmann 3705f54300 Bug 708098 - Further mitigation for CVE-2012-4245 (script-fu-server)
Added a warning message informing about the danger of running a
script-fu server on any PI but 127.0.0.1.
2014-04-23 11:04:09 +02:00
Christian Lehmann f98592afa3 Bug 708098 - Further mitigation for CVE-2012-4245 (script-fu-server)
added listen-to-ip field to the script-fu start server dialog
2014-04-23 11:04:09 +02:00
Kevin Cozens 1fa797e731 Removed extraneous 'x' when writing character constants. Fixes bug #721775. 2014-02-03 17:38:06 -05:00
saul 598673bc83 Bug 721058 - Shadow layer for Drop Shadow filter in wrong stack position
Fix layer stack positioning for Drop Shadow.
2014-01-01 15:01:16 +01:00
SimaMoto,RyōTa bebccb4a28 Bug 720598 - Mistaken description for 'New Guides from Selection
Use original desc. for 'New Guides from Selection', it was
accidentially changed in commit 6239dddda3.
2013-12-18 00:33:57 +01:00
Kevin Cozens a7e24a64b7 Fixed an error in the close-port function. Closes bug #719396. 2013-12-02 19:46:18 -05:00
Clayton Walker 264d09b417 Rename colour and greyscale to color and grayscale respectively 2013-06-06 23:26:16 +02:00
Michael Natterer ec786816bb */Makefile.am: merge INCLUDES into AM_CPPFLAGS
automake-1.13 finally warns about this anachronism.
2013-06-05 20:48:37 +02:00
Kevin Cozens 0703a5889c Applied changes from SVN version 98 of official version of TinyScheme
Updated the CHANGES file and bumped the version number for the 1.41 release.
2013-04-14 15:48:09 -04:00
Kevin Cozens c828ac3de2 Applied changes from SVN version 97 of official version of TinyScheme
Updated "hack.txt" with modified version of information from CMarinier.
2013-04-14 15:48:09 -04:00
Kevin Cozens 3a6ae1fe73 Applied changes from SVN version 96 of official version of TinyScheme
Eliminated some compiler warnings when compiled with pedantic.
2013-04-14 15:48:09 -04:00
Kevin Cozens c953368164 Only TinyScheme should translate strings in script files. Fixes bug #696790. 2013-04-07 12:58:21 -04:00
Kevin Cozens 1e85ae981a Applied changes from SVN version 95 of official version of TinyScheme
Added missing "const" in scheme_registerable structure.
2013-04-07 12:58:21 -04:00
Ville Skyttä 6b0d1038cc Bug 692641 - Various spelling fixes 2013-01-27 18:59:02 +01:00
Kevin Cozens df30fd6e68 R5RS compatability fix for string->number and number->string (SF bug #3399335)
Optional radix parameter from SVN version 92 of official version of TinyScheme.
2012-12-14 17:43:10 -05:00
Kevin Cozens 82f2c0b1ce R5RS compatability fix for parser (SourceForge bug #2866196) 2012-12-14 17:43:09 -05:00
Ionutz Borcoman 24ff958580 Bug 583778 - change script-fu-server to return the output of executed...
Return the output of the command for the client to parse instead of
always a useless "Success".
2012-12-14 19:06:49 +01:00
Michael Natterer c77fc779db libgimp, plug-ins: use g_strfreev() to free PDB string arrays 2012-11-27 21:16:26 +01:00
Michael Natterer 83de53ee4d Bug 677776 - filter popup windows get hidden behind main image window
Apply modified patch from Simone Karin Lehmann which makes sure
script-fu gets properly hidden after the dialog is done.
2012-11-13 00:47:34 +01:00
Michael Natterer 8e5beb6d83 Bug 575830 - script-fu-refresh crashes Script-Fu when called from a script
Did the most stupid fix of simply not calling the procedure if it is
"script-fu-refresh-scripts". This is really not a use case that
warrants complicating lots of code.
2012-10-07 17:04:54 +02:00
Michael Natterer fe5366c455 Bug 565268 - unlocalizable string in script-fu-carve-it
Simplify blurb and mark it for translation.
2012-10-07 16:40:40 +02:00
Michael Natterer a2c8759fbf Bug 684923 - Fix script-fu build on OpenBSD/NetBSD
Apply patch from Brad Smith which defines AI_ADDRCONFIG
if it doesn't exist.
2012-10-02 22:11:27 +02:00
Michael Natterer 2a30a2bb74 Bug 684698 - Preferences-Folders: only 15 folder items accepted
Raise "max_paths" from 16 to 256 in all calls to gimp_path_parse().
2012-09-26 23:29:51 +02:00
Alexandre Prokoudine 6f3cbcbbd9 Adjusted default values in the Drop Shadow script to help people produce less ugly artwork 2012-08-25 20:14:02 +04:00
Øyvind Kolås 96ab6aa88e scripts: remove the entries registered in the create menu 2012-05-06 21:16:40 +02:00
Øyvind Kolås d1ced11415 plug-ins: add GEGL_CFLAGS to many Makefile.am's 2012-05-02 17:46:08 +02:00
Kevin Cozens b06bc63630 Corrected TinyScheme version number shown in Script-Fu console. 2011-12-09 14:11:44 -05:00
Michael Natterer 2d260e8de1 script-fu: opacity in SF-BRUSH is 0..100 since at least GIMP 2.2 2011-11-24 22:15:54 +01:00
Kevin Cozens 72c89397e4 Removed #include that is now included by another include statement 2011-11-24 15:12:04 -05:00
Michael Natterer 262cc1c946 Bug 664316 - Searchpath separator required
Add constant SEARCHPATH-SEPARATOR (= G_SEARCHPATH_SEPARATOR_S).
2011-11-18 09:40:15 +01:00
Kevin Cozens 4911777c03 slide.scm: Don't use deprecated procedures (Fixes bug #647834)
Spotted by, and patch from, Alexis Wilhelm with white space changes and
a missing context-set added.
2011-11-09 21:07:13 -05:00
Kevin Cozens e5f6a6d9ea distress-select.scm: Limit threshold to 1-254 to avoid loss of selection
Fixes bug #595828.
2011-11-09 15:48:47 -05:00
Kevin Cozens 27bef34bd5 Don't change global context and protect scripts from global context settings. 2011-11-09 02:42:34 -05:00
Alexis Wilhelm 05d4e78830 Removed use of deprecated functions in two Script-Fu scripts (bug #647834) 2011-11-07 12:37:16 -05:00
Kevin Cozens 176773dcfe Second stage in removing use of deprecated functions in Script-Fu scripts
Applied most of the mega patch from br0cc0li (see bug #647834) with
additional de-tabbing and changes in whitespace.
2011-11-07 12:37:16 -05:00
Kevin Cozens 0bd1c2f09f Fix previous script-fu deprecation commit due to overzealous update script. 2011-11-07 12:37:15 -05:00
Kevin Cozens 5e015aebba First stage in removing use of deprecated functions in Script-Fu scripts
This commit replaces the names of deprecated procedures with the name of
the new procedure where the new procedure takes the same argument list.
2011-11-02 03:05:07 -04:00
Mukund Sivaraman 7048d9e46e tinyscheme: Remove dead assignment 2011-10-06 09:04:43 +05:30
Michael Natterer dcb4c6e34a plug-ins: use gtk_box_new() 2011-09-30 12:18:24 +02:00
Nils Philippsen a324206a3e script-fu: link libtinyscheme with libm if necessary
The tinyscheme static library uses math functions, ensure that libm is
linked where necessary (#659586, original patch by Vincent Untz,
modified)

cherry-picked from commit 7df2cb45b3 in
the gimp-2-6 branch.
2011-09-30 06:59:25 +05:30
Nils Philippsen b6310f88cf script-fu: explicitly specify library dependencies
cherry-pick commit d1e0f540e5 from the
gimp-2-6 branch.
2011-09-30 06:55:24 +05:30
Kevin Cozens 23978ecec3 Optimized append to make it an O(n) operation (See Sourceforge bug #3400290)
From a patch by Doug Currie. Also some minor whitespace changes.
2011-09-23 19:10:17 -04:00
Kevin Cozens fc811f3708 Applied changes from SVN version 87 of official version of TinyScheme
Can't call round_per_R5RS() in is_integer() as it is not available if USE_MATH
is not defined. It is simpler and faster to compare ivalue() and rvalue() of
an inexact number. No need to round integers in OP_ROUND. Minor optimization
for is_nonneg().
2011-09-23 19:10:17 -04:00
Kevin Cozens 599f6e8390 Fixing formatting of files and removed tabs. 2011-09-23 19:10:16 -04:00
Kevin Cozens b61b8782d0 R5RS compatability fix for expt. (See SourceForge bug #3399332)
Based on the patch from Doug Currie.
2011-09-23 19:10:16 -04:00
Mukund Sivaraman 262241cb21 script-fu: Don't print leading space when printing vectors 2011-08-31 22:26:21 +05:30
Kevin Cozens 01a24fb4f7 R5RS compatability fixes for integer? and round (SourceForge bug #3400284) 2011-08-30 16:53:17 -04:00
Kevin Cozens a8966b8485 R5RS compatability fix for expt (SourceForge bug #3399332) 2011-08-30 12:00:00 -04:00
Kevin Cozens 7ab6704f78 R5RS fix adds decimal point for inexact in atom2str (SourceForge bug #3395548) 2011-08-29 17:27:12 -04:00
Kevin Cozens 6af99d4793 R5RS compatibility fix for min and max (take 2) (SourceForge bug #3399331)
It works better if I also update the script-fu.init file used by Script-Fu.
2011-08-29 17:27:12 -04:00
Kevin Cozens 5d3be5be3c R5RS compatability fix for append by Doug Currie. (SourceForge bug #3400202)
Append with one argument should return the argument but not as a list.
2011-08-29 17:27:12 -04:00
Kevin Cozens 5d61a737a7 R5RS compatibility fix for min and max (SourceForge bug #3399331)
They are required to return inexact when any argument is inexact.
(From a patch by Doug Currie.)  Also de-tabified init.scm file.
2011-08-29 17:27:12 -04:00
Kevin Cozens fe20e7b181 Added closing brace that got lost when applying fix for modulo procedure. 2011-08-29 14:08:57 -04:00
Kevin Cozens 1574700215 R5RS compatibility fix for the modulo procedure (SourceForge bug #3395547) 2011-08-29 13:54:45 -04:00
Kevin Cozens a21bba4cab Added missing #if in opdefines.h around get and put (from SVN TinyScheme r75) 2011-08-29 13:54:17 -04:00
Kevin Cozens c556a8fdab Fixed deprecation warning and script breakage (see bug #646993)
Fixed deprecation warning. Fixed script breakage when "Add shadow" was checked
due to error in order of arguments. Made chris-color-edge a private procedure.
2011-08-29 13:53:29 -04:00
Bruce Cowan 841c8a7ebe String review: fix some spelling and formatting issues 2011-08-28 20:07:55 +02:00
Michael Natterer f660236a4f plug-ins: remove some -Wunused-but-set-variable 2011-05-05 12:49:38 +02:00
Martin Nordholts 28983a5158 app: Add a "check-for-deprecated-procedures-in-script-fu" make target
Add a "check-for-deprecated-procedures-in-script-fu" make target that
looks for usage of deprecated procedures in *.scm files. We currently
use quite a bit of deprecated procedures. When we don't do that
anymore, we should connect this to make check somehow so our nightly
build fails if someone deprecated a procedures without also porting
all clients.

Run it like this from the source root:

  make -C plug-ins/script-fu check-for-deprecated-procedures-in-script-fu
2011-05-05 01:04:23 +02:00
Kevin Cozens f1c20cb165 Fixed modulo function which affected 'random' procedure. (See bug #647541) 2011-04-13 13:39:58 -04:00
Michael Natterer 7e6c026790 Globally use GDK_KEY_foo, remove the compat defines from widgets-enums.h 2011-04-11 23:43:03 +02:00
Michael Natterer 8c4d99f883 Bug 645456 - Inconsistent window (role) naming scheme
Applied patch from Christoph Kappel which adds a "gimp-" prefix to all
plug-in dialog window roles.
2011-04-08 20:31:34 +02:00
Michael Natterer 24ee3370b8 Depend on GTK+ >= 2.24.3, cairo >= 1.20.1, gdk-pixbuf >= 2.22.1
and completely separate configure and sanity checks for gdk-pixbuf
from GTK+, because it's now distributed as a separate package. Remove
all sorts of conditional compiling based on GDK_CHECK_VERSION() and
CAIRO_VERSION.
2011-04-06 19:58:24 +02:00
Kevin Cozens 422248d42a Fixed cut and paste error that put R5RS fix before the setting of a variable. 2011-03-17 21:43:48 -04:00
Kevin Cozens 97bf01569a Minor R5RS compatibility fix for the expt procedure. 2011-03-17 17:47:45 -04:00
Kevin Cozens 5c07d3b52d Added a getenv procedure to the ftx extension of Script-Fu. 2011-03-17 17:47:44 -04:00
Michael Natterer bdf8d3d776 plug-ins: add some GTK_CHECK_VERSION(2,24,0) and use the new GtkComboBoxText 2011-03-17 14:31:39 +01:00
Michael Natterer fcfb7cf160 Use the new g_[s]list_free_full() instead of foreach() and free() 2011-03-07 17:11:28 +01:00
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