~steef/snixembed

ce509d426748468b85f468198e67c80645d3f240 — Eugene Pakhomov 3 months ago aa42dde master 0.3.2
Fix empty icons by forcibly rescanning the theme
1 files changed, 8 insertions(+), 1 deletions(-)

M src/proxyicon.vala
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)) {