]> Pileus Git - ~andy/gtk/commit
Position new ui nodes correctly when existing dirty dead nodes exist
authorAlexander Larsson <alexl@redhat.com>
Sun, 29 Nov 2009 01:49:37 +0000 (20:49 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 29 Nov 2009 01:49:37 +0000 (20:49 -0500)
commit4e0b7bf6fe8004ce51ddc992865010d3ab4232bb
tree62c22f5e7d84426b8bb0e8cfc09835ce7dd32747
parent25a8c7316d4acb2fe3ada0bef3c087875bc95e45
Position new ui nodes correctly when existing dirty dead nodes exist

If you add a new ui node that was recently removed it will still be
in the tree, but marked dirty. In this case we previously just used
the old node, which meant it wouldn't get the same position as if
the dirty nodes had been processed first (and deleted) before the
new node was added.

We handle this by detecting this case and reposition the node as if
it was new.

https://bugzilla.gnome.org/show_bug.cgi?id=603128
gtk/gtkuimanager.c