M src/proxyicon.vala => src/proxyicon.vala +8 -1
@@ 84,7 84,14 @@ class ProxyIcon : Object {
theme.append_search_path(path);
}
}
- theme.rescan_if_needed();
+ if (!theme.rescan_if_needed() && !theme.has_icon(name)) {
+ /* Forcibly trigger a rescan in case the icon file was added
+ * after the theme has been scanned (new files don't change
+ * mtime if they're in a subdirectory). */
+ string[] paths;
+ theme.get_search_path(out paths);
+ theme.set_search_path(paths);
+ }
set_icon_name(name);
if (theme.has_icon(name)) {