From acc69ad91d85859b04c3a24bdd746e22323ded0d Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Fri, 1 Nov 2024 11:34:49 +0100 Subject: [PATCH] desktop/notification: Fix glib enum feature --- src/desktop/notification.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/desktop/notification.rs b/src/desktop/notification.rs index 53991d8a6..8d2360a1e 100644 --- a/src/desktop/notification.rs +++ b/src/desktop/notification.rs @@ -59,8 +59,6 @@ use zbus::zvariant::{DeserializeDict, OwnedValue, SerializeDict, Type, Value}; use super::Icon; use crate::{proxy::Proxy, Error}; -#[cfg_attr(feature = "glib", derive(glib::Enum))] -#[cfg_attr(feature = "glib", enum_type(name = "AshpdNotificationCategory"))] #[derive(Debug, Clone, PartialEq, Eq, Type)] #[zvariant(signature = "s")] /// The content of a notification. @@ -229,7 +227,7 @@ impl FromStr for Priority { #[cfg_attr(feature = "glib", derive(glib::Enum))] #[cfg_attr(feature = "glib", enum_type(name = "AshpdNotificationDisplayHint"))] -#[derive(Debug, Clone, PartialEq, Eq, Type)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Type)] #[zvariant(signature = "s")] /// Ways to display a notification. pub enum DisplayHint { @@ -409,8 +407,6 @@ impl Notification { } } -#[cfg_attr(feature = "glib", derive(glib::Enum))] -#[cfg_attr(feature = "glib", enum_type(name = "AshpdNotificationButtonPurpose"))] #[derive(Debug, Clone, PartialEq, Eq, Type)] #[zvariant(signature = "s")] /// The purpose of a button.