GtkTextBuffer: Q: offsets to indicies?
- From: "Janus N." Tøndering <janus bananus dk>
- To: GTK Application Developement List <gtk-app-devel-list gnome org>
- Subject: GtkTextBuffer: Q: offsets to indicies?
- Date: 01 Aug 2002 09:50:16 +0200
Dear Sirs,
I am working on an application that passes the content of a
GtkTextBuffer to a function as a gchar array (using
gtk_text_buffer_get_slice). The function then returns ranges in the
gchar array that need coloring.
My problem is the handling of multibyte characters. I need to be able to
somehow convert an integer offset in the GtkTextBuffer into a index
(somthing a. la. gtk_text_buffer_get_iter_from_index). But I cannot find
such a function?
Maybe this should be done otherwise then?
Regards,
Janus N. Tøndering
--
Janus Nørgaard Tøndering
email: janus bananus dk, j nus person dk or u011014 daimi au dk
"Would you buy a car with the hood welded shut?"
-Phil Hughes, Linux Journal Magazine
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]