fix for gtk/mdi when changing menubars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
79813ccaf8
commit
e5894d192c
@ -607,13 +607,13 @@ void wxFrame::AttachMenuBar( wxMenuBar *menuBar )
|
||||
|
||||
void wxFrame::UpdateMenuBarSize()
|
||||
{
|
||||
wxASSERT_MSG( m_frameMenuBar, _T("Updating non existant menubar?") );
|
||||
|
||||
GtkRequisition req;
|
||||
|
||||
req.width = 2;
|
||||
req.height = 2;
|
||||
|
||||
|
||||
// this is called after Remove with a NULL m_frameMenuBar
|
||||
if ( m_frameMenuBar )
|
||||
(* GTK_WIDGET_CLASS( GTK_OBJECT_GET_CLASS(m_frameMenuBar->m_widget) )->size_request )
|
||||
(m_frameMenuBar->m_widget, &req );
|
||||
|
||||
|
@ -607,13 +607,13 @@ void wxFrame::AttachMenuBar( wxMenuBar *menuBar )
|
||||
|
||||
void wxFrame::UpdateMenuBarSize()
|
||||
{
|
||||
wxASSERT_MSG( m_frameMenuBar, _T("Updating non existant menubar?") );
|
||||
|
||||
GtkRequisition req;
|
||||
|
||||
req.width = 2;
|
||||
req.height = 2;
|
||||
|
||||
|
||||
// this is called after Remove with a NULL m_frameMenuBar
|
||||
if ( m_frameMenuBar )
|
||||
(* GTK_WIDGET_CLASS( GTK_OBJECT_GET_CLASS(m_frameMenuBar->m_widget) )->size_request )
|
||||
(m_frameMenuBar->m_widget, &req );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user