summaryrefslogtreecommitdiff
path: root/gtk/gtktextview.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-02-10 00:01:54 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-02-10 00:01:54 -0500
commita3a5cf1087278e3e727a74c75f2532bcb14ddca6 (patch)
treef57bf8d9eec815c01d851962087ba7b2d6faa7a7 /gtk/gtktextview.h
parent019dab7c38a0891f494749e9e8fb27c30e8a5f25 (diff)
downloadgtk+-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.h4
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,