[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: text tag table
- From: Eduardo M KALINOWSKI <ekalin bol com br>
- To: gtk-app-devel-list gnome org
- Subject: Re: text tag table
- Date: Tue, 04 Apr 2006 08:39:08 -0300
ashley maher wrote:
>G'day,
>
>In the references to the text widget of the GTK API it says to refer to
>the gtk-demo for examples.
>
>These examples are very good. Using the Multiple Views example I can
>save a gtk text buffer to, and retrieve, from a text file.
>
>I can change the look and feel using tags. All modified from the example
>code.
>
>However I can't find anywhere example code to show how to maintain
>persistence between running the programme. How do you save a tag table
>to a file so after you formatted a block of text this formatting is
>available next time? Or how is this done. Googling has not got me very
>far. Is there such code? I've not found it in the gtk-demo code, or
>anywhere else.
>
>
>
GtkTextView does not have that feature built-in. You'll need to write
the code to do that yourself, going through the textview, detecting
which tags it has, and writing this and the attributes of the tags.
--
pain, n.:
One thing, at least it proves that you're alive!
Eduardo M KALINOWSKI
ekalin bol com br
http://move.to/hpkb
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]