- 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->GetWidget());
-
- page->m_client = child;
- gtk_notebook_append_page( notebook, child->GetWidget(), page->m_box );
-
- page->m_page = (GtkNotebookPage*) (g_list_last(notebook->children)->data);
-
- page->m_parent = notebook;
-
- gtk_signal_connect( GTK_OBJECT(child->GetWidget()), "size_allocate",
- GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)child );
-
- wxASSERT_MSG( page->m_page, _T("Notebook page creation error") );
-
- parent->m_pages.Append( page );