mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Merge fix from maemo-gtk:
2007-05-25 Michael Natterer <mitch@imendio.com> 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. svn path=/trunk/; revision=17911
This commit is contained in:
parent
d0150e7cfe
commit
f42be73710
@ -1,3 +1,12 @@
|
||||
2007-05-25 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
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 <mclasen@redhat.com>
|
||||
|
||||
* gtk/stock-icons/*: Make sure all svg icons are added
|
||||
|
@ -790,17 +790,16 @@ gtk_menu_shell_enter_notify (GtkWidget *widget,
|
||||
!_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
|
||||
|
Loading…
Reference in New Issue
Block a user