From 83346830688525a287489cc791299cbc945d4fc4 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 2 Jan 2005 03:58:21 +0000 Subject: [project @ 2005-01-02 03:58:20 by jmb] xcalloc/xrealloc/xstrdup-purge - Lose remaining calls (and purge the relevant functions from utils.c) svn path=/import/netsurf/; revision=1419 --- gtk/font_pango.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gtk') 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; } -- cgit v1.2.3