diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-06-12 21:32:25 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-06-12 21:32:25 +0000 |
commit | 789d271164e306053cbd7fcd5503a0197a39b74f (patch) | |
tree | aedd5f932015022e29440f4818a699c79816811b /gtk/gtkmenushell.c | |
parent | f67241c53b22e9a71513d18ebc8447a0e08d8a31 (diff) | |
download | gtk+-789d271164e306053cbd7fcd5503a0197a39b74f.tar.gz |
Check to see if the menu item is selectable before setting
Wed Jun 12 17:31:15 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.c (gtk_menu_shell_real_select_item):
Check to see if the menu item is selectable before
setting menu_shell->active_menu_item. This hopefully
will keep gail from getting confused.
(#84115, Remus Draica)
Diffstat (limited to 'gtk/gtkmenushell.c')
-rw-r--r-- | gtk/gtkmenushell.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 02da9df78a..91fee1c574 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -874,6 +874,9 @@ gtk_menu_shell_real_select_item (GtkMenuShell *menu_shell, { gtk_menu_shell_deselect (menu_shell); + if (!_gtk_menu_item_is_selectable (menu_item)) + return; + menu_shell->active_menu_item = menu_item; _gtk_menu_item_set_placement (GTK_MENU_ITEM (menu_shell->active_menu_item), GTK_MENU_SHELL_GET_CLASS (menu_shell)->submenu_placement); |