Gtk::SourceView - how to disallow modifications? (read only)

Hi,

I sometimes want to read in a file into SourceView but disallow the user
from making modifications (unless a check box is clicked, for instance.)

Is this possible?

Marc H. wrote in post #1020330:

Hi,

I sometimes want to read in a file into SourceView but disallow the user
from making modifications (unless a check box is clicked, for instance.)

Most likely with :

http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ATextView#editable%3D

but I don’t use sourceview myself.

Yes, thank you!

That solves this issue. :slight_smile:

I am silly, I should have looked at the parent classes.

I use SourceView only recently… the old gtksourceview (Version 1)
seems to no longer work, but gtksourceview2 seems to work and a few
things have changed.

I am porting all my little ruby-gtk apps that used gtksourceview to
gtksourceview2 right now.