Lines Matching defs:new_line
105 static Boolean ScrollVerticalText(Widget w, int new_line, Boolean force_redisp);
376 * new_line - the new location for the line pointer
383 ScrollVerticalText(Widget w, int new_line, Boolean force_redisp)
394 if (new_line < 0) {
395 new_line = 0;
404 if (new_line > max_lines) {
405 new_line = max_lines;
415 sblw->scroll.line_pointer = new_line; /* Set current top of page. */
420 if (new_line == old_line)
427 else if (new_line < old_line) {
428 int lines_to_scroll = old_line - new_line;
437 int lines_to_scroll = new_line - old_line;
572 int new_line; /* The new location for the line pointer. */
575 new_line = (int) ((float) sblw->scroll.lines * percent);
576 if (ScrollVerticalText((Widget) sblw, new_line, FALSE))
594 int new_line; /* The new location for the line pointer. */
597 new_line = sblw->scroll.line_pointer + (pos / sblw->scroll.font_height);
598 (void) ScrollVerticalText((Widget) sblw, new_line, FALSE);