diff --git a/ChangeLog b/ChangeLog index 65e6cb7af7..8bf2f15ff2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2007-05-25 Michael Natterer + + Merge fix from maemo-gtk: + + * gtk/gtkmenushell.c (gtk_menu_shell_enter_notify): open submenus + also if the menu item we're entering is already selected. Also, it + makes no sense to forward the event to the parent menu shell if we + are entering a menu item of *this* menu shell. + 2007-05-24 Matthias Clasen * gtk/stock-icons/*: Make sure all svg icons are added diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 65ddc1211b..250c0ac737 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -789,18 +789,17 @@ gtk_menu_shell_enter_notify (GtkWidget *widget, (GTK_IS_MENU_ITEM (menu_item) && !_gtk_menu_item_is_selectable (menu_item))) return TRUE; - - if ((menu_item->parent == widget) && - (menu_shell->active_menu_item != menu_item) && + + if (menu_item->parent == widget && GTK_IS_MENU_ITEM (menu_item)) { if (menu_shell->ignore_enter) return TRUE; - - if ((event->detail != GDK_NOTIFY_INFERIOR) && - (GTK_WIDGET_STATE (menu_item) != GTK_STATE_PRELIGHT)) - { - gtk_menu_shell_select_item (menu_shell, menu_item); + + if (event->detail != GDK_NOTIFY_INFERIOR) + { + if (GTK_WIDGET_STATE (menu_item) != GTK_STATE_PRELIGHT) + gtk_menu_shell_select_item (menu_shell, menu_item); /* If any mouse button is down, and there is a submenu * that is not yet visible, activate it. It's sufficient