keeping track of specific characters in a GtkTextBuffer
- From: Adam Tertial <adamtertial yahoo co uk>
- To: gtk-app-devel-list gnome org
- Subject: keeping track of specific characters in a GtkTextBuffer
- Date: Wed, 21 Feb 2007 16:44:27 +0000 (GMT)
Hi,
I need to be able to 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! :)
___________________________________________________________
All New Yahoo! Mail ? Tired of unwanted email come-ons? Let our SpamGuard protect you.
http://uk.docs.yahoo.com/nowyoucan.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]