Re: gtk_text_buffer_insert

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

 



On Sun, 9 Jan 2005 02:40:48 -0800 (PST), Aaron Yang
<porsche1904@xxxxxxxxx> wrote:
> 
> in the above program, only function1 prints, but not
> function2, and instead i got the following error:
> 


If you insert a letter or whatever into the buffer all the iters you
have created before are not valid anymore, so you need to create new
iters and then insert other text in the buffer at their location.


> (a:3445): Gtk-WARNING **: Invalid text buffer
> iterator: either the iterator is uninitialized, or the
> characters/pixbufs/widgets in the buffer have been
> modified since the iterator was created.
> You must use marks, character numbers, or line numbers
> to preserve a position across buffer modifications.
> You can apply tags and insert marks without
> invalidating your iterators,
> but any mutation that affects 'indexable' buffer
> contents (contents that can be referred to by
> character offset)
> will invalidate all outstanding iterators
> 
> (a:3445): Gtk-CRITICAL **: file gtktextbuffer.c: line
> 577 (gtk_text_buffer_insert): assertion
> `gtk_text_iter_get_buffer (iter) == buffer' failed
> 

cheers
gmt
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux