kumoshk
November 28th, 2009, 02:08 AM
[I have a new question: see my next post.]
In GTK, how do I make my ScrolledWindow scroll to a line of text, by a specific line number of the TextView?
Assume that the TextView is not editable and the cursor is not visible. This needs to be done without regard to font, font size and such, as well.
I need a line to be counted as whenever \n occurs—not whenever it wraps, too.
I already know how to make it scroll without regard to line numbers, however.
[The answer is to use Gtk.TextIter and the functions relating to it in Gtk.TextView.]
In GTK, how do I make my ScrolledWindow scroll to a line of text, by a specific line number of the TextView?
Assume that the TextView is not editable and the cursor is not visible. This needs to be done without regard to font, font size and such, as well.
I need a line to be counted as whenever \n occurs—not whenever it wraps, too.
I already know how to make it scroll without regard to line numbers, however.
[The answer is to use Gtk.TextIter and the functions relating to it in Gtk.TextView.]