From c1f9c9f85bf9f400e44477304e5eb135f1183ac9 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 21 Nov 2021 23:01:53 -0500 Subject: Add flags to serialize and deserialize This gives us some room to add more things to these apis, e.g. a way to store not just the input part of a layout, but also the output. --- utils/viewer-render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/viewer-render.c b/utils/viewer-render.c index 23e13c71..d2969da3 100644 --- a/utils/viewer-render.c +++ b/utils/viewer-render.c @@ -115,7 +115,7 @@ make_layout(PangoContext *context, if (!g_file_get_contents (file_arg, &text, &len, &error)) fail ("%s\n", error->message); bytes = g_bytes_new_take (text, size); - layout = pango_layout_deserialize (context, bytes, &error); + layout = pango_layout_deserialize (context, bytes, PANGO_LAYOUT_DESERIALIZE_DEFAULT, &error); if (!layout) fail ("%s\n", error->message); g_bytes_unref (bytes); -- cgit v1.2.1