Switch to gir
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user