wrapped up Show() calls to prevent gtk bug from manifesting

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams 2006-07-31 06:54:49 +00:00
parent f0f1afb8b9
commit 26178b5d2a

View File

@ -876,6 +876,8 @@ bool wxFrameManager::DetachPane(wxWindow* window)
// reduce flicker
p.window->SetSize(1,1);
if (p.frame->IsShown())
p.frame->Show(false);
// reparent to m_frame and destroy the pane
@ -1945,6 +1947,8 @@ void wxFrameManager::Update()
// reduce flicker
p.window->SetSize(1,1);
if (p.frame->IsShown())
p.frame->Show(false);
// reparent to m_frame and destroy the pane
@ -1987,11 +1991,9 @@ void wxFrameManager::Update()
frame->SetPaneWindow(p);
p.frame = frame;
if (p.IsShown())
{
if (p.IsShown() && !frame->IsShown())
frame->Show();
}
}
else
{
// frame already exists, make sure it's position
@ -2010,6 +2012,7 @@ void wxFrameManager::Update()
}
else
{
if (p.window->IsShown() != p.IsShown())
p.window->Show(p.IsShown());
}
@ -2724,6 +2727,7 @@ void wxFrameManager::HideHint()
// hides a transparent window hint, if there is one
if (m_hint_wnd)
{
if (m_hint_wnd->IsShown())
m_hint_wnd->Show(false);
#if wxCHECK_VERSION(2,7,0)
m_hint_wnd->SetTransparent(0);
@ -2980,6 +2984,7 @@ void wxFrameManager::OnFloatingPaneClosed(wxWindow* wnd, wxCloseEvent& evt)
{
// reparent the pane window back to us and
// prepare the frame window for destruction
if (pane.window->IsShown())
pane.window->Show(false);
pane.window->Reparent(m_frame);
pane.frame = NULL;