if ( !IsShown() )
return;
- // There is no sense in updating the toolbar UI
- // if the parent window is about to get destroyed
- wxWindow *tlw = wxGetTopLevelParent( this );
- if (tlw && wxPendingDelete.Member( tlw ))
- return;
-
wxEvtHandler* evtHandler = GetEventHandler() ;
for ( wxToolBarToolsList::compatibility_iterator node = m_tools.GetFirst();
{
#if wxUSE_IMAGE
out = in.ConvertToGreyscale();
- if ( out.Ok() )
+ if ( out.IsOk() )
return true;
#endif // wxUSE_IMAGE
return false;