diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-12-13 18:40:12 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-12-13 18:40:12 +0000 |
commit | 7ffcc59b5a36f04045f031201c9af3d15399cd8a (patch) | |
tree | 69d880cbee0251a49948647eef4996e42563234d /gtk | |
parent | b2890f53949ed61cf15cbfb498e290703761540f (diff) | |
download | gtk+-7ffcc59b5a36f04045f031201c9af3d15399cd8a.tar.gz |
Implement scroll wheel scrolling for menus. (#88532)
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_scroll): Implement scroll wheel scrolling
for menus. (#88532)
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/gtkmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c index af9d65ebfe..71048e84a6 100644 --- a/gtk/gtkmenu.c +++ b/gtk/gtkmenu.c @@ -1714,7 +1714,7 @@ gtk_menu_set_tearoff_hints (GtkMenu *menu, geometry_hints.max_width = width; geometry_hints.min_height = 0; - geometry_hints.max_height = GTK_WIDGET (menu)->requisition.height + 10; + geometry_hints.max_height = GTK_WIDGET (menu)->requisition.height; gtk_window_set_geometry_hints (GTK_WINDOW (menu->tearoff_window), NULL, @@ -2840,7 +2840,7 @@ gtk_menu_scroll_by (GtkMenu *menu, gtk_menu_scroll_to (menu, offset); } -Static gboolean +static gboolean gtk_menu_scroll_timeout (gpointer data) { GtkMenu *menu; |