]> Pileus Git - ~andy/gtk/commit
treeview: Don't invalidate whole tree unless needed
authorAlexander Larsson <alexl@redhat.com>
Thu, 6 Dec 2012 21:28:11 +0000 (22:28 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 6 Dec 2012 21:28:11 +0000 (22:28 +0100)
commit4ca293e006a00ce8529e17d9202faaf68f57ff6f
tree4cd4ea50ad8fc95462006737f208ea6e942a3afe
parentfd964ca178105626b9945995b22c2dabe6ebe853
treeview: Don't invalidate whole tree unless needed

We currently invalidate the whole tree every time the style state
changes in the tree view. The primary reason for this is to catch
default font changes as that may affect text cell renderers. But
cell renderers could *potentially* also read other style properties
(although that seems weird and unlikely).

We handle this by invalidating only when some state that affects sizes
is changed. This includes all the font properties.
gtk/gtktreeview.c