Re: Cannot `dynamic_cast` custom wrapped widget from Gtk::Builder
- From: Kjell Ahlstedt <kjellahlstedt gmail com>
- To: Josh Bialkowski <josh bialkowski gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: Cannot `dynamic_cast` custom wrapped widget from Gtk::Builder
- Date: Sat, 2 May 2020 09:27:18 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]