From: Vadim Zeitlin Date: Fri, 5 Jul 2002 13:24:49 +0000 (+0000) Subject: use GtkUpdateSize() for consitency everywhere instead of directly setting m_sizeSet X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b8b7f03cef9f028fc95301ac2ba506e4efa49f59 use GtkUpdateSize() for consitency everywhere instead of directly setting m_sizeSet git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/frame.cpp b/src/gtk/frame.cpp index 48b191aaa0..7ff1880195 100644 --- a/src/gtk/frame.cpp +++ b/src/gtk/frame.cpp @@ -485,7 +485,7 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), } #endif // wxUSE_STATUSBAR - m_sizeSet = TRUE; + GtkUpdateSize(); // send size event to frame wxSizeEvent event( wxSize(m_width,m_height), GetId() ); @@ -581,7 +581,7 @@ void wxFrame::AttachMenuBar( wxMenuBar *menuBar ) } // resize window in OnInternalIdle - m_sizeSet = FALSE; + GtkUpdateSize(); } #endif // wxUSE_MENUS_NATIVE @@ -598,7 +598,7 @@ wxToolBar* wxFrame::CreateToolBar( long style, wxWindowID id, const wxString& na m_insertInClientArea = TRUE; - m_sizeSet = FALSE; + GtkUpdateSize(); return m_frameToolBar; } @@ -643,7 +643,7 @@ wxStatusBar* wxFrame::CreateStatusBar(int number, wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") ); // because it will change when toolbar is added - m_sizeSet = FALSE; + GtkUpdateSize(); return wxFrameBase::CreateStatusBar( number, style, id, name ); } @@ -653,7 +653,7 @@ void wxFrame::PositionStatusBar() if ( !m_frameStatusBar ) return; - m_sizeSet = FALSE; + GtkUpdateSize(); } #endif // wxUSE_STATUSBAR diff --git a/src/gtk1/frame.cpp b/src/gtk1/frame.cpp index 48b191aaa0..7ff1880195 100644 --- a/src/gtk1/frame.cpp +++ b/src/gtk1/frame.cpp @@ -485,7 +485,7 @@ void wxFrame::GtkOnSize( int WXUNUSED(x), int WXUNUSED(y), } #endif // wxUSE_STATUSBAR - m_sizeSet = TRUE; + GtkUpdateSize(); // send size event to frame wxSizeEvent event( wxSize(m_width,m_height), GetId() ); @@ -581,7 +581,7 @@ void wxFrame::AttachMenuBar( wxMenuBar *menuBar ) } // resize window in OnInternalIdle - m_sizeSet = FALSE; + GtkUpdateSize(); } #endif // wxUSE_MENUS_NATIVE @@ -598,7 +598,7 @@ wxToolBar* wxFrame::CreateToolBar( long style, wxWindowID id, const wxString& na m_insertInClientArea = TRUE; - m_sizeSet = FALSE; + GtkUpdateSize(); return m_frameToolBar; } @@ -643,7 +643,7 @@ wxStatusBar* wxFrame::CreateStatusBar(int number, wxASSERT_MSG( (m_widget != NULL), wxT("invalid frame") ); // because it will change when toolbar is added - m_sizeSet = FALSE; + GtkUpdateSize(); return wxFrameBase::CreateStatusBar( number, style, id, name ); } @@ -653,7 +653,7 @@ void wxFrame::PositionStatusBar() if ( !m_frameStatusBar ) return; - m_sizeSet = FALSE; + GtkUpdateSize(); } #endif // wxUSE_STATUSBAR