Skip to content

Commit

Permalink
refactor: update gtk/glib, remove glib channels
Browse files Browse the repository at this point in the history
This is a major refactor which updates GTK, GLib and GTK Layer Shell to their latest versions.

GLib channels, previously used for receiving events on the GLib Main Context thread have been deprecated and a new method for running Futures on the main thread has been added instead. This commit also replaces all the deprecated code with this.

As part of the above, a bug was uncovered related to creating the GLib main context inside the Tokio runtime. Spawning of Tokio tasks has been refactored to fix this.
  • Loading branch information
JakeStanger committed Dec 18, 2023
1 parent 2c2f1c1 commit bea442e
Show file tree
Hide file tree
Showing 39 changed files with 424 additions and 463 deletions.
134 changes: 73 additions & 61 deletions Cargo.lock

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

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ workspaces = ["futures-util"]

[dependencies]
# core
gtk = "0.17.0"
gtk-layer-shell = "0.6.0"
glib = "0.17.10"
gtk = "0.18.1"
gtk-layer-shell = "0.8.0"
glib = "0.18.4"
tokio = { version = "1.35.0", features = [
"macros",
"rt-multi-thread",
Expand Down
Loading

0 comments on commit bea442e

Please sign in to comment.