return gdk_window_get_visual( wxGetRootWindow()->window )->depth;
}
-wxToolkitInfo *wxGUIAppTraits::GetToolkitInfo()
+wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo()
{
static wxToolkitInfo info;
#ifdef __WXGTK20__
info.versionMajor = GTK_MAJOR_VERSION;
info.versionMinor = GTK_MINOR_VERSION;
info.os = wxGTK;
- return &info;
+ return info;
}
wxWindow* wxFindWindowAtPoint(const wxPoint& pt)