diff --git a/Cargo.toml b/Cargo.toml index c9295d3..dd69776 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,4 +6,4 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -gtk = { version = "0.8.1", package = "gtk4", features = ["v4_10"] } +gtk = { version = "0.8.1", package = "gtk4", features = ["v4_4"] } diff --git a/src/main.rs b/src/main.rs index 07c59d3..8319317 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,7 +13,7 @@ fn main() -> glib::ExitCode { app.connect_startup(|_| { let provider = CssProvider::new(); - provider.load_from_string(include_str!("style.css")); + provider.load_from_data(include_str!("style.css")); gtk::style_context_add_provider_for_display( &Display::default().expect("Could not connect to a display."),