Skip to content
Myr

icon: handle absolute paths

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

authored by Daniel Eklöf · committed by Daniel Eklöf · parent fd101c6 · Browse files · 1 file+6 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:xdg.c+6 added
21 unmodified lines
22{23 if (name == NULL)24 return NULL;2526 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;30 }3132 tll_foreach(themes, theme_it) {33 const struct icon_theme *theme = &theme_it->item;34 LOG_DBG("looking for %s in %s", name, theme->path);35
291 unmodified lines