anyone know a way to save a gtktextview/gtktextbuffer with embedded
gdkpixbuf into a file.
A correction to the suggested solution:
In the procedure
void open_gtb (GtkTextView *textView, const gchar *srcFileName)
delete the call:
gtk_text_buffer_deserialize_set_can_create_tags (
buffer, gr
Thanks, thats a much better way of doing it ^_^
Johnson
On Tue, 2008-11-18 at 08:05 +, Pavel A. da Mek wrote:
> > anyone know a way to save a gtktextview/gtktextbuffer with embedded
> > gdkpixbuf into a file. I am calling gtk_text_buffer_get_slice then
> > g_file_set_contents. Idealy it will
anyone know a way to save a gtktextview/gtktextbuffer with embedded
gdkpixbuf into a file. I am calling gtk_text_buffer_get_slice then
g_file_set_contents. Idealy it will be good if i can just call
g_file_get_contents to output the saved buffer onto the gtktextview.
void save_grt (GtkTextView *
solved the issue by scanning the textbuffer for pixbufs and replace them
with tags. so loading the file into a textbuffer/textview then simply
means parsing the tags and load pixbuf on the go.
text text text
..
..
text text text
if there is a better way to do save/load on textview with embeeded