문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top