- gint idx = gtk_notebook_insert_page(notebook, win->m_widget,
- nb_page->m_box, position);
-
- nb_page->m_page = (GtkNotebookPage *)gtk_notebook_get_nth_page(notebook, idx);
+ gtk_notebook_insert_page(notebook, win->m_widget, nb_page->m_box, position);