One quick follow-up. I re-read [this page][1] about initialization and
realized that I didn't generate or call a `wrap_init` function using `
generate_wrap_init.pl`. So I added that step and am now calling it in
`main()` before any using code. This means that I was previously not
calling the follow
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 Bialk
On Fri, 1 May 2020, 23:40 Josh Bialkowski,
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),
>
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_.in
How does your generated constructor look? Does it register the new type
with GObject?
___
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
> Did you miss an asterisk in that declaration? get_widget() wants a
pointer as argument.
I did miss an asterix. Apologies for the transcription error.
> Does it change if you construct a dummy instance before building, instead
of just calling get_type() ?
Thanks for the suggestion. I tried this
Does it change if you construct a dummy instance before building, instead
of just calling get_type() ?
___
gtkmm-list mailing list
gtkmm-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtkmm-list
-- Forwarded message -
From: Daniel Boles
Date: Fri, 1 May 2020, 22:31
Subject: Re: Cannot `dynamic_cast` custom wrapped widget from Gtk::Builder
To: Josh Bialkowski
On Fri, 1 May 2020, 22:29 Josh Bialkowski via gtkmm-list, <
gtkmm-list@gnome.org> wrote:
>
> Everything compil
Hello,
I have a custom widget that I've implemented in C and then used gmmproc[1]
to generate C++ bindings for that widget. The process was mostly smooth,
but I cannot seem to use my generated C++ bindings in
Gtk::Builder::get_widget. I can post the full source code if needed, but
probably there i