RE: About GtkTextBuffer and GtkTextTag
- From: <martyn 2 russell bt com>
- To: <mailing harobed org>
- Cc: <gtk-app-devel-list gnome org>, <gtk-list gnome org>
- Subject: RE: About GtkTextBuffer and GtkTextTag
- Date: Thu, 9 Oct 2003 15:10:32 +0100
The "insert-text" signal :
void user_function(GtkTextBuffer * textbuffer, GtkTextIter
*arg1, gchar *arg2, gint arg3, gpointer user_data)
the arg1 is iter of next char, not the char insered.
Ok, so why can't you get the GtkTextIter, copy it, and with the copy use gtk_text_iter_backward_char() to get
the left hand side of the character just entered. Then using these iterators, apply the tag?
If you want the text/character, you should be able to use gtk_text_iter_get_text().
Regards,
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]