From b77584e0a0ef975e8a976865452a9e7df28c2459 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 9 Jul 2017 19:33:32 +0200 Subject: [PATCH] Add Notification::clear_hints() --- src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index cfd79d3e..40551038 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -351,6 +351,13 @@ impl<'a> Notification<'a> { pixbuf); } } + + /// Clears all hints from the notification. + pub fn clear_hints(&self) { + unsafe { + sys::notify_notification_clear_hints(self.handle); + } + } }