- n_marks = _gtk_range_get_stop_positions (range, &marks);
- /* We always draw the marks in increasing direction, so flip
- * the stop positions to match the marks (which we flip in
- * gtk_scale_notify)
- */
- if (gtk_range_get_inverted (range))
- {
- for (i = 0; i < n_marks / 2; i++)
- {
- x1 = marks[i];
- marks[i] = marks[n_marks - 1 - i];
- marks[n_marks - 1 - i] = x1;
- }
- }