diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-07-06 00:21:43 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-07-06 00:21:43 +0000 |
commit | 367cacdf1b879c5bfa16f21502c80d8ed152ebef (patch) | |
tree | e373581e311d8e1f6d4772e87c393607f7cb3a7e /gtk/gtkmenuitem.c | |
parent | e05a96609d5f3c2725ab2a7a35438cd2c6aed8c2 (diff) | |
download | gdk-pixbuf-367cacdf1b879c5bfa16f21502c80d8ed152ebef.tar.gz |
Add an extra parameter to _gtk_menu_item_select_first() to allow us to
Fri Jul 5 20:18:23 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenushell.[ch] gtk/gtkmenubar.c gtk/gtkmenuitem.c
gtk/gtkentry.c gtk/gtktextview.c: Add an extra parameter
to _gtk_menu_item_select_first() to allow us to choose
whether we want to select the first item predictably
or to select the first sensitive item. Fixes problem
with insensitive menu items and keynav. (#85796,
reported by Bill Haneman and others.)
Diffstat (limited to 'gtk/gtkmenuitem.c')
-rw-r--r-- | gtk/gtkmenuitem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 118e7009b..0f3bc8e1a 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -804,7 +804,7 @@ gtk_real_menu_item_activate_item (GtkMenuItem *menu_item) gtk_menu_shell_select_item (GTK_MENU_SHELL (widget->parent), widget); gtk_menu_item_popup_submenu (widget); - _gtk_menu_shell_select_first (GTK_MENU_SHELL (menu_item->submenu)); + _gtk_menu_shell_select_first (GTK_MENU_SHELL (menu_item->submenu), FALSE); submenu = GTK_MENU_SHELL (menu_item->submenu); } } |