chore: remove gtk4 dev-dependency bloating builds

This commit is contained in:
Michael Aaron Murphy 2025-12-02 20:27:42 +01:00
parent 702ea3ed5c
commit 7bb19f1b50
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
3 changed files with 1 additions and 72 deletions

View file

@ -1,25 +1,7 @@
use cosmic_freedesktop_icons::lookup;
use gtk4::{IconLookupFlags, IconTheme, TextDirection};
use speculoos::prelude::*;
use std::path::PathBuf;
#[test]
fn gtk_lookup() {
gtk4::init().unwrap();
let theme = IconTheme::new();
let x = theme.lookup_icon(
"firefox",
&[],
24,
1,
TextDirection::None,
IconLookupFlags::empty(),
);
assert!(x.icon_name().is_some())
}
// Linicon sometimes fails with theme that have unknown parents
// This test only ensure we are running the correct function in the benchmarks
// And results are identical.