Lines Matching refs:selected_index
929 static void center_item(int selected_index, int *last_top_row) in center_item() argument
935 if (selected_index < toprow || in center_item()
936 selected_index >= toprow+mwin_max_lines) { in center_item()
937 toprow = max(selected_index-mwin_max_lines/2, 0); in center_item()
943 curses_menu_items[selected_index]); in center_item()
951 int selected_index, int *last_top_row) in show_menu() argument
989 center_item(selected_index, last_top_row); in show_menu()
1239 int selected_index = 0; in conf_choice() local
1269 selected_index = i; in conf_choice()
1275 selected_index, in conf_choice()
1287 if (do_match(res, &match_state, &selected_index) == 0) { in conf_choice()
1288 if (selected_index != -1) in conf_choice()
1289 center_item(selected_index, in conf_choice()