Scrolling to mark in TextView (Gtkmm)
First I would like to say that I am programming with Gtkmm 2.4/2.6 API. Now on to my problem.
I have a Goto Line dialog that was working. What I did was get the line number, move the insert & selection_bound marks to that line and then scroll the TextView to the insert mark.
My problem is that the ScrolledWindow now contains a HBox. The HBox has a label that contains line numbering and the TextView. Now my Goto Line function does not work anymore. It moves the cursor but does not scroll to that mark. Also, when I type, if I press the Return key past the bottom of the buffer, it does not scroll down.
So basically, the TextView won't automatically scroll as it is supposed to anymore...
Thank you for your help! - Andrew
|