Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Too much gimp-version is bad for SCM script-fu in gimp 3.0 rc3
#1
[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/...es/tag/3.0
Reply


Forum Jump: