Re: Implementing GInterfaces purely from C++?



Philip Langdale wrote:
> 
> Is there a way I can make this work without doing my implementation in C
> and then wrapping it - that would be pretty crummy as my underlying data
> store is a C++ object.

Predictably, I found it right after sending the email.

As I understand it, it should be:

class Foo : virtual public Glib::ObjectBase,
            public Glib::Object,
            public Gtk::TreeModel
{
   Foo() : Glib::ObjectBase("FooType") {}
};

This yields a custom type with the interface implemented.

--phil


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]