Pregunta

I've created a textview which is being filled by a Gtk::TextBuffer, however the buffer contains a lot of characters and the window gets wider than the width of the screen.

Is there a way to define a max width for a Gtk::TextView?

¿Fue útil?

Solución

Put the text view in a Gtk::ScrolledWindow and set the size request of the scrolled window.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top