GNOME Bugzilla – Bug 333743
Gtk HEAD (2.10) GtkNotebook tab dragging crashes any application that had tab dragging previously
Last modified: 2006-03-09 00:29:15 UTC
Steps to reproduce: Upgrade to GTK+ HEAD with GtkNotebook tab dragging. Start any application which had tab dnd (gedit, gnome-terminal, epiphany are the ones I found) Observe crash. Stack trace: Other information: Problem is that some applications had previously added signals such as "tab-added" "tab-removed" etc to the GtkNotebook class. As GTK+ now has those signals but with different callback signatures from the custom signals, the applications now crash.
After talking to rambokid, we need to find names for the new signals which are not used by derived classes yet. Adding new signals is a lot more delicate than adding new vfuncs...
Also rambokid pointed out that these should not be action signals, and use proper types for their arguments instead of gpointer
My suggestion is would be to rename them to "page-added" and "page-removed", it makes sense after all, as the most important thing here is the child widget (page), not the tab widget I can make a patch (fixing rambokid issues too) if you like
that would be great
Created attachment 60923 [details] [review] patch for adding some more consistence, I've also renamed ::tab-reordered to ::page-reordered, and made gtk_notebook_reorder_child() to emit this signal
Oh, btw, I've tested it with gedit, gnome-terminal and ephy, they work just like they should :)
Looks great. Feel free to commmit, otherwis I'll get around to it sometime...
I've just committed the patch to HEAD, thanks :)
*** Bug 333888 has been marked as a duplicate of this bug. ***