[Glade-users] problems with glade



On Sun, 2003-11-09 at 11:28, Albert wrote:
hi all,

Now the program don't return errors, but, the text_view only show the
last line of the file, I think add:: sprintf(magatzem,"%s\n", magatzem);
but text_view only show the last line.

It is because you are using set_text() which replaces all the text in
the buffer:

    gtk_text_buffer_set_text (buffer, out, -1);

You need to use something like gtk_text_buffer_insert().

Damon






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