if (!menu_bar) return;
if (!menu_bar->m_widget) return;
- menu_bar->InternalSetPosition(0, 0);
- menu_bar->InternalSetSize(m_width, wxMENU_HEIGHT);
+ menu_bar->m_x = 0;
+ menu_bar->m_y = 0;
+ menu_bar->m_width = m_width;
+ menu_bar->m_height = wxMENU_HEIGHT;
gtk_myfixed_set_size( GTK_MYFIXED(m_mainWidget),
menu_bar->m_widget,
0, 0, m_width, wxMENU_HEIGHT );
void wxMDIChildFrame::Activate()
{
+#if (GTK_MINOR_VERSION > 0)
+ wxMDIParentFrame* parent = (wxMDIParentFrame*) GetParent();
+ GtkNotebook* notebook = GTK_NOTEBOOK(parent->m_widget);
+ gint pageno = gtk_notebook_page_num( notebook, m_page->child );
+ gtk_notebook_set_page( notebook, pageno );
+#else
+ // the only way I can see to do this under gtk+ 1.0.X would
+ // be to keep track of page numbers, start at first and
+ // do "next" enough times to get to this page number - messy
+ // - J. Russell Smyth
+#endif
}
void wxMDIChildFrame::OnActivate( wxActivateEvent &WXUNUSED(event) )