Re: marks API



On 15 Jul 2000, Havoc Pennington wrote:

> Tim Janik <timj@gtk.org> writes:

> > what do i need marks for?
> > (other than getting a name that i couldn't set through the
> > gtk_text_mark_* API)
> > 
> 
> Marks are like bookmarks for a spot in the buffer. You would use them
> to hold a place during mutations that would invalidate an iterator.
> A mark behaves like the cursor (though the cursor has right gravity,
> and marks can also have left gravity). Like the cursor, the mark's
> position after inserting or deleting text around it is predictable.

ok, what is that get_name functionality for then (especially
since there's no set_name counterpart)?

> 
> Havoc
> 

---
ciaoTJ





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