build fix for wxUSE_TOGGLEBTN==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,11 +127,13 @@ void wxButtonCocoaImpl::SetPressedBitmap( const wxBitmap& bitmap )
|
|||||||
{
|
{
|
||||||
NSButton* button = GetNSButton();
|
NSButton* button = GetNSButton();
|
||||||
[button setAlternateImage: bitmap.GetNSImage()];
|
[button setAlternateImage: bitmap.GetNSImage()];
|
||||||
|
#if wxUSE_TOGGLEBTN
|
||||||
if ( GetWXPeer()->IsKindOf(wxCLASSINFO(wxToggleButton)) )
|
if ( GetWXPeer()->IsKindOf(wxCLASSINFO(wxToggleButton)) )
|
||||||
{
|
{
|
||||||
[button setButtonType:NSToggleButton];
|
[button setButtonType:NSToggleButton];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
[button setButtonType:NSMomentaryChangeButton];
|
[button setButtonType:NSMomentaryChangeButton];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user