Method

GtkTextBufferget_iter_at_line

Declaration [src]

void
gtk_text_buffer_get_iter_at_line (
  GtkTextBuffer* buffer,
  GtkTextIter* iter,
  gint line_number
)

Description [src]

Initializes iter to the start of the given line. If line_number is greater than the number of lines in the buffer, the end iterator is returned.

Parameters

iter

Type: GtkTextIter

Iterator to initialize.

The argument will be set by the function.
The returned data is owned by the instance.
line_number

Type: gint

Line number counting from 0.