icontheme: Keep a single string set
authorMatthias Clasen <mclasen@redhat.com>
Sat, 14 Jan 2023 01:52:30 +0000 (20:52 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 14 Jan 2023 05:14:43 +0000 (00:14 -0500)
commit7c1a0e0c153ff99a0f2bbb82e8d3ffd9a96d835e
tree3cdd3eb5754ac37f882cd799ce89455812b2cc07
parent19bb043a8506e874e819957a646c7ca47feb74a1
icontheme: Keep a single string set

Instead of keeping a GtkStringSet per IconTheme,
just make one for the whole GtkIconTheme.

This avoids loops of the themes in some places, and
due to the overlap in icon names between the themes,
it reduces the amount of memory we use for the icon
names with Adwaita+hicolor from 5+4 chunks to 6 chunks.
gtk/gtkicontheme.c