GNOME Bugzilla – Bug 320686
Gtk-CRITICAL when clicking column header in history
Last modified: 2006-01-17 19:41:01 UTC
+ Trace 63890
This bug is a bit evil, I have worked out why it is happening: Using EphyNodeView there is a chain of models, which goes sortmodel -> filtermodel -> ephy_tree_model_node When the sortmodel is constructed, it calls gtk_tree_model_get_n_columns on it's child model, however although ephy_tree_model_node has been told about the EphyNode to get it's data, it doesn't know how many columns it is going to contain, so it returns 0. This means that the sortmodel doesn't know how the columns should be sorted, so it doesn't have entries in the 'sort_list' for them. I can see 2 ways round this: - Call gtk_tree_sortable_set_sort_func manually for the columns that need to be sorted - Tell ephy_tree_model_node the columns and types that it will contain, so that get_n_columns returns the correct thing.
I think I slightly prefer the 2nd option, but I'm okay with whatever is less work, esp. considering we'd like to get rid of EphyNode* soon...
This bug crashes Epiphany with the new glib version...
Fixed in CVS: http://mail.gnome.org/archives/cvs-commits-list/2006-January/msg04792.html