5 releases
Uses old Rust 2015
0.2.2 | Jun 2, 2018 |
---|---|
0.2.1 | Jun 1, 2018 |
0.2.0 | May 31, 2018 |
0.1.1 | May 30, 2018 |
0.1.0 | Apr 23, 2018 |
#150 in #icons
32KB
144 lines
GtkIconCache
lib.rs
:
This crate provide a reader for gtk-icon-cache file.
use gtk_icon_cache::*;
let path = "test/caches/icon-theme.cache";
let 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:
Dependencies
~96–345KB