GtkSourceViewmm in C++ and Glade



Hi, I created a GUI in Glade and I don't know how to use GtkSourceViewmm and GtkSourceBuffer in C++. The ideea is that I didn't found on Internet a proper way to declare it and also I didn't find a way to read a text from a source file to textbuffer and then to display it in SourceView.
I thought that this operation is similarly to that for TextView and TextBuffer where I have the following code:
textbuffer=Gtk::TextBuffer::create();
textbuffer->set_text("some text");
widgets.textview->set_buffer(textbuffer);
There is a similary syntax for GtkSourceViewmm?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]