Closed slackernetuk closed 9 months ago
GIMP now supports selecting multiple layers so the API was deprecated as described in https://github.com/c-koi/gmic-qt/pull/114#issuecomment-870443397 and https://github.com/c-koi/gmic-qt/pull/104#issuecomment-869909853 and GIMP 2.99.12 removed the deprecated functions altogether.
The plug-in will need to be updated to use gimp_image_list_selected_layers()
instead of gimp_image_get_active_layer()
.
Looking forward to fixing this bug.
Coming late to this party - may I humbly suggest that information about this API deprecation issue that affects the gmic_gimp_qt plugin be put on the primary GMIC QT plugin download page? Please. I just spent TWO DAYS trying to figure out why the plugin worked in GIMP 2.99.8 but did not work in 2.99.12 before I found this issue here that clearly and unambiguously says why it does not work. Yes, I know 2.99.12 is not a stable release, but 3.00 will be and this issue will remain in all future non 2.10.x versions of GIMP until the QT plugin is updated to use the new API (however far into the future that update may be).
@gstalnaker : GIMP 2.99.x is known to be a development version, so it is expected that features can be broken or changing at a fast pace (that is indeed the case for the plug-in API of future GIMP 3.0). So to say, we do not suggest using the development version of GIMP if you require sth stable over time, particularly if you use third-party plug-ins (I doubt that many existing 3rd-party plug-ins continue to work with current dev version of GIMP).
When GIMP 3.0 will be out, as a stable version, we'll probably try to make the G'MIC code compatible with the GIMP 3.0 plug-in API, but until then, we won't try to follow the API changes in GIMP 2.99, as things could break and break again until the stable release. If someone wants to do this job for G'MIC, and has the time to so do, then of course he's welcome.
Quick and dirty patch to get this compiling, tested with the latest GIMP git pull (2.99.15 as of this morning). Set the GIMP check to 2.99.12 as i saw some issues on gmic_qt or gmic forget which that listed that there for the first version with that issue though i might be misremembering.
Here's the gist i made for it.
https://gist.github.com/draekko/8f5782a3cff5989d6464ae5415792a95
The commit above fixes this.
OS: Slackware -current gmic-qt: master