From befb44cf2ea21149c1c5a04c11a13e36051cba22 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 17 Aug 2005 14:24:28 +0000 Subject: [PATCH] added GetCurrentSelection() which is the same as GetSelection() for Mac but needed for compatibility with the other ports git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/choice.h | 1 + include/wx/mac/carbon/combobox.h | 1 + 2 files changed, 2 insertions(+) diff --git a/include/wx/mac/carbon/choice.h b/include/wx/mac/carbon/choice.h index 7e9b5abcc0..0ea661d53b 100644 --- a/include/wx/mac/carbon/choice.h +++ b/include/wx/mac/carbon/choice.h @@ -82,6 +82,7 @@ public: virtual int GetCount() const ; virtual int GetSelection() const ; virtual void SetSelection(int n); + int GetCurrentSelection() const { return GetSelection(); } virtual int FindString(const wxString& s) const; virtual wxString GetString(int n) const ; diff --git a/include/wx/mac/carbon/combobox.h b/include/wx/mac/carbon/combobox.h index 82b4956c15..594a37bf64 100644 --- a/include/wx/mac/carbon/combobox.h +++ b/include/wx/mac/carbon/combobox.h @@ -91,6 +91,7 @@ class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase virtual void Clear(); virtual int GetSelection() const ; + int GetCurrentSelection() const { return GetSelection(); } virtual void SetSelection(int n); virtual int FindString(const wxString& s) const; virtual wxString GetString(int n) const ; -- 2.45.2