wxListBox::~wxListBox()
{
+ m_blockEvents = true;
FreeData();
+ m_blockEvents = false;
+
// make sure no native events get sent to a object in destruction
delete m_peer;
m_peer = NULL;
value.Set( GetString( n ) );
}
-void wxListBox::SetValueCallback( unsigned int n, wxListWidgetColumn* col , wxListWidgetCellValue& value )
+void wxListBox::SetValueCallback( unsigned int WXUNUSED(n), wxListWidgetColumn* WXUNUSED(col) , wxListWidgetCellValue& WXUNUSED(value) )
{
}
attr.colFg = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT );
attr.colBg = wxSystemSettings::GetColour( wxSYS_COLOUR_LISTBOX );
-#if wxOSX_USE_ATSU_TEXT
- attr.font.MacCreateFromThemeFont(kThemeViewsFont);
-#else
- attr.font.MacCreateFromUIFont(kCTFontViewsFontType);
-#endif
+ attr.font.CreateSystemFont(wxOSX_SYSTEM_FONT_VIEWS);
return attr;
}