Struct pnmixerlib::notif::Notif
[−]
[src]
pub struct Notif { /* fields omitted */ }
An expression of our notification system. Holds all the relevant information needed by Gtk+ callbacks to interact with libnotify.
Methods
impl Notif
[src]
fn new(prefs: &Prefs) -> Result<Self>
Create a new notification instance from the current preferences. This should only be done once at startup. This also initializes the libnotify system.
fn reload(&self, prefs: &Prefs)
Reload the notification instance from the current preferences.
fn show_volume_notif(&self, audio: &Audio) -> Result<()>
Shows a volume notification, e.g. for volume or mute state change.
fn show_text_notif(&self, summary: &str, body: &str) -> Result<()>
Shows a text notification, e.g. for warnings or errors.