From: Thomas M. <ku...@ro...> - 2016-07-22 08:33:34
|
Am 22.07.2016 um 10:28 schrieb Mario Steele: > Here's a silly question, > Hello, not silly at all! > Have you tried to implement the methods Peas::Activatable requires? > EG: activate, deactivate, update_state, even if the methods aren't > actually doing anything? > > EG: > > class Foo < GLib::Object > type_register > > include Peas::Activatable > > def activate > puts "Activate is here!" > end > > def deactivate > puts "Deactivate is here!" > end > > def update_state > puts "Update State is here!" > end > end > > $foo = Foo.new > > Then try on your C side: assert(PEAS_IS_ACTIVATABLE(foo_gobj)) Yes, I have tried this, without success. At this point I'm wondering if implementing GObject interfaces is supported at all? Surprising if not, since interfaces are a fundamental aspect of the GObject system (and OOP in general). Best regards. |