- wxNotebookPage *page = new wxNotebookPage();
-
- page->m_id = parent->GetPageCount();
-
- page->m_box = gtk_hbox_new (FALSE, 0);
- gtk_container_border_width(GTK_CONTAINER(page->m_box), 2);
-
- GtkNotebook *notebook = GTK_NOTEBOOK(parent->m_widget);
-
- page->m_client = child;
- gtk_notebook_append_page( notebook, child->m_widget, page->m_box );
-
- page->m_page = (GtkNotebookPage*) (g_list_last(notebook->children)->data);
-
- page->m_parent = notebook;
-
- gtk_signal_connect( GTK_OBJECT(child->m_widget), "size_allocate",
- GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)child );
-
- wxASSERT_MSG( page->m_page, "Notebook page creation error" );
-
- parent->m_pages.Append( page );