Re: Cannot `dynamic_cast` custom wrapped widget from Gtk::Builder
Kjell Ahlstedt via gtkmm-list <[email protected]> Sat, 2 May 2020 09:27:18 +0200
| Newsgroups | gmane.comp.gnome.gtkmm |
|---|---|
| Message-ID | <[email protected]> |
On 2020-05-01 23:28, Josh Bialkowski via gtkmm-list wrote:
>
> ~~~
> class PanZoomArea : public Gtk::DrawingArea {
> _CLASS_GOBJECT(PanZoomArea, GtkPanZoomArea, GTK_PANZOOM_AREA,
> Gtk::DrawingArea, GtkDrawingArea);
> ~~~
>
You must use _CLASS_GTKOBJECT() instead of _CLASS_GOBJECT() for a widget.
_CLASS_GTKOBJCT() is defined in gtkmm/tools/m4/class_gtkobject.m4. You
won't find it in glibmm.
Don't know if this is the only error.
Kjell
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list