Re: [wxVTK] GTK2 issue
Brought to you by:
malat
From: Mathieu M. <mat...@gm...> - 2007-02-03 21:37:25
|
On 2/3/07, Wesley Brooks <wes...@gm...> wrote: > Dear Users, > > Is this the same problem I'm having? I guess I'm running the latest > version of GTK as I keep the machine updated frequently using the > package updater on KDE. I've just found this forum after posting the > messgage bellow on the vtk users forum: > > Dear Users, > > I'm trying to use wxVTKRenderWindow but not having much luck; > > >>>python wxVTKRenderWindow.py > > (python:5168): Gtk-CRITICAL **: gtk_widget_set_colormap: assertion > `!GTK_WIDGET_REALIZED (widget)' failed Have you seen this bug for wxWidgets lib: https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1597527&group_id=9863 ... Hello. When use wxGlCanvas with wxGTK build, I have a gtk assertion : Gtk-CRITICAL **: gtk_widget_set_colormap: assertion `!GTK_WIDGET_REALIZED (widget)' failed The alone use of gtk_widget_set_colormap function (for wxGTK2 build) is src/gtk/glcanvas.cpp:339. In gtk documentation [1], it is specified that this function must be called before the widget is realized however in the wxGLCanvas::Create function, it calls wxWindow::Create (l325) which (src/gtk/window.cpp:2394) shows it. When I suppress gtk_widget_set_colormap call, assertion is not shoewd anymore and nothing is affected. ... Unfortunately nobody answered it. The real issue here is that API of wxGLCanvas really changed so I am not sure the bug really affect 2.8.0, thus I do not believe wx-deve team will be interested in solving it. My main goal here is really to try to move toward a common implementation for msw and gtk (by using wxWindow in both case instead of wxGLCanvas)....Hopefully solving all those weird issues. HTH -M |