Skip to content

Commit

Permalink
desktop/notification: Fix glib enum feature
Browse files Browse the repository at this point in the history
  • Loading branch information
bilelmoussaoui committed Nov 1, 2024
1 parent 7aff974 commit 323612e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/desktop/notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 323612e

Please sign in to comment.