remove duplicate code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -484,39 +484,6 @@ void wxWindowMac::DoSetWindowVariant( wxWindowVariant variant )
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
GetPeer()->SetControlSize( variant );
|
GetPeer()->SetControlSize( variant );
|
||||||
#if wxOSX_USE_CARBON
|
|
||||||
ControlSize size ;
|
|
||||||
|
|
||||||
// we will get that from the settings later
|
|
||||||
// and make this NORMAL later, but first
|
|
||||||
// we have a few calculations that we must fix
|
|
||||||
|
|
||||||
switch ( variant )
|
|
||||||
{
|
|
||||||
case wxWINDOW_VARIANT_NORMAL :
|
|
||||||
size = kControlSizeNormal;
|
|
||||||
break ;
|
|
||||||
|
|
||||||
case wxWINDOW_VARIANT_SMALL :
|
|
||||||
size = kControlSizeSmall;
|
|
||||||
break ;
|
|
||||||
|
|
||||||
case wxWINDOW_VARIANT_MINI :
|
|
||||||
// not always defined in the headers
|
|
||||||
size = 3 ;
|
|
||||||
break ;
|
|
||||||
|
|
||||||
case wxWINDOW_VARIANT_LARGE :
|
|
||||||
size = kControlSizeLarge;
|
|
||||||
break ;
|
|
||||||
|
|
||||||
default:
|
|
||||||
wxFAIL_MSG(wxT("unexpected window variant"));
|
|
||||||
break ;
|
|
||||||
}
|
|
||||||
GetPeer()->SetData<ControlSize>(kControlEntireControl, kControlSizeTag, &size ) ;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
switch ( variant )
|
switch ( variant )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user