diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-11-21 23:01:53 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-11-24 19:57:58 -0500 |
commit | c1f9c9f85bf9f400e44477304e5eb135f1183ac9 (patch) | |
tree | 76b58ba908a57ee66e513cf3965161ed7fe70977 /utils/viewer-render.c | |
parent | 12a46f672c5fb5c6232218f02018c30cd44a16e2 (diff) | |
download | pango-c1f9c9f85bf9f400e44477304e5eb135f1183ac9.tar.gz |
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.
Diffstat (limited to 'utils/viewer-render.c')
-rw-r--r-- | utils/viewer-render.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |