From: Kouhei S. <ko...@co...> - 2016-07-23 14:55:03
|
Hi, In <579...@ro...> "[ruby-gnome2-devel-en] How-To Interfaces" on Thu, 21 Jul 2016 18:33:34 +0200, Thomas Martitz <ku...@ro...> wrote: > 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? Ruby-GNOME2 doesn't support implementing interface in Ruby. Because it needs interface specific C code. > 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? I think that you should implement Ruby loader for libpeas instead of implementing libpeas bindings. It means that https://git.gnome.org/browse/libpeas/tree/loaders/ruby is implemented at https://git.gnome.org/browse/libpeas/tree/loaders like https://git.gnome.org/browse/libpeas/tree/loaders/python . Thanks, -- kou |