From 8bafa0a592e33017ac9d3eb00fcb445285147dc1 Mon Sep 17 00:00:00 2001 From: gabrielfin Date: Sat, 8 Jun 2019 16:17:45 -0300 Subject: [PATCH] [window-buttons] Take into account LOCAL_PATH for fallback icons lookup --- window-buttons-applet/window-buttons-theme.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/window-buttons-applet/window-buttons-theme.vala b/window-buttons-applet/window-buttons-theme.vala index 18ce7a5..fb41eb0 100644 --- a/window-buttons-applet/window-buttons-theme.vala +++ b/window-buttons-applet/window-buttons-theme.vala @@ -166,7 +166,12 @@ namespace WindowWidgets { else theme = "Black"; - string[] paths = {"/usr/share/pixmaps/mate-window-applets/" + theme}; + #if LOCAL_PATH + string[] paths = {"/usr/local/share/pixmaps/mate-window-applets/" + theme}; + #else + string[] paths = {"/usr/share/pixmaps/mate-window-applets/" + theme}; + #endif + load_icons(paths); }