diff --git a/include/wx/osx/button.h b/include/wx/osx/button.h index d5aff7ab33..3f4b2babf1 100644 --- a/include/wx/osx/button.h +++ b/include/wx/osx/button.h @@ -50,7 +50,7 @@ public: virtual bool OSXHandleClicked( double timestampsec ); #if wxOSX_USE_COCOA - void OSXSetAcceleratorFromLabel(const wxString& label); + void OSXUpdateAfterLabelChange(const wxString& label); #endif protected: diff --git a/src/osx/button_osx.cpp b/src/osx/button_osx.cpp index b52bf2221b..432f1f08af 100644 --- a/src/osx/button_osx.cpp +++ b/src/osx/button_osx.cpp @@ -102,7 +102,7 @@ void wxButton::SetLabel(const wxString& label) wxAnyButton::SetLabel(label); #if wxOSX_USE_COCOA - OSXSetAcceleratorFromLabel(label); + OSXUpdateAfterLabelChange(label); #endif } diff --git a/src/osx/cocoa/button.mm b/src/osx/cocoa/button.mm index fa0ce40515..94c6562b7b 100644 --- a/src/osx/cocoa/button.mm +++ b/src/osx/cocoa/button.mm @@ -199,7 +199,7 @@ NSButton *wxButtonCocoaImpl::GetNSButton() const } // Set the keyboard accelerator key from the label (e.g. "Click &Me") -void wxButton::OSXSetAcceleratorFromLabel(const wxString& label) +void wxButton::OSXUpdateAfterLabelChange(const wxString& label) { // Skip setting the accelerator for the default buttons as this would // overwrite the default "Enter" which should be preserved.