mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
More FrameAui work. Some more segmentation faults resolved. And a little more code clean up.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5959 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
949b873dc8
commit
43cbff64b5
8 changed files with 311 additions and 319 deletions
|
@ -100,7 +100,7 @@ void CFrame::CreateMenu()
|
|||
{
|
||||
if (GetMenuBar()) GetMenuBar()->Destroy();
|
||||
|
||||
m_MenuBar = new wxMenuBar(wxMB_DOCKABLE);
|
||||
wxMenuBar *m_MenuBar = new wxMenuBar();
|
||||
|
||||
// file menu
|
||||
wxMenu* fileMenu = new wxMenu;
|
||||
|
@ -367,6 +367,7 @@ void CFrame::RecreateToolbar()
|
|||
m_ToolBar->Destroy();
|
||||
}
|
||||
|
||||
long TOOLBAR_STYLE = wxAUI_TB_DEFAULT_STYLE | wxAUI_TB_TEXT /*wxAUI_TB_OVERFLOW overflow visible*/;
|
||||
m_ToolBar = new wxAuiToolBar(this, ID_TOOLBAR, wxDefaultPosition, wxDefaultSize, TOOLBAR_STYLE);
|
||||
|
||||
PopulateToolbar(m_ToolBar);
|
||||
|
@ -495,8 +496,6 @@ void CFrame::InitBitmaps()
|
|||
|
||||
// Update in case the bitmap has been updated
|
||||
if (m_ToolBar != NULL) RecreateToolbar();
|
||||
|
||||
aNormalFile = wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_OTHER, wxSize(16,16));
|
||||
}
|
||||
|
||||
// Menu items
|
||||
|
@ -1325,10 +1324,8 @@ void CFrame::UpdateGUI()
|
|||
// Game has not started, show game list
|
||||
if (!m_GameListCtrl->IsShown())
|
||||
{
|
||||
m_GameListCtrl->Reparent(m_Panel);
|
||||
m_GameListCtrl->Enable();
|
||||
m_GameListCtrl->Show();
|
||||
sizerPanel->FitInside(m_Panel);
|
||||
}
|
||||
// Game has been selected but not started, enable play button
|
||||
if (m_GameListCtrl->GetSelectedISO() != NULL && m_GameListCtrl->IsEnabled() && !m_bGameLoading)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue