if ((win->m_x == alloc->x) &&
(win->m_y == alloc->y) &&
(win->m_width == alloc->width) &&
- (win->m_height == alloc->height))
+ (win->m_height == alloc->height) &&
+ (win->m_sizeSet))
{
return;
}
if (m_mdiMenuBar)
{
- int x = 0;
- int y = 0;
- GetClientSize( &x, &y );
- m_mdiMenuBar->SetSize( 1, 1, x-2, wxMENU_HEIGHT-2, wxSIZE_NO_ADJUSTMENTS );
+ m_mdiMenuBar->m_x = 1;
+ m_mdiMenuBar->m_y = 1;
+ m_mdiMenuBar->m_width = m_width-2;
+ m_mdiMenuBar->m_height = wxMENU_HEIGHT-2;
+ gtk_myfixed_move( GTK_MYFIXED(m_wxwindow), m_mdiMenuBar->m_widget, 1, 1 );
+ gtk_widget_set_usize( m_mdiMenuBar->m_widget, m_width-2, wxMENU_HEIGHT-2 );
}
}
m_mdiMenuBar = menu_bar;
if (m_mdiMenuBar)
{
- int x = 0;
- int y = 0;
- GetClientSize( &x, &y );
- m_mdiMenuBar->SetSize( 1, 1, x-2, wxMENU_HEIGHT-2, wxSIZE_NO_ADJUSTMENTS );
+ m_mdiMenuBar->m_x = 1;
+ m_mdiMenuBar->m_y = 1;
+ m_mdiMenuBar->m_width = m_width-2;
+ m_mdiMenuBar->m_height = wxMENU_HEIGHT-2;
+ gtk_myfixed_move( GTK_MYFIXED(m_wxwindow), m_mdiMenuBar->m_widget, 1, 1 );
+ gtk_widget_set_usize( m_mdiMenuBar->m_widget, m_width-2, wxMENU_HEIGHT-2 );
m_mdiMenuBar->Show( TRUE );
}
}
gtk_notebook_set_scrollable( GTK_NOTEBOOK(m_widget), 1 );
- gtk_myfixed_put( GTK_MYFIXED(m_parent->m_wxwindow), m_widget, m_x, m_y );
+ m_parent->AddChild( this );
+
+ (m_parent->m_insertCallback)( m_parent, this );
PostCreation();