Skip to content

Commit

Permalink
Merge branch 'talonvoice/zbus' into zbus
Browse files Browse the repository at this point in the history
  • Loading branch information
iovxw committed Feb 12, 2024
2 parents 115e8dd + ce8017c commit 7481bd8
Show file tree
Hide file tree
Showing 11 changed files with 741 additions and 904 deletions.
11 changes: 5 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ categories = ["api-bindings"]
license = "Unlicense"

[dependencies]
dbus = { version = "0.9" }
dbus-tree = { version = "0.9" }
thiserror = "1.0"

[build-dependencies]
dbus-codegen = { version = "0.9" }
futures = { version = "0.3.28", default-features = false }
serde = { version = "1.0.188", features = ["derive"] }
thiserror = "1.0.47"
tokio = { version = "1.32.0", features = ["rt", "macros"] }
zbus = { version = "3.14.1", features = ["tokio"], default-features = false }
56 changes: 0 additions & 56 deletions build.rs

This file was deleted.

8 changes: 3 additions & 5 deletions examples/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,14 @@ impl ksni::Tray for MyTray {
}

fn main() {
let service = ksni::TrayService::new(MyTray {
let handle = ksni::spawn(MyTray {
selected_option: 0,
checked: false,
});
let handle = service.handle();
service.spawn();
}).unwrap();

std::thread::sleep(std::time::Duration::from_secs(5));
// We can modify the handle
handle.update(|tray: &mut MyTray| {
let _ = handle.update(|tray: &mut MyTray| {
tray.checked = true;
});
// Run forever
Expand Down
38 changes: 0 additions & 38 deletions src/dbus_ext.rs

This file was deleted.

Loading

0 comments on commit 7481bd8

Please sign in to comment.