Scrollbar in Gtk



Hi all!

I need to display some informative text in a window. Usually the text consists of a few short lines but sometimes the number of lines is very large.
Is there a way for the text to be displayed in a fixed size window and have a scrollbar allow the user to see the rest of the text?

For that matter, is there a way to wrap anything in a fixed-sized container that allows further exploration of hidden content via a scrollbar?

Thanks a bunch!


i did this scrolled canvas example some time ago:
and you should find inspiration in:


Totally worked!!! Thanks!