Report (and free) errors while loading icons
This commit is contained in:
parent
12a6faa811
commit
95b91ebb10
|
@ -234,6 +234,11 @@ DesktopIcon * desktopicon_new_application(Desktop * desktop, char const * path)
|
||||||
DESKTOPICON_ICON_SIZE, DESKTOPICON_ICON_SIZE,
|
DESKTOPICON_ICON_SIZE, DESKTOPICON_ICON_SIZE,
|
||||||
&error);
|
&error);
|
||||||
string_delete(buf);
|
string_delete(buf);
|
||||||
|
if(error != NULL)
|
||||||
|
{
|
||||||
|
desktop_error(NULL, error->message, 1);
|
||||||
|
g_error_free(error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(image == NULL)
|
if(image == NULL)
|
||||||
image = gtk_icon_theme_load_icon(desktop_get_theme(desktop),
|
image = gtk_icon_theme_load_icon(desktop_get_theme(desktop),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user