we need to monitor each theme dir too
xdg-icon-resource creates and deletes a file called .xdg-icon-resource-dummy in each dir. SVN revision: 54962
This commit is contained in:
parent
cfe7ae6528
commit
04f61e115b
|
@ -1962,11 +1962,30 @@ efreet_icon_changes_monitor_add(const char *path)
|
||||||
char rp[PATH_MAX];
|
char rp[PATH_MAX];
|
||||||
|
|
||||||
if (!realpath(path, rp)) return;
|
if (!realpath(path, rp)) return;
|
||||||
|
if (!ecore_file_is_dir(rp)) return;
|
||||||
if (eina_hash_find(change_monitors, rp)) return;
|
if (eina_hash_find(change_monitors, rp)) return;
|
||||||
eina_hash_add(change_monitors, rp,
|
eina_hash_add(change_monitors, rp,
|
||||||
ecore_file_monitor_add(rp,
|
ecore_file_monitor_add(rp,
|
||||||
efreet_icon_changes_cb,
|
efreet_icon_changes_cb,
|
||||||
NULL));
|
NULL));
|
||||||
|
|
||||||
|
if (ecore_file_is_dir(rp))
|
||||||
|
{
|
||||||
|
Eina_Iterator *it;
|
||||||
|
const char *ent;
|
||||||
|
|
||||||
|
it = eina_file_ls(rp);
|
||||||
|
if (!it) return;
|
||||||
|
EINA_ITERATOR_FOREACH(it, ent)
|
||||||
|
{
|
||||||
|
if (!realpath(ent, rp)) continue;
|
||||||
|
if (!ecore_file_is_dir(rp)) continue;
|
||||||
|
eina_hash_add(change_monitors, rp,
|
||||||
|
ecore_file_monitor_add(rp,
|
||||||
|
efreet_icon_changes_cb,
|
||||||
|
NULL));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue