diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-12-08 21:25:08 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-12-08 21:25:08 +0000 |
commit | 057ab5a4dfb083878ee075a92ece949870aa7c56 (patch) | |
tree | b6cdd0dbf888a0096b90d6f24a8c1eda4ed49d83 /gtk/gtktextview.h | |
parent | 456ebcea28c2598882069d97381ff7e223fc4a99 (diff) | |
download | gtk+-057ab5a4dfb083878ee075a92ece949870aa7c56.tar.gz |
Fix #111031, reported by Padraig O'Briain:
2004-12-08 Matthias Clasen <mclasen@redhat.com>
Fix #111031, reported by Padraig O'Briain:
* gtk/gtktextlayout.h:
* gtk/gtktextlayout.c (gtk_text_layout_get_iter_at_position):
Add a variant of gtk_text_layout_get_iter_at_pixel() which
returns the character at the position, not the closest
cursor position.
* gtk/gtktextview.h:
* gtk/gtktextview.c (gtk_text_view_get_iter_at_position):
Add a variant of gtk_text_view_get_iter_at_location() which
returns the character at the position, not the closest
cursor position.
Diffstat (limited to 'gtk/gtktextview.h')
-rw-r--r-- | gtk/gtktextview.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h index dca3881a28..3ad5cd6feb 100644 --- a/gtk/gtktextview.h +++ b/gtk/gtktextview.h @@ -250,6 +250,11 @@ void gtk_text_view_get_iter_at_location (GtkTextView *text_view, GtkTextIter *iter, gint x, gint y); +void gtk_text_view_get_iter_at_position (GtkTextView *text_view, + GtkTextIter *iter, + gint *trailing, + gint x, + gint y); void gtk_text_view_get_line_yrange (GtkTextView *text_view, const GtkTextIter *iter, gint *y, |