diff --git a/src/notifications.rs b/src/notifications.rs index ed0b3a67..c3bf4f87 100644 --- a/src/notifications.rs +++ b/src/notifications.rs @@ -111,7 +111,7 @@ impl NotificationsInterface { summary: String, body: String, actions: Vec, - hints: HashMap, + hints: Hints, expire_timeout: i32, ) -> u32 { u32::from(self.handle_notify( @@ -121,7 +121,7 @@ impl NotificationsInterface { summary, body, actions, - Hints(hints), + hints, expire_timeout, )) } @@ -191,6 +191,7 @@ glib::wrapper! { pub struct Notifications(ObjectSubclass); } +#[derive(zvariant::Type, serde::Deserialize)] struct Hints(HashMap); #[allow(dead_code)]