[wxVTK] wxVTK/Sample wxVTKNotebook.cxx,1.1,1.2
Brought to you by:
malat
From: Sander N. <svn...@us...> - 2008-12-03 10:31:51
|
Update of /cvsroot/wxvtk/wxVTK/Sample In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv17726/Sample Modified Files: wxVTKNotebook.cxx Log Message: ENH: Added implementations of InternalCreateTimer and InternalDestroyTimer so timers will again work with VTK 5.2 ENH: To fix display issues with GTK2 (first render fails and incorrect z-ordering), wxVTKRenderWindowInteractor now also derives from wxGLCanvas for wxGTK 2.8. To solve the crashes that result from this change we now explicitly set the DisplayId on the RenderWindow. This will prevent VTK from destroying the X Display (which was the cause of the crashes). As a side result the wxVTKNotebook sample no longer has to call SetDisplayId anymore. Index: wxVTKNotebook.cxx =================================================================== RCS file: /cvsroot/wxvtk/wxVTK/Sample/wxVTKNotebook.cxx,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** wxVTKNotebook.cxx 1 Jul 2008 08:55:40 -0000 1.1 --- wxVTKNotebook.cxx 3 Dec 2008 10:31:46 -0000 1.2 *************** *** 213,217 **** wxPanel *self = notebook_1_pane_1; wxVTKRenderWindowInteractor *renWin = new wxVTKRenderWindowInteractor(self,-1); //, size=(10,10)); - renWin->GetRenderWindow()->SetDisplayId( wxGetDisplay() ); //self._wlist.append( renWin ); renWin->GetRenderWindow()->AddRenderer(ren); --- 213,216 ---- |