Re: clearing a text buffer



Once upon a time Havoc Pennington wrote @ Tue, 20 May 2003 22:30:05 -0400

On Tue, May 20, 2003 at 08:57:40PM -0400, Noah Levitt wrote:
On Tue, May 20, 2003 at 16:41:29 -0400, Rajarshi Guha wrote:

Right now my problem is how can I clear a text view? 

  gtk_text_buffer_set_text (buffer, "", -1);

My question is: how do I get a text iterator to the beginning and end of
a bufffer?

  gtk_text_buffer_get_start_iter ()
  gtk_text_buffer_get_end_iter ()


Also there's gtk_text_buffer_get_bounds(buffer, &start, &end)

Oops, Missed that!
thanks for reminding me!

-- 
----------------
-- Katoob Main Developer
Linux registered user # 224950
ICQ # 58475622
FIRST  make  it  run, THEN make it run fast "Brian Kernighan".

Attachment: pgpdW4oPOueI4.pgp
Description: PGP signature



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