Skip to content
Commit cfe35b59 authored by Marius Vlad's avatar Marius Vlad
Browse files

shared/cairo-util: Re-use the PangoContext for layout creation



Rather than creating a new PangoContext each time the menu redraw
handler is triggered re-use it if one was created previously.

All toytoolkit clients do create a layout (and implicitly a
PangoContext) but only those that have menu redraw
handler installed will create a new layout for each redraw of the menu,
effectively creating a new PangoContext each time.

Reported-by: default avatarPekka Paalanen <pekka.paalanen@collabora.com>
Signed-off-by: default avatarMarius Vlad <marius.vlad@collabora.com>
parent 60b307e3
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