summaryrefslogtreecommitdiff
path: root/gtk/font_pango.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/font_pango.c')
-rw-r--r--gtk/font_pango.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/font_pango.c b/gtk/font_pango.c
index 16408530f..bd0eda997 100644
--- a/gtk/font_pango.c
+++ b/gtk/font_pango.c
@@ -107,7 +107,7 @@ unsigned long nsfont_width(struct font_data *font, const char *text,
}
-void nsfont_position_in_string(struct font_data *font, const char *text,
+bool nsfont_position_in_string(struct font_data *font, const char *text,
size_t length, unsigned long x, int *char_offset,
int *pixel_offset)
{
@@ -131,6 +131,8 @@ void nsfont_position_in_string(struct font_data *font, const char *text,
*char_offset = index;
*pixel_offset = PANGO_PIXELS(pos.x);
+
+ return true;
}