Re: TextBuffer tags

Gtk::TextBuffer::serialize() and deserialize() are useful. They don't save anything, but they convert to and from a byte string that you can store in a file. Those methods were added to gtkmm in version 3.15.9. The corresponding gtk+ methods have existed much longer.

If you wonder why serialize() does not return a Glib::ustring or std::string, see


On 2016-05-26 20:02, Phil Wolff wrote:
Is there a build-in way to save a TextBuffer (text content, tag definitions, where tags have been applied, marks, etc.), or do I have to roll my own?

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