]> Pileus Git - ~andy/gtk/commit - gtk/gtklabel.c
GtkLabel: Rely on the new pango support for context change tracking
authorAlexander Larsson <alexl@redhat.com>
Wed, 5 Dec 2012 13:51:23 +0000 (14:51 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 6 Dec 2012 18:54:05 +0000 (19:54 +0100)
commitbf35c2f044296bfc4d016010adde4bf09a1a311d
treef1921221bd277e098fcc66b1bca141023af28441
parent53e08b58aa157b082cc31f6dc78aee76bc6be1f3
GtkLabel: Rely on the new pango support for context change tracking

Now that Pango tracks changes to the context automatically there is
no need to do it manually in e.g. style-updated or direction-changed,
in fact the only case we have to care about is when we re-create
the PangoContext due to a screen change, so we only have to clear
the layouts in GtkLabel in screen-changed.

This means we're not clearing all the layouts whenever the state changes,
which happens to every widget when the window is unfocused, which helps
performance a lot.

https://bugzilla.gnome.org/show_bug.cgi?id=340066
gtk/gtklabel.c
gtk/gtkwidget.c