From: Kouhei S. <ko...@co...> - 2016-07-28 14:41:27
|
Hi, In <60a...@ro...> "Re: [ruby-gnome2-devel-en] How-To Interfaces" on Sun, 24 Jul 2016 12:24:46 +0200, Thomas Martitz <ku...@ro...> wrote: > I have prototyped what I mentioned above, see > http://pastebin.geany.org/A26m9/. The printfs eventually print "closure > for TestPlugin::activate called" for a my test ruby class which includes > the Peas::Activatable module. Thanks. We can't use this approach because glib2 gem doesn't depend on GObject Introspection. It's OK that we add a singleton method to GObjectIntrospection::Loader for the feature. > I believe the _dynamic functions are meant to be used with GTypePlugins. > I don't think rbg uses this mechanism > (GLib::Object.type_register/rbgobj_register_type uses > g_type_register_static). pygobject doesn't do either and also uses > _static variants. > > You can use the static variants if you don't plan to recycle GType > values IIUC. Sorry. Maybe you're right. Thanks, -- kou |