Re: displaying contents in textview
- From: Jan-Marek Glogowski <glogow fbihome de>
- To: Niow Kim Chwee <eng10152 nus edu sg>
- Cc: gtk-list gnome org
- Subject: Re: displaying contents in textview
- Date: Sun, 10 Oct 2004 09:21:55 +0200 (CEST)
Hi
1. Read the file data (open, fread, close)
2. If your text isn't UTF-8: g_locale_to_utf8 or g_convert (see glib ->
Character Set Conversion )
3. gtk_text_buffer_new, gtk_text_buffer_set_text, gtk_text_view_set_buffer
or
3. gtk_text_view_get_buffer, gtk_text_buffer_set_text
Jan-Marek
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]