2 require 'ext/extensions'
4 warn "ERROR: could not load extension library, some features may be missing"
8 $ext = $qApp.findChild(Qt::Object, "kaya extensions") if $qApp
10 # install fake implementations of the extension functions
11 warn "Creating fake extension library"
14 def exp_blur(img, radius)
19 $ext.metaclass_eval do
20 define_method(:fake) { fake }
23 # conveniently install extension functions in the appropriate places
27 $ext.exp_blur(self, radius)