Skip to content

Commit

Permalink
Removes gtk4 >= 4.12 dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Jan 14, 2025
1 parent a336da2 commit ef161bd
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 36 deletions.
36 changes: 2 additions & 34 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition = "2021"
rust-version = "1.80"

[dependencies]
envir = "1.0"
human-panic = "2.0"
notify = "8.0"
pulldown-cmark = "0.12"
Expand All @@ -20,10 +19,14 @@ relm4-components = "0.9"
version = "0.4"
default-features = false

[dependencies.envir]
version = "1.0"
default-features = false
features = ["dotenv"]

[dependencies.gtk]
package = "gtk4"
version = "0.9"
features = ["v4_12"]

[dependencies.log]
version = "0.4"
Expand Down
2 changes: 2 additions & 0 deletions src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ impl relm4::Component for Model {
self.count += 1;
}
Msg::Clear => {
use relm4::RelmRemoveAllExt as _;

widgets.list_box.remove_all();
self.count = 0;
}
Expand Down
2 changes: 2 additions & 0 deletions src/widgets/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ impl Model {
}

fn clear(&mut self, widgets: &ModelWidgets) {
use relm4::RelmRemoveAllExt as _;

widgets.list_box.remove_all();
self.children = Vec::new();
}
Expand Down

0 comments on commit ef161bd

Please sign in to comment.