themedicon: correctly fallback to symbolic icons
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 13 Aug 2013 13:16:48 +0000 (15:16 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 13 Aug 2013 15:19:24 +0000 (17:19 +0200)
commita5fd296cc8583de6ac10c5a6adc84751495ad7e1
tree096292e37b6de2b34ad2a351dfba723ba11a0ae0
parentaa4b9429b43e125a05c4c1c0d7b168c13efbb2ad
themedicon: correctly fallback to symbolic icons

When an icon is requested as symbolic, our generic fallback algorithm
uses fullcolor icons when the specified icon name is not found, treating
the "-symbolic" suffix as another component of the icon name.

Change the algorithm to check beforehand if the icon is symbolic, remove
the suffix if so, and re-add it at the end for all the generated icon
names.

https://bugzilla.gnome.org/show_bug.cgi?id=680926
gio/gthemedicon.c