From: Thomas M. <ku...@ro...> - 2016-07-21 16:33:43
|
Hello, first of all, thanks for your great projekt. Really useful for ruby programms! Now to my problem: I'm trying to implement an interface but I'm always getting the following error: peas-ruby.rb:45:in `append_features': Not a subclass of GLib::Instantiatable (TypeError) from peas-ruby.rb:46:in 'include' from peas-ruby.rb:46:in '<class:TestPlugin>' from peas-ruby.rb:41:in '<main>' The code looks like this: class TestPlugin < GLib::Object # GLib::Instantiatable doesn't work too include Peas::Activtabable # Peas::Activatable.class => Module def activate() end […] end Doing a TestPlugin.ancestors reveals that GLib::Instantiatable is actually in the class hierarchy. Am I doing interface implementation wrong here? Is it even supported by ruby-gnome2? Btw, I'm using GObjectIntrospection::Loader to load libpeas bindings through Peas-1.0.typelib. This part seems to work okay, but maybe I'm missing something here? Are there other interfaces that are known to work fine? Best regards. |