diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-02-10 00:01:54 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-02-10 00:01:54 -0500 |
commit | a3a5cf1087278e3e727a74c75f2532bcb14ddca6 (patch) | |
tree | f57bf8d9eec815c01d851962087ba7b2d6faa7a7 /gtk/gtktextview.h | |
parent | 019dab7c38a0891f494749e9e8fb27c30e8a5f25 (diff) | |
download | gtk+-a3a5cf1087278e3e727a74c75f2532bcb14ddca6.tar.gz |
text view: Improve tag pointer tracking
A problem that has been observed in polari is that links in tags
are clickable all the way into the margin. This problem is caused
by gtk_text_view_get_iter_at_position ignoring the return value
of pango_layout_xy_to_index. Instead, pass it back as a boolean
return value. This is technically an API break, but we've allowed
ourselves to change return types from void to gboolean before.
Diffstat (limited to 'gtk/gtktextview.h')
-rw-r--r-- | gtk/gtktextview.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h index 432e7b786c..0cf15c6f19 100644 --- a/gtk/gtktextview.h +++ b/gtk/gtktextview.h @@ -259,12 +259,12 @@ void gtk_text_view_get_iter_location (GtkTextView *text_view, const GtkTextIter *iter, GdkRectangle *location); GDK_AVAILABLE_IN_ALL -void gtk_text_view_get_iter_at_location (GtkTextView *text_view, +gboolean gtk_text_view_get_iter_at_location (GtkTextView *text_view, GtkTextIter *iter, gint x, gint y); GDK_AVAILABLE_IN_ALL -void gtk_text_view_get_iter_at_position (GtkTextView *text_view, +gboolean gtk_text_view_get_iter_at_position (GtkTextView *text_view, GtkTextIter *iter, gint *trailing, gint x, |