I'm messing around with GTK and glade for the first time, and I've run across a really annoying issue. When I enter text into a TextView, the TextView automatically resizes larger, pushing other widgets away.
This is a really annoying behavior. I do not want my TextView changing size depending on the amount of text within it.
Does anyone know what I can do to prevent the TextView from resizing based on its content?
You should put GtkTextView
into GtkScrolledWindow
with "hscrollbar-policy
" and "vscrollbar-policy
" properties set to "automatic
".
I may have asked a bit too soon.
The answer is, the TextView must go inside a scrolled window.
Hopefully someone else will run across this problem one day, and this solution will help them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With