Get number of logical lines from GtkTextView

Hi, ALL,
I got an answer here, but unfortunately the code is using non-existing function.

Moreover I think that I will get an incorrect results if my text will be smaller than the height of the control.

Any idea on how can I get an accurate results for number of logical lines in GtkTextView?

TIA!

3 posts were merged into an existing topic: Is it possible to get a number of physical lines from GtkTextView