]> git.saurik.com Git - wxWidgets.git/commitdiff
Reenabled page selection event when page in notebook
authorRobert Roebling <robert@roebling.de>
Sat, 4 Nov 2006 16:56:07 +0000 (16:56 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 4 Nov 2006 16:56:07 +0000 (16:56 +0000)
   was deleted.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/notebook.cpp

index aa1774ecf6c3714942e92aeb2c80149b721ea097..4bb1ee5a07faaec89fcada38aeaba319bba0452d 100644 (file)
@@ -608,18 +608,8 @@ wxNotebookPage *wxNotebook::DoRemovePage( size_t page )
     // 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,
-    // clearly, the selection should stay 0), so suppress this
-    g_signal_handlers_disconnect_by_func (m_widget,
-                                          (gpointer) gtk_notebook_page_change_callback,
-                                          this);
-
     gtk_notebook_remove_page( GTK_NOTEBOOK(m_widget), page );
 
-    g_signal_connect (m_widget, "switch_page",
-                      G_CALLBACK (gtk_notebook_page_change_callback), this);
-
     wxGtkNotebookPage* p = GetNotebookPage(page);
     m_pagesData.DeleteObject(p);
     delete p;