Re: Derived widget in libglademm

On Sat, 2007-09-01 at 23:43 +0200, Philipp Klaus Krause wrote:
> Murray Cumming schrieb:
> > Can we see the implementation of the constructor. I wonder if it calls
> > the base constructor with the da parameter.
> > 
> Display::Display(BaseObjectType *da, Glib::RefPtr<Gnome::Glade::Xml>&
> refGlade)// : Gtk::DrawingArea(da) causes runtime error.

Nothing much will work if you comment that out. In particular, it can't
hook in your default signal handler.

> When I try to call the base constructor I get the following runtime error:
> (ttedit:12863): GtkGLExt-CRITICAL **: gtk_widget_set_gl_capability:
> assertion `!GTK_WIDGET_REALIZED (widget)' failed
> and on_realize() isn't called.

I don't think this has anything to do with Glade or GtkDrawingArea. I
guess that is something to do with the other parts of your code.

murrayc murrayc com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]