diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-01-28 22:22:31 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-28 22:36:28 -0800 |
commit | 8d6dd5f87d38fa25769e900028781fa1e851ebc5 (patch) | |
tree | db938b0c5807f82e3b4d204b18ad332a41155741 /profile.c | |
parent | da62919ae143d2b9dcaa9b1bc093a8c48ff647f7 (diff) | |
download | subsurface-8d6dd5f87d38fa25769e900028781fa1e851ebc5.tar.gz |
Rewrite gtk dive selection tracking logic
We used to generate a list of possibly changed selections using the gtk
tree selection "selection function".
But that's actually meant to just tell gtk whether an entry can be
selected or not, and our list of possibly changed entries ended up being
stale if the selection change was due to a list entry removal, for
example.
So rip out the old model entirely, and instead just walk the whole
selection that gtk gives us on a selection "change" event. We throw all
our old selections away when this happens, and just rebuild it all.
This should fix the occasional internal gtklib-quartz assertion that
Henrik is seeing. And it actually simplifies the code too.
Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
0 files changed, 0 insertions, 0 deletions