]> git.saurik.com Git - wxWidgets.git/commitdiff
[ 1577675 ] Fix for GTK warnings in wxNotebook::DoRemovePage
authorRobert Roebling <robert@roebling.de>
Sun, 15 Oct 2006 18:44:33 +0000 (18:44 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 15 Oct 2006 18:44:33 +0000 (18:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/notebook.cpp

index 16bf982e3ae5abb4c7ea0553f40404bbf8b50366..aa1774ecf6c3714942e92aeb2c80149b721ea097 100644 (file)
@@ -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,