Switch to gir

This commit is contained in:
2017-07-10 23:21:16 +02:00
committed by Ospald, Julian
parent 965a64aa55
commit 13850652a7
17 changed files with 663 additions and 378 deletions

View File

@@ -2,11 +2,10 @@ extern crate libnotify;
fn main() {
// Init libnotify
libnotify::init("myapp").unwrap();
libnotify::init("myapp");
// Create a new notification and show it
let n =
libnotify::Notification::new("Summary", Some("Optional Body"), None)
.unwrap();
libnotify::Notification::new("Summary", Some("Optional Body"), None);
// Show the notification
n.show().unwrap();
// You can also use the .show() convenience method on the context