Skip to content

Wip/jehan/runtime availability check

Jehan requested to merge wip/Jehan/runtime-availability-check into master

As discussed in: 5ac40e3c (comment 978746)

My proposal is to provide a new is_available() class method on GeglOperation. If an operation implements it, it will be run at runtime and the operation will be hidden if is_available() returns FALSE.

The second commit adds an implementation for this method in gegl:introspect, which checks for dot tool availability at runtime. dot is not a mandatory dependency anymore with this change.

Note: I have even already made the change into GIMP to not consider gegl:introspect as mandatory and the debug graph feature is simply made inactive if the operation is not available.

Merge request reports