From 471046b0887b67ca54a6a9f1a8c83cee5c6bf80c Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Fri, 22 Dec 2006 20:14:38 +0000 Subject: [PATCH] Adding SetFocus to wxABI_VERSION. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/listctrl.h | 5 ++++- src/mac/carbon/listctrl_mac.cpp | 2 ++ version-script.in | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/wx/mac/carbon/listctrl.h b/include/wx/mac/carbon/listctrl.h index 137ab88183..821f2568ab 100644 --- a/include/wx/mac/carbon/listctrl.h +++ b/include/wx/mac/carbon/listctrl.h @@ -12,6 +12,7 @@ #ifndef _WX_LISTCTRL_H_ #define _WX_LISTCTRL_H_ +#include "wx/defs.h" #include "wx/generic/listctrl.h" class wxMacDataBrowserListCtrlControl; @@ -341,8 +342,10 @@ class WXDLLEXPORT wxListCtrl: public wxControl virtual int GetScrollPos(int orient) const; +#if wxABI_VERSION >= 20801 virtual void SetFocus(); - +#endif + virtual void SetDropTarget( wxDropTarget *dropTarget ); virtual wxDropTarget* GetDropTarget() const; diff --git a/src/mac/carbon/listctrl_mac.cpp b/src/mac/carbon/listctrl_mac.cpp index a325ce5c48..1ff5991fec 100644 --- a/src/mac/carbon/listctrl_mac.cpp +++ b/src/mac/carbon/listctrl_mac.cpp @@ -2200,6 +2200,7 @@ wxDropTarget *wxListCtrl::GetDropTarget() const return NULL; } +#if wxABI_VERSION >= 20801 void wxListCtrl::SetFocus() { if (m_genericImpl) @@ -2210,6 +2211,7 @@ void wxListCtrl::SetFocus() wxWindow::SetFocus(); } +#endif // wxMac internal data structures diff --git a/version-script.in b/version-script.in index 123b09747a..48a25ab1a4 100644 --- a/version-script.in +++ b/version-script.in @@ -30,6 +30,8 @@ # wx{Dir|File}Dialog::Get/SetStyle() *wxFileDialog*etStyle*; *wxDirDialog*etStyle*; + # Mac OS X only, but it still must go in IIUC + *wxListCtrl*SetFocus*; }; # symbols available since the beginning of this branch are only given -- 2.50.0