From c412548e6ae9132dcdfe044acda886d59af762f7 Mon Sep 17 00:00:00 2001 From: Hellx2 Date: Sat, 8 Jun 2024 18:11:30 +1000 Subject: [PATCH] Update Cargo.toml to use GTK 4.4, and change it to use an older version of a function. --- Cargo.toml | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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."),