Use wx style ListBox fast fill: Freeze and Thaw
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1976 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
cd76970d8f
commit
1b12bc38ac
|
@ -242,14 +242,16 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
|
||||||
void CCodeWindow::NotifyMapLoaded()
|
void CCodeWindow::NotifyMapLoaded()
|
||||||
{
|
{
|
||||||
g_symbolDB.FillInCallers();
|
g_symbolDB.FillInCallers();
|
||||||
symbols->Show(false); // hide it for faster filling
|
//symbols->Show(false); // hide it for faster filling
|
||||||
|
symbols->Freeze(); // HyperIris: wx style fast filling
|
||||||
symbols->Clear();
|
symbols->Clear();
|
||||||
for (SymbolDB::XFuncMap::iterator iter = g_symbolDB.GetIterator(); iter != g_symbolDB.End(); iter++)
|
for (SymbolDB::XFuncMap::iterator iter = g_symbolDB.GetIterator(); iter != g_symbolDB.End(); iter++)
|
||||||
{
|
{
|
||||||
int idx = symbols->Append(wxString::FromAscii(iter->second.name.c_str()));
|
int idx = symbols->Append(wxString::FromAscii(iter->second.name.c_str()));
|
||||||
symbols->SetClientData(idx, (void*)&iter->second);
|
symbols->SetClientData(idx, (void*)&iter->second);
|
||||||
}
|
}
|
||||||
symbols->Show(true);
|
symbols->Thaw();
|
||||||
|
//symbols->Show(true);
|
||||||
Update();
|
Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue