I posted this question to the mailing list as well, but perhaps there are people here that know the answer.
I can’t figure out if it’s me or something’s amiss. I’m trying to set the scroll position after rendering a GtkTextView in a GtkScrolledWindow, but it’s reset to a different value, if it works at all. I’ve so far tried to set the vertical adjustment value both after GtkScrolledWindow is mapped or its child (GtkTextView) size-allocated. When using a GtkListBox instead of a GtkTextView and setting the adjustment’s value on “size-allocate”, it works. No such luck with a GtkTextView, however.
The peculiar thing with the GtkTextView is, while the adjustment reports its upper bound to be, for example, 588 and its value 0, immediately after setting it to 493, it reports its value as 11. I figure “size-allocate” is still the wrong event to use here given the adjustment is in flux. What would the right path be to consistently set the scroll position after the first render, and later, after resetting the GtkTextView’s buffer?
This is on Arch Linux with gtk3 v3.24.7+25+g17665f06e3-1.
Thanks in advance!