summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.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/gtktextlayout.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/gtktextlayout.h')
-rw-r--r--gtk/gtktextlayout.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/gtk/gtktextlayout.h b/gtk/gtktextlayout.h
index 2565b648cb..ba5318cf21 100644
--- a/gtk/gtktextlayout.h
+++ b/gtk/gtktextlayout.h
@@ -345,16 +345,16 @@ void gtk_text_layout_get_line_at_y (GtkTextLayout *layout,
gint y,
gint *line_top);
GDK_AVAILABLE_IN_ALL
-void gtk_text_layout_get_iter_at_pixel (GtkTextLayout *layout,
- GtkTextIter *iter,
- gint x,
- gint y);
-GDK_AVAILABLE_IN_ALL
-void gtk_text_layout_get_iter_at_position (GtkTextLayout *layout,
- GtkTextIter *iter,
- gint *trailing,
- gint x,
- gint y);
+gboolean gtk_text_layout_get_iter_at_pixel (GtkTextLayout *layout,
+ GtkTextIter *iter,
+ gint x,
+ gint y);
+GDK_AVAILABLE_IN_ALL
+gboolean gtk_text_layout_get_iter_at_position (GtkTextLayout *layout,
+ GtkTextIter *iter,
+ gint *trailing,
+ gint x,
+ gint y);
GDK_AVAILABLE_IN_ALL
void gtk_text_layout_invalidate (GtkTextLayout *layout,
const GtkTextIter *start,