cgtkgtktextview

GtkTextView automatically resizing


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?


Solution

  • You should put GtkTextView into GtkScrolledWindow with "hscrollbar-policy" and "vscrollbar-policy" properties set to "automatic".