Re: Cannot `dynamic_cast` custom wrapped widget from Gtk::Builder

Ok, thanks for trying to help! I'll take a look at the generated code for something in gtkmm and see if it's any different with regard to ObjectBase initialization. 

On Fri, May 1, 2020 at 3:44 PM Daniel Boles via gtkmm-list <gtkmm-list gnome org> wrote:

On Fri, 1 May 2020, 23:40 Josh Bialkowski, <josh bialkowski gmail com> wrote:
It looks like it does, I'm pretty sure this happens in the `panzoomarea_class_.init()` call:
    :  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
      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
gtkmm-list gnome org

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