Hello guys,
I am trying to print GtkSourceBuffer
to console. Snippet of the code is as following ;
GtkSourceView *view;
GtkSourceBuffer *buffer;
view = GTK_SOURCE_VIEW (gtk_source_view_new());
buffer = GTK_SOURCE_BUFFER (gtk_text_view_get_buffer (GTK_TEXT_VIEW (view)));
What I really trying to implement is to printf("%s\n", buffer);
or a similar action. What is being written to sourceview text input region should be printed to console in real-time. I went through documentation and could not find any useful directive to achieve this kind of task. What should I add or do to do this can anyone provide insight ?
Thank you,