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/gtktextlayout.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/gtktextlayout.h')
-rw-r--r-- | gtk/gtktextlayout.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h index f42a7c3c0a..0e02b1294a 100644 --- a/gtk/gtktextlayout.h +++ b/gtk/gtktextlayout.h @@ -319,6 +319,11 @@ void gtk_text_layout_get_iter_at_pixel (GtkTextLayout *layout, GtkTextIter *iter, gint x, gint y); +void gtk_text_layout_get_iter_at_position (GtkTextLayout *layout, + GtkTextIter *iter, + gint *trailing, + gint x, + gint y); void gtk_text_layout_invalidate (GtkTextLayout *layout, const GtkTextIter *start, const GtkTextIter *end); |