]> Pileus Git - ~andy/gtk/commit
treeview: Replace cursor handling by keeping the node
authorBenjamin Otte <otte@redhat.com>
Sat, 10 Dec 2011 01:06:33 +0000 (02:06 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 10 Dec 2011 07:00:26 +0000 (08:00 +0100)
commite01af5c5c97517ce6d85147bb07460db48ec997c
tree6a7486740f46dd5cc2a1a8867edf0b75cb95b0a7
parent2a59265df11422bce5a017d338e3bfb68ff2dedf
treeview: Replace cursor handling by keeping the node

Previously the code used a GtkTreeRowReference, which was (a) less
performant and more importantly (b) hiding errors.
The errors being hidden were the referenced row becoming invalid or
collapsed, because such rows would not be valid cursor rows and it would
be necesary to select a new row and emit a "cursor-changed" signal.

So if a crash bisects down to this commit, it is very likely that the
cursor has not correctly been updated and the cursor row is invalid.
gtk/gtktreeview.c