Limiting a GtkTextBuffer



Is there anyway to limit the size of a GtkTextBuffer by line count? I would like to be able to set a maximum number of lines. In some cases, I would like to truncate the extra text appened to the end of the buffer. At other times, I would like to delete the first line in the buffer and append the new line to then end (like a ring buffer). Is GtkTextBuffer capable of this?

Thanks in advance,
Bryan



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