Skip to content
Myr

xdg: fail hard if we fail to load an absolute path icon

Before adoption: this commit came in with the history the project adopted, so no landing records it.

I.e. if we fail to load the absolute path, don't try to load it as if it was a relative path.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 0c81785 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:xdg.c+2 added
25 unmodified lines
26 if (name[0] == '/') {27 cairo_surface_t *surf = cairo_image_surface_create_from_png(name);28 if (cairo_surface_status(surf) == CAIRO_STATUS_SUCCESS)29 return surf;3031 return NULL;32 }3334 tll_foreach(themes, theme_it) {35 const struct icon_theme *theme = &theme_it->item;
301 unmodified lines