1 # Copyright (c) 2009 Paolo Capriotti <p.capriotti@gmail.com>
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
9 require 'ext/extensions'
11 warn "ERROR: could not load extension library, some features may be missing"
15 $ext = $qApp.findChild(Qt::Object, "kaya extensions") if $qApp
17 # install fake implementations of the extension functions
18 warn "Creating fake extension library"
21 def exp_blur(img, radius)
26 $ext.metaclass_eval do
27 define_method(:fake) { fake }
30 # conveniently install extension functions in the appropriate places
34 $ext.exp_blur(self, radius)