X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d41e1ab4817b8a603c1399b1e4b006ec951839a7..8168167976dc3cc5f5223a21e1a62ba91a4f77b3:/src/gtk/notebook.cpp diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index 16bf982e3a..aa1774ecf6 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -604,7 +604,9 @@ wxNotebookPage *wxNotebook::DoRemovePage( size_t page ) gtk_widget_ref( client->m_widget ); gtk_widget_unrealize( client->m_widget ); - gtk_widget_unparent( client->m_widget ); + + // we don't need to unparent the client->m_widget; GTK+ will do + // that for us (and will throw a warning if we do it!) // gtk_notebook_remove_page() sends "switch_page" signal with some strange // new page index (when deleting selected page 0, new page is 1 although,