Hello,
I need to insert a a line to the end of the buffer in TextView in gtkmm4. Can you point me into the right direction ?
Hello,
I need to insert a a line to the end of the buffer in TextView in gtkmm4. Can you point me into the right direction ?
I imagine you just want:
const auto buffer = your_text_view.get_buffer();
buffer->insert(buffer->end(), some_glib_ustring);
// or
buffer->insert(buffer->end(), some_c_string_begin, some_c_string_end);
See the TextBuffer
documentation for various other ways to insert/overwrite/whatever.
Thank you I was able to resolve the issue using your reccomendation.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.