summaryrefslogtreecommitdiff
path: root/gtk/gtktext.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>1998-02-27 16:17:07 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-02-27 16:17:07 +0000
commita36ffb12a5e730c6f811bdf4c53ad0f1ffc95161 (patch)
treef22b3c4ee9b28b802f70ba7a342a5fa949100bac /gtk/gtktext.h
parent50cc709f77bf5884bad91a697a26cca39e4b7d53 (diff)
downloadgtk+-a36ffb12a5e730c6f811bdf4c53ad0f1ffc95161.tar.gz
Filling in the gaps.
-owt
Diffstat (limited to 'gtk/gtktext.h')
-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
}