summaryrefslogtreecommitdiff
path: root/frontends/gtk/layout_pango.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-02-06 00:37:08 +0000
committerVincent Sanders <vince@kyllikki.org>2017-02-11 13:57:07 +0000
commit78d601eb76c796c038f42c2b9f10e4e591272271 (patch)
tree17aad8a88df9fd22533a4d11ebad7929b61ef56c /frontends/gtk/layout_pango.c
parent7d660561cc9562731429ca06904b5e5711e90e27 (diff)
downloadnetsurf-78d601eb76c796c038f42c2b9f10e4e591272271.tar.gz
netsurf-78d601eb76c796c038f42c2b9f10e4e591272271.tar.bz2
Update GTK plotters to use new API
Diffstat (limited to 'frontends/gtk/layout_pango.c')
-rw-r--r--frontends/gtk/layout_pango.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/gtk/layout_pango.c b/frontends/gtk/layout_pango.c
index 7c7190982..bad57d684 100644
--- a/frontends/gtk/layout_pango.c
+++ b/frontends/gtk/layout_pango.c
@@ -222,7 +222,7 @@ nsfont_split(const plot_font_style_t *fstyle,
* \param fstyle plot style for this text
* \return true on success, false on error and error reported
*/
-bool nsfont_paint(int x, int y, const char *string, size_t length,
+nserror nsfont_paint(int x, int y, const char *string, size_t length,
const plot_font_style_t *fstyle)
{
PangoFontDescription *desc;
@@ -230,7 +230,7 @@ bool nsfont_paint(int x, int y, const char *string, size_t length,
PangoLayoutLine *line;
if (length == 0)
- return true;
+ return NSERROR_OK;
layout = pango_cairo_create_layout(current_cr);
@@ -247,7 +247,7 @@ bool nsfont_paint(int x, int y, const char *string, size_t length,
g_object_unref(layout);
- return true;
+ return NSERROR_OK;
}