gtk-icon-cache 0.1.0

A gtk-icon-cache file reader
Documentation

This crate provide a reader for gtk-icon-cache file.

use gtk_icon_cache::*;

let path = "test/caches/icon-theme.cache".parse().unwrap();
let mut icon_cache = GtkIconCache::with_file_path(path).unwrap();

// lookup for `firefox`
let dirs = icon_cache.lookup("firefox").unwrap();

// icon should be found in apps/64
assert!(dirs.contains(&&"apps/64".to_string()));

See: