Method

GtkTextBufferget_line_count

Declaration [src]

gint
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: gint

Number of lines in the buffer.