icontheme: Add LRU cache back
authorTimm Bäder <mail@baedert.org>
Sun, 1 Sep 2019 11:25:44 +0000 (13:25 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 9 Sep 2019 15:36:27 +0000 (17:36 +0200)
commit53132d023595ec8d4767207f5616d3989ef9a5ef
treef5ae86bb763a948a17ec735fce01e7965aa3d62d
parent32bed349354e067098782b825b2f7d7e9d96a464
icontheme: Add LRU cache back

Add a cache of icon infos that we keep around a little longer, to avoid
loading icons from disk that only exist for a short amount of time (e.g.
during one frame of a cell renderer snapshot).

We make sure recently used items are kept alive by just adding them to
the cache on lookup.
gtk/gtkicontheme.c