[GtkGLExt] Calling constructor of parent widget - runtime error
- From: Philipp Klaus Krause <pkk spth de>
- To: gtkglext-list gnome org
- Subject: [GtkGLExt] Calling constructor of parent widget - runtime error
- Date: Sun, 02 Sep 2007 10:20:37 +0200
In the gtkglextmm examples the derived widget's constructor never calls
the parent's constructor. When I add the call like
Display::Display(BaseObjectType *da, Glib::RefPtr<Gnome::Glade::Xml>&
refGlade) : Gtk::DrawingArea(da)
{
...
I get a runtime error:
GtkGLExt-CRITICAL **: gtk_widget_set_gl_capability:
assertion `!GTK_WIDGET_REALIZED (widget)' failed
However gtkmm docs recommend to always call the parent's constructor.
Not doing so will screw up signal handlers.
Philipp
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]