Many thanks to all, my handling of files and strings
was in fact faulty. I used

while(fp != NULL){
  fgets(line ,256, fp);
  gtk_text_buffer_insert_at_cursor(...);}

which results in the last line being read twice,
with wrong charaters at the beginning the second time.
An eof character most probably somewhere.

The test !feof(fp) is no better, but the easy
and clean code :

while( fgets(line ,256, fp)!= NULL){
  gtk_text_buffer_insert_at_cursor(...);}

does wonder. I promise, next time I'll
check my code more thoroughly before
incriminating gtk!

Best,
Amities,
               Olivier

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to