Re: Deriving from interface implementation

2021-08-04 Thread Kjell Ahlstedt via gtkmm-list
Glib::ObjectBase is a virtual base class. The constructor of a virtual base class is called from the most derived class. When ModelImpl is the most derived class, its constructor calls Glib::ObjectBase(typeid(ModelImpl)). When Derived is the most derived class,

Deriving from interface implementation

2021-08-04 Thread Sergey Smirnykh via gtkmm-list
Hello! I've run into the issue I can't resolve on my own. I have a Gio::ListModel implementation and a (C++) class derived from said implementation. Calling G_IS_LIST_MODEL(gobj) on the implementation's gobj returns 1. However, G_IS_LIST_MODEL(gobj) on the derived class's gobj returns 0. How to