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

Re: Delete a gtktextbuffer to fill it again



Colossus wrote:
I fill the text gtk_text_buffer this way:
if (line != NULL) gtk_text_buffer_insert(textbuf, &enditer, line, strlen( line ) );

As it always happens after sending this email to the list I got the solution: I forgot to call gtk_text_buffer_get_start_iter(textbuf, &enditer); after deleting the gtk_text_buffer because the iterators are changed after the call to gt_text_buffer_delete().

Sorry,
--
Colossus

Cpsed, a Linux OpenGL 3D scene editor
http://cpsed.sourceforge.net/



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