Add NotificationShowError

This commit is contained in:
Mika Attila
2015-11-03 00:49:12 +01:00
parent 3dfc03aebd
commit 94bb46164f
2 changed files with 27 additions and 7 deletions

View File

@@ -5,8 +5,7 @@ fn main() {
panic!("{}", e);
});
let body_text = Some("This is the optional body text.");
let n = notify.new_notification("This is the summary.",
body_text,
None).unwrap_or_else(|e| panic!("{}", e));
n.show().ok().expect("Failed to show notification");
let n = notify.new_notification("This is the summary.", body_text, None)
.unwrap_or_else(|e| panic!("{}", e));
n.show().unwrap_or_else(|e| panic!("{}", e));
}