1 --- gtk+-2.10.0/gtk/gtkmenushell.c.orig 2006-07-05 17:17:34.000000000 +0200
2 +++ gtk+-2.10.0/gtk/gtkmenushell.c 2006-07-05 17:19:01.000000000 +0200
7 -#define MENU_SHELL_TIMEOUT 500
8 +#define MENU_SHELL_TIMEOUT 2000
10 #define PACK_DIRECTION(m) \
11 (GTK_IS_MENU_BAR (m) \
14 G_DEFINE_TYPE (GtkMenuShell, gtk_menu_shell, GTK_TYPE_CONTAINER)
16 +static int last_crossing_time;
19 gtk_menu_shell_class_init (GtkMenuShellClass *klass)
22 gtk_grab_add (GTK_WIDGET (menu_shell));
23 menu_shell->have_grab = TRUE;
24 menu_shell->active = TRUE;
25 + last_crossing_time = 0;
30 menu_shell->activate_time = 0;
34 + if (last_crossing_time != 0
35 + && ((event->time - last_crossing_time) < 500))
37 + last_crossing_time = 0;
45 menu_item = gtk_get_event_widget ((GdkEvent*) event);
47 + last_crossing_time = event->time;
50 (GTK_IS_MENU_ITEM (menu_item) &&
51 !_gtk_menu_item_is_selectable (menu_item)))