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
This commit is contained in:
Vadim Zeitlin
2002-07-05 13:24:49 +00:00
parent 94f1450956
commit b8b7f03cef
2 changed files with 10 additions and 10 deletions

View File

@@ -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

View File

@@ -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