diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index 7e97116a90..9302752b23 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -870,7 +870,14 @@ public : const wxMacDataItem* itemID, DataBrowserItemNotification message, DataBrowserItemDataRef itemData); - + + // as we are getting the same events for human and API selection we have to suppress + // events in the latter case, since this will be used from many subclasses we keep it here + + bool IsSelectionSuppressed() const { return m_suppressSelection; } + bool SuppressSelection( bool suppress ); + +protected: // ID aware base methods, should be 'final' ie not changed in subclasses virtual Boolean CompareItems(DataBrowserItemID itemOneID, @@ -887,12 +894,6 @@ public : DataBrowserItemNotification message, DataBrowserItemDataRef itemData); - // as we are getting the same events for human and API selection we have to suppress - // events in the latter case, since this will be used from many subclasses we keep it here - - bool IsSelectionSuppressed() const { return m_suppressSelection; } - bool SuppressSelection( bool suppress ); - private : bool m_suppressSelection; diff --git a/include/wx/scrolwin.h b/include/wx/scrolwin.h index 4775724ba3..c27b7fa830 100644 --- a/include/wx/scrolwin.h +++ b/include/wx/scrolwin.h @@ -235,6 +235,7 @@ protected: // this macro can be used in a wxScrollHelper-derived class to forward wxWindow // methods to corresponding wxScrollHelper methods #define WX_FORWARD_TO_SCROLL_HELPER() \ +public: \ virtual void PrepareDC(wxDC& dc) { DoPrepareDC(dc); } \ virtual bool Layout() { return ScrollLayout(); } \ virtual void DoSetVirtualSize(int x, int y) \