Commit 37d413cf authored by Matthias Clasen's avatar Matthias Clasen
Browse files

pango-view: Deserialize context too

This lets us transfer things like base gravity
from layout-editor to pango-view.
parent 8d680a69
......@@ -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, PANGO_LAYOUT_DESERIALIZE_DEFAULT, &error);
layout = pango_layout_deserialize (context, bytes, PANGO_LAYOUT_DESERIALIZE_CONTEXT, &error);
if (!layout)
fail ("%s\n", error->message);
g_bytes_unref (bytes);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment