]> Pileus Git - ~andy/gtk/commit
Reuse rendered symbolic icons
authorAlexander Larsson <alexl@redhat.com>
Mon, 26 Nov 2012 12:52:05 +0000 (13:52 +0100)
committerAlexander Larsson <alexl@redhat.com>
Fri, 30 Nov 2012 10:33:26 +0000 (11:33 +0100)
commitcfdc68db5cbfa2ec0b805a08945e6e48f20b089c
treea8ad1528c627c7f9665b6baeae393cac6e4a68c3
parent92e904a25710a00b8f1afb0e33a69680712d0c69
Reuse rendered symbolic icons

With the previous commit all loads of the same icon will share a single
GtkIconInfo, which typicallty means the pixbuf is shared via Info->pixbuf.

However, atm we don't share symbolic icons, which causes these to be re-read
and re-parsed every time. This is especially bad if the icon is used many times
in some form of list. So, we cache the pixbufs and reuse them.

https://bugzilla.gnome.org/show_bug.cgi?id=689081
gtk/gtkicontheme.c