wxPlatformInfo (patch 1532064)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -153,17 +153,22 @@ void wxBell()
|
||||
}
|
||||
#endif
|
||||
|
||||
wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo()
|
||||
wxPortId wxGUIAppTraits::GetToolkitVersion(int *verMaj, int *verMin) const
|
||||
{
|
||||
static wxToolkitInfo info;
|
||||
info.shortName = _T("x11univ");
|
||||
info.name = _T("wxX11");
|
||||
info.versionMajor = 0;
|
||||
info.versionMinor = 0;
|
||||
info.os = wxX11;
|
||||
return info;
|
||||
// get X protocol version
|
||||
Display *display = wxGlobalDisplay();
|
||||
if (display)
|
||||
{
|
||||
if ( verMaj )
|
||||
*verMaj = ProtocolVersion (display);
|
||||
if ( verMin )
|
||||
*verMin = ProtocolRevision (display);
|
||||
}
|
||||
|
||||
return wxPORT_X11;
|
||||
}
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// display info
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user