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)
This commit is contained in:
Matthias Clasen 2004-12-13 18:40:12 +00:00 committed by Matthias Clasen
parent b2890f5394
commit 7ffcc59b5a
5 changed files with 14 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_scroll): Implement scroll wheel scrolling
for menus. (#88532)
* gtk/gtkwindow.c (gtk_window_real_set_focus): Compare only
the HAS_DEFAULT flags. (#160711, Tommi Komulainen)

View File

@ -1,5 +1,8 @@
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_scroll): Implement scroll wheel scrolling
for menus. (#88532)
* gtk/gtkwindow.c (gtk_window_real_set_focus): Compare only
the HAS_DEFAULT flags. (#160711, Tommi Komulainen)

View File

@ -1,5 +1,8 @@
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_scroll): Implement scroll wheel scrolling
for menus. (#88532)
* gtk/gtkwindow.c (gtk_window_real_set_focus): Compare only
the HAS_DEFAULT flags. (#160711, Tommi Komulainen)

View File

@ -1,5 +1,8 @@
2004-12-13 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenu.c (gtk_menu_scroll): Implement scroll wheel scrolling
for menus. (#88532)
* gtk/gtkwindow.c (gtk_window_real_set_focus): Compare only
the HAS_DEFAULT flags. (#160711, Tommi Komulainen)

View File

@ -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;