Libnotify update

This commit is contained in:
Julian Ospald 2017-07-11 01:56:14 +02:00
parent 932fd7180e
commit 162e344bf9
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 6 additions and 6 deletions

View File

@ -3,9 +3,6 @@ use std::convert::From;
use std;
use toml;
#[cfg(feature = "notify")]
use libnotify;
error_chain! {
@ -13,7 +10,6 @@ error_chain! {
Alsa(alsa::Error);
IO(std::io::Error);
Toml(toml::de::Error);
Libnotify(libnotify::errors::Error) #[cfg(feature = "notify")];
}
}

View File

@ -61,6 +61,10 @@ mod notif;
use app_state::*;
#[cfg(feature = "notify")]
use libnotify::functions::*;
#[cfg(feature = "notify")]
use libnotify::manual_functions::*;
@ -69,7 +73,7 @@ fn main() {
// TODO: error handling
#[cfg(feature = "notify")]
libnotify::init("PNMixer-rs").unwrap();
init("PNMixer-rs");
flexi_logger::LogOptions::new()
.log_to_file(false)
@ -84,5 +88,5 @@ fn main() {
gtk::main();
#[cfg(feature = "notify")]
libnotify::uninit();
uninit();
}