GNOME Bugzilla – Bug 689400
st-private: Don't create attr lists if we don't need them
Last modified: 2012-12-03 01:14:24 UTC
See patch. This is one half of preventing extraneous relayouts from being queued. This reqiures the Clutter half of the patch to be useful: bug #689399 .
Created attachment 230370 [details] [review] st-private: Don't create attr lists if we don't need them Decorations are fairly uncommon in gnome-shell, so it's worthwhile to avoid effort creating empty attr lists. This can also help prevent a relayout.
Review of attachment 230370 [details] [review]: Almost ::: src/st/st-private.c @@ +209,3 @@ clutter_text_set_attributes (text, attribs); + g_clear_pointer (&attribs, pango_attr_list_unref); if (attribs) pango_attr_list_unref(); and you avoid the atomic access.
Attachment 230370 [details] pushed as 7e5f1fe - st-private: Don't create attr lists if we don't need them Pushed with suggested changes