Re: Cannot `dynamic_cast` custom wrapped widget from Gtk::Builder
Daniel Boles via gtkmm-list <[email protected]> Fri, 1 May 2020 23:44:40 +0100
| Newsgroups | gmane.comp.gnome.gtkmm |
|---|---|
| Message-ID | <CAKChMKN7dTRr4QxaGYzb2TAzAKsZ_9zpmVGQ7_gH+Zfpv8fY8w@mail.gmail.com> |
On Fri, 1 May 2020, 23:40 Josh Bialkowski, <[email protected]> wrote: > It looks like it does, I'm pretty sure this happens in the > `panzoomarea_class_.init()` call: > ~~~ > PanZoomArea::PanZoomArea() > : // Mark this class as non-derived to allow C++ vfuncs to be skipped. > Glib::ObjectBase(nullptr), > Gtk::DrawingArea(Glib::ConstructParams(panzoomarea_class_.init())) {} > iirc for Builder to work with derived widgets, ObjectBase() needs called with a type name or id. but not sure it explains dynamic_cast failing, so i'll defer to someone more experienced now! _______________________________________________ gtkmm-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtkmm-list