summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/gtktext.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtktext.h b/gtk/gtktext.h
index c8a07d5f9c..7ae0cd12fc 100644
--- a/gtk/gtktext.h
+++ b/gtk/gtktext.h
@@ -197,6 +197,13 @@ gint gtk_text_backward_delete (GtkText *text,
gint gtk_text_forward_delete (GtkText *text,
guint nchars);
+gchar * gtk_text_get_chars (GtkText *text,
+ guint index,
+ guint nchars);
+
+#define GTK_TEXT_INDEX(t, index) \
+ ((index) < (t)->gap_position ? (t)->text[index] : \
+ (t)->text[(index) + (t)->gap_size])
#ifdef __cplusplus
}