/* get the first line and the height of the line */
gtk_text_buffer_get_start_iter (buffer, &iter);
gtk_text_view_get_iter_location (GTK_TEXT_VIEW (text_view), &iter, &iter_rectangle);
/* Count lines in text view */
for (line = 0; line < line_limit; line++) {
/* get the first line and the height of the line */
gtk_text_buffer_get_start_iter (buffer, &iter);
gtk_text_view_get_iter_location (GTK_TEXT_VIEW (text_view), &iter, &iter_rectangle);
/* Count lines in text view */
for (line = 0; line < line_limit; line++) {