Crate gtk_icon_cache [] [src]

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:

Structs

GtkIconCache

GtkIconCache