]> Pileus Git - ~andy/gtk/commit
Make page up/down work again in scrolled menus
authorMatthias Clasen <mclasen@redhat.com>
Wed, 25 Apr 2012 03:34:12 +0000 (23:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 25 Apr 2012 03:34:12 +0000 (23:34 -0400)
commit87cd49371aa231df291154e0a469710e68b0c3dd
treeb971598695d506dc4a6c05730070cc2eb14610b9
parent2e873e3fdccb98c79da3a4a02e7830847e7edebb
Make page up/down work again in scrolled menus

This was broken since before GTK+ 3.0, when we replaced
a use of requisition by allocation. Fix this by using the
requisition height, that is already cached by the menu code.

The math is not quite right here; if you page all the way
down a long menu, you end up on the second-to-last menuitem.
But at least, page up/down let you move up and down the menu
again.
https://bugzilla.gnome.org/show_bug.cgi?id=668931
gtk/gtkmenu.c