Skip to content

Commit

Permalink
Update Cargo.toml to use GTK 4.4, and change it to use an older versi…
Browse files Browse the repository at this point in the history
…on of a function.
  • Loading branch information
Hellx2 committed Jun 8, 2024
1 parent e163473 commit c412548
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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."),
Expand Down

0 comments on commit c412548

Please sign in to comment.