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.)
This commit is contained in:
Owen Taylor
2002-07-06 00:21:43 +00:00
committed by Owen Taylor
parent e05a96609d
commit 367cacdf1b
12 changed files with 108 additions and 12 deletions

View File

@ -6447,7 +6447,7 @@ popup_targets_received (GtkClipboard *clipboard,
gtk_menu_popup (GTK_MENU (text_view->popup_menu), NULL, NULL,
popup_position_func, text_view,
0, gtk_get_current_event_time ());
_gtk_menu_shell_select_first (GTK_MENU_SHELL (text_view->popup_menu));
_gtk_menu_shell_select_first (GTK_MENU_SHELL (text_view->popup_menu), FALSE);
}
}