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



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]