Gimp-Forum.net
Too much gimp-version is bad for SCM script-fu in gimp 3.0 rc3 - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Gimp 2.99 & Gimp 3.0 (https://www.gimp-forum.net/Forum-Gimp-2-99-Gimp-3-0)
+--- Thread: Too much gimp-version is bad for SCM script-fu in gimp 3.0 rc3 (/Thread-Too-much-gimp-version-is-bad-for-SCM-script-fu-in-gimp-3-0-rc3)



Too much gimp-version is bad for SCM script-fu in gimp 3.0 rc3 - vitforlinux - 02-26-2025

[Image: gimp-version.jpg.jpg]

I used to use a string to handle the version change in my SCM script-fu, but things have changed and I have to change the string, anyone who encounters it knows it, now instead of (if instead of 2.10 you find 2.1 it's the same).

Code:
(= (string->number (substring (car(gimp-version)) 0 3)) 2.10)

you have to use

Code:
(not (defined? 'gimp-drawable-filter-new))

gimp-drawable-filter-new exists only in new Gimp 3.0 rc3.

A collection of fixed ScriptFu can be found here:
https://github.com/vitforlinux-gimp/scm/releases/tag/3.0