Re: gtk_text_buffer_get_* should return length? (1.3.6)



Joshua N Pritikin <vishnu pobox com> writes: 
To raise the ante, here's a use case: i want to copy a small part
of a long document into a separate GtkTextBuffer, preserving some
or all of the tags.  i can't find an API to do that.  i suspected
that gtk_text_buffer_get_slice might be helpful but it just does
padding.

gtk_text_buffer_insert_range() may be useful for this.
It will preserve tags if the buffers share the same tag table. 

Havoc




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