]> Pileus Git - ~andy/gtk/commit
Make treeview expanders work reliably
authorMatthias Clasen <mclasen@redhat.com>
Tue, 1 Feb 2011 06:28:45 +0000 (01:28 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 1 Feb 2011 06:32:02 +0000 (01:32 -0500)
commit8448780a6c9fa2bcdd06af996bddb8bd720bd5e6
tree517d9e4b4d28e3a9e9f6f7850b916f66bbd260e9
parentc332ac207ab4cac8f4c32aa85cdf6406157340af
Make treeview expanders work reliably

It turns out that the gtk_grab_remove() can trigger a do_prelight()
call, which may end up changing prelight_node, and then the state
gets messed up. Moving the grab removal until after we're done with
button_pressed_node and prlight_node makes expanders work reliably.

One thing that is still not right is that the expander doesn't get
prelight again after the animation is done, if you manage to release
without any additional motion events.

https://bugzilla.gnome.org/show_bug.cgi?id=641039
gtk/gtktreeview.c