From d348bf050a0f98ea642b4d85e92767458a238a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jeremy=20B=C3=ADcha?= Date: Sun, 21 Apr 2024 12:13:07 -0400 Subject: [PATCH] Update to gtk-rs 0.8 --- Cargo.toml | 3 ++- src/display_sysinfo.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7c401e6..c1e87ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,8 @@ readme = "README.md" keywords = ["GUI", "process", "viewer", "gtk"] [dependencies] -gtk = { version = "0.7", package = "gtk4" } +async-channel = { version = "2.2" } +gtk = { version = "0.8", package = "gtk4" } sysinfo = "0.28.2" libc = "0.2" serde = "1.0" diff --git a/src/display_sysinfo.rs b/src/display_sysinfo.rs index b487148..f850452 100644 --- a/src/display_sysinfo.rs +++ b/src/display_sysinfo.rs @@ -385,7 +385,7 @@ impl DisplaySysInfo { } } -pub fn show_if_necessary, T: WidgetExt>( +pub fn show_if_necessary, T: WidgetExt>( check_box: &U, proc_horizontal_layout: &GraphWidget, non_graph_layout: &T,