fixing notebook icons for panther
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -474,7 +474,11 @@ void wxNotebook::MacSetupTabs()
|
|||||||
SetControlData( (ControlHandle) m_macControl, ii+1,kControlTabImageContentTag,
|
SetControlData( (ControlHandle) m_macControl, ii+1,kControlTabImageContentTag,
|
||||||
sizeof( info ), (Ptr)&info );
|
sizeof( info ), (Ptr)&info );
|
||||||
wxASSERT_MSG( err == noErr , wxT("Error when setting icon on tab") ) ;
|
wxASSERT_MSG( err == noErr , wxT("Error when setting icon on tab") ) ;
|
||||||
|
if ( UMAGetSystemVersion() <= 0x1030 )
|
||||||
|
{
|
||||||
UnregisterIconRef( 'WXNG' , (OSType) 1 ) ;
|
UnregisterIconRef( 'WXNG' , (OSType) 1 ) ;
|
||||||
|
}
|
||||||
|
|
||||||
ReleaseIconRef( iconRef ) ;
|
ReleaseIconRef( iconRef ) ;
|
||||||
DisposeHandle( (Handle) iconFamily ) ;
|
DisposeHandle( (Handle) iconFamily ) ;
|
||||||
}
|
}
|
||||||
|
@@ -474,7 +474,11 @@ void wxNotebook::MacSetupTabs()
|
|||||||
SetControlData( (ControlHandle) m_macControl, ii+1,kControlTabImageContentTag,
|
SetControlData( (ControlHandle) m_macControl, ii+1,kControlTabImageContentTag,
|
||||||
sizeof( info ), (Ptr)&info );
|
sizeof( info ), (Ptr)&info );
|
||||||
wxASSERT_MSG( err == noErr , wxT("Error when setting icon on tab") ) ;
|
wxASSERT_MSG( err == noErr , wxT("Error when setting icon on tab") ) ;
|
||||||
|
if ( UMAGetSystemVersion() <= 0x1030 )
|
||||||
|
{
|
||||||
UnregisterIconRef( 'WXNG' , (OSType) 1 ) ;
|
UnregisterIconRef( 'WXNG' , (OSType) 1 ) ;
|
||||||
|
}
|
||||||
|
|
||||||
ReleaseIconRef( iconRef ) ;
|
ReleaseIconRef( iconRef ) ;
|
||||||
DisposeHandle( (Handle) iconFamily ) ;
|
DisposeHandle( (Handle) iconFamily ) ;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user