]> Pileus Git - ~andy/gtk/commit
gtk: Fix crasher when loading symbolic icons
authorBastien Nocera <hadess@hadess.net>
Wed, 27 Oct 2010 16:47:08 +0000 (17:47 +0100)
committerBastien Nocera <hadess@hadess.net>
Wed, 27 Oct 2010 16:52:30 +0000 (17:52 +0100)
commit94c8390ad76ce1586f37159a84faf666ba8c4cc8
treefd50ebb00accec35e8f5ed9383577deca149bf5a
parentcb287cde00315146bd137d32fcea10c064932186
gtk: Fix crasher when loading symbolic icons

If the style didn't include symbolic colors for either success,
warning or error, gtk_icon_info_load_symbolic_for_style() would crash.

Instead, make sure we don't try to use the colors if they're not
available, and fallback on default colors inside
_gtk_icon_info_load_symbolic_internal().
gtk/gtkicontheme.c