#gtk #icon #cache

gtk-icon-cache

A gtk-icon-cache file reader

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

#95 in Caching

25 downloads per month

GPL-3.0 license

32KB
144 lines

GtkIconCache crates.io crates.io docs


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

~155KB