Method

GtkTextBufferget_line_count

Declaration [src]

int
gtk_text_buffer_get_line_count (
  GtkTextBuffer* buffer
)

Description [src]

Obtains the number of lines in the buffer.

This value is cached, so the function is very fast.

Return value

Type: int

Number of lines in the buffer.