RE: HELP for TextView functions



 >  (testtextwidget:15175): Gtk-CRITICAL **: file gtktextbuffer.c: line 476 (gtk_text_buffer_emit_insert): assertion `g_utf8_validate (text, len,
 >  NULL)' failed
 
The reason for this, is that your text is not valid UTF8.  All of GTK uses UTF8.  You can check the validity of your text using this function: g_utf8_validate();
http://developer.gnome.org/doc/API/2.0/glib/glib-Unicode-Manipulation.html#g-utf8-validate
  
Look at the gtk-demo for an example on how to use the GtkTextView widget.
 
Regards,
Martyn 


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