Commit 8e8c4925 authored by Sean Davis's avatar Sean Davis 🕶

Handle missing image-missing icon, free and reinit error (bug 11568)

parent a89ce40f
......@@ -723,13 +723,14 @@ appearance_settings_load_icon_themes (preview_data *pd)
{
if (gtk_icon_theme_has_icon (icon_theme, preview_icons[p]))
icon = gtk_icon_theme_load_icon (icon_theme, preview_icons[p], 16, 0, &error);
else
else if (gtk_icon_theme_has_icon (icon_theme, "image-missing"))
icon = gtk_icon_theme_load_icon (icon_theme, "image-missing", 16, 0, &error);
if (!icon)
{
g_warning ("Couldn't load icon: %s", error->message);
g_error_free (error);
error = NULL;
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment