Skip to content

Commit

Permalink
Update to gtk-rs 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jbicha committed Apr 21, 2024
1 parent a509517 commit d348bf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/display_sysinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ impl DisplaySysInfo {
}
}

pub fn show_if_necessary<U: gtk::glib::IsA<gtk::CheckButton>, T: WidgetExt>(
pub fn show_if_necessary<U: gtk::prelude::IsA<gtk::CheckButton>, T: WidgetExt>(
check_box: &U,
proc_horizontal_layout: &GraphWidget,
non_graph_layout: &T,
Expand Down

0 comments on commit d348bf0

Please sign in to comment.