feat: implement set_category

This commit is contained in:
2026-09-30 02:14:37 +02:00
parent 606af59a86
commit ce6f127f30

View File

@@ -185,8 +185,11 @@ impl<'a> Notification {
/// Sets the category of this notification. /// Sets the category of this notification.
/// ///
/// This can be used by the notification server to filter or display the data in a certain way /// This can be used by the notification server to filter or display the data in a certain way
pub fn set_category(&mut self, category: &str) { pub fn set_category(&mut self, category: &str) -> Result<(), std::ffi::NulError> {
todo!(); let category_c = std::ffi::CString::new(category)?;
unsafe { notify_notification_set_category(self.inner, category_c.as_ptr()) };
Ok(())
} }
/// Sets a hint for key with value value /// Sets a hint for key with value value