keeping track of specific characters in a GtkTextBuffer
- From: Adam Tertial <adamtertial yahoo co uk>
- To: gnome-devtools gnome org
- Subject: keeping track of specific characters in a GtkTextBuffer
- Date: Tue, 20 Feb 2007 21:09:27 +0000 (GMT)
Hi,
I need to be able keep track of the location of
specific characters in a GtkTextBuffer, and I was
wondering what the most efficient way of doing that
was. Is it possible to have pointers to characters in
the buffer? I had thought about inserting a
GtkTextMarker whenever the user types the character
I'm interested in, but the documentation says: "If the
text surrounding the mark is deleted, the mark remains
in the position the text once occupied", and I would
want the marks to be deleted along with the text. If
that's the right approach, I suppose when the user
deletes any text I could check all the marks to see if
they were in that text and then delete them myself,
but that seems a bit inefficient to me.
All and any ideas are welcome! :)
___________________________________________________________
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]