From: cedlemo <ce...@gm...> - 2016-07-21 18:49:18
|
Hi Thomas, I don't really understand what you are calling an interface. Are you building a Peas ruby module based on the GObjectInstrospection::Loader? I don't understand why you try to create a subclass of GLib::Object directly. If you could explain me this, I should be more helpful. cedlemo On 21/07/2016 18:33, Thomas Martitz wrote: > 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. > > ------------------------------------------------------------------------------ > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports.http://sdm.link/zohodev2dev > _______________________________________________ > ruby-gnome2-devel-en mailing list > rub...@li... > https://lists.sourceforge.net/lists/listinfo/ruby-gnome2-devel-en |