GNOME Bugzilla – Bug 101152
notebook page switch segfault
Last modified: 2004-12-22 21:47:04 UTC
A method is connected to the Gtk::Notebook.signal_switch_page() signal slot. In this method there is a call to Gtk::Notebook.get_current_page(). It is in the call to get_current_page() that a segfault is generated, and crashes the application.
Created attachment 12974 [details] Examples based program that demonstrates the notebook page switch calling get_current_page segfault bug.
line 78: notebook->signal_switch_page().connect( slot( *notebook, &AppWindow::NotebookPageSwitch )); can't work since *notebook is not of type AppWindow. This construct should trigger a compile-time error -- you need to upgrade to a recent libsigc++ because of a bug that allowed this kind of type-unsafety.