]> git.saurik.com Git - wxWidgets.git/commit
No real change, just make bezel setting code in wxOSX more clear.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Nov 2012 23:50:05 +0000 (23:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Nov 2012 23:50:05 +0000 (23:50 +0000)
commit04a6d8efe892a1ee77fa42a85299a359ce02527b
treeabd3a1ccd8da16a3e690dcb630a3073dffe0527a
parentd6e9e150660b6bc1d35e727f46ddecd3d16b3364
No real change, just make bezel setting code in wxOSX more clear.

Avoid code duplication between SetAcceleratorFromLabel() and
wxWidgetImpl::CreateButton(), generalize the former to handle the special
cases taken into account only in the latter previously.

Also use a switch on border flags instead of series of nested ifs as this
seems to be more clear.

No changes in behaviour.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/osx/cocoa/button.mm
src/osx/cocoa/tglbtn.mm