diff --git a/Cargo.toml b/Cargo.toml index 64ff9bf56..14e3825df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -120,6 +120,6 @@ gtk = "0.18" gdkx11-sys = "0.18" gdkwayland-sys = "0.18.0" x11-dl = "2.21" -zbus = "3" +zbus = "4" png = "0.17" parking_lot = "0.12" diff --git a/src/platform_impl/linux/taskbar.rs b/src/platform_impl/linux/taskbar.rs index cc6fd0619..c086fe920 100644 --- a/src/platform_impl/linux/taskbar.rs +++ b/src/platform_impl/linux/taskbar.rs @@ -3,7 +3,7 @@ use zbus::{ blocking::Connection, fdo::Result, zvariant::{DeserializeDict, SerializeDict, Type}, - MessageBuilder, + Message, }; pub struct TaskbarIndicator { @@ -47,10 +47,10 @@ impl TaskbarIndicator { properties.progress_visible = Some(!matches!(state, ProgressState::None)); } - let signal = MessageBuilder::signal("/", "com.canonical.Unity.LauncherEntry", "Update")? + let signal = Message::signal("/", "com.canonical.Unity.LauncherEntry", "Update")? .build(&(self.app_uri.clone(), properties))?; - self.conn.send_message(signal)?; + self.conn.send(&signal)?; Ok(()) } }