-GdkVisual *wxApp::GetGdkVisual()
-{
- GdkVisual *visual = NULL;
-
- XVisualInfo *xvi = (XVisualInfo *)GetXVisualInfo();
- if ( xvi )
- visual = gdkx_visual_get( xvi->visualid );
- else
- visual = gdk_drawable_get_visual( wxGetRootWindow()->window );
-
- wxASSERT( visual );
-
- return visual;
-}
-