From 9d639ffa593d2b8996b00f6a21b6cba0bc30d3b0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 10 Sep 2006 01:58:13 +0000 Subject: [PATCH] compilation fix after wxGUIAppTraits::GetToolkitVersion() introduction git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/cocoa/utils.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/cocoa/utils.cpp b/src/cocoa/utils.cpp index 9f18f11023..c2112fc552 100644 --- a/src/cocoa/utils.cpp +++ b/src/cocoa/utils.cpp @@ -54,13 +54,12 @@ void wxClientDisplayRect(int *x,int *y,int *width,int *height) *height=768; } -wxToolkitInfo& wxGUIAppTraits::GetToolkitInfo() +wxPortId wxGUIAppTraits::GetToolkitVersion(int *verMaj, int *verMin) const { - static wxToolkitInfo info; - info.shortName = _T("cocoa"); - info.name = _T("wxCocoa"); - // TODO: Finish this - return info; + // We suppose that toolkit version is the same as OS version under Mac + wxGetOsVersion(verMaj, verMin); + + return wxPORT_COCOA; } wxWindow* wxFindWindowAtPoint(const wxPoint& pt)