diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-01-06 22:34:23 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-01-06 22:34:23 +0000 |
commit | bc70dc94bf6392a7503ebd81092494631a272c44 (patch) | |
tree | b6d9d87acf4be094a3a9401f86fa54a929b1a6f8 /gtk/gtktextbuffer.h | |
parent | 41f2f7974e8d5ccd52543d82b92e1ff2c7ce3c2d (diff) | |
download | gtk+-bc70dc94bf6392a7503ebd81092494631a272c44.tar.gz |
Implement a utility function proposed in #102534:
2003-01-06 Matthias Clasen <maclas@gmx.de>
Implement a utility function proposed in #102534:
* gtk/gtktextbtree.h:
* gtk/gtktextbtree.c (_gtk_text_btree_select_range): New function.
(_gtk_text_btree_place_cursor): Now a simple wrapper around
_gtk_text_btree_select_range().
* gtk/gtktextbuffer.h:
* gtk/gtktextbuffer.c (gtk_text_buffer_select_range): New function.
(gtk_text_buffer_place_cursor): Now a simple wrapper around
gtk_text_buffer_select_range().
Diffstat (limited to 'gtk/gtktextbuffer.h')
-rw-r--r-- | gtk/gtktextbuffer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtktextbuffer.h b/gtk/gtktextbuffer.h index 0a5af63138..6f4a4728ca 100644 --- a/gtk/gtktextbuffer.h +++ b/gtk/gtktextbuffer.h @@ -253,9 +253,12 @@ void gtk_text_buffer_delete_mark_by_name (GtkTextBuffer *buffer, GtkTextMark* gtk_text_buffer_get_insert (GtkTextBuffer *buffer); GtkTextMark* gtk_text_buffer_get_selection_bound (GtkTextBuffer *buffer); -/* efficiently move insert and selection_bound to same location */ +/* efficiently move insert and selection_bound at the same time */ void gtk_text_buffer_place_cursor (GtkTextBuffer *buffer, const GtkTextIter *where); +void gtk_text_buffer_select_range (GtkTextBuffer *buffer, + const GtkTextIter *ins, + const GtkTextIter *bound); |