diff options
author | Owen Taylor <otaylor@src.gnome.org> | 1998-02-27 16:17:07 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-02-27 16:17:07 +0000 |
commit | a36ffb12a5e730c6f811bdf4c53ad0f1ffc95161 (patch) | |
tree | f22b3c4ee9b28b802f70ba7a342a5fa949100bac /gtk/gtktext.h | |
parent | 50cc709f77bf5884bad91a697a26cca39e4b7d53 (diff) | |
download | gtk+-a36ffb12a5e730c6f811bdf4c53ad0f1ffc95161.tar.gz |
Filling in the gaps.
-owt
Diffstat (limited to 'gtk/gtktext.h')
-rw-r--r-- | gtk/gtktext.h | 7 |
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 } |