Skip to content

Wxwidgets x11 glcanvas

Tarnyko edited this page Sep 19, 2013 · 16 revisions

Functions to modify

  • src/gtk/glcanvas.cpp :
  • ligne 170 : wxGLCanvas::wxGLCanvas() construction function calls "Create()" -> src/gtk/window.cpp "wxWindowGTK::Create()" -> src/common/wincpp.cpp "wxWindow::CreateBase()" -> "CreateBase()" -> SetParent() which fails.

Commenting the "SetParent()" function avoids hang when program starts -see why.

  • line 273 : wxGLCanvas::GetXWindow() : return a (X11) Window from a GdkWindow returned by neutral "GTKGetDrawingWindow()"

NOTE : even if we don't call it explicitly, it's used during every client program compilation -commenting it or putting between X11 #ifdefs makes undefined references - -see why

Clone this wiki locally