1
0
Fork 0
Dieser Commit ist enthalten in:
Ospald, Julian 2017-07-11 15:18:40 +02:00
Ursprung b50ff703ad
Commit 557ebbc93f
2 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -8,9 +8,9 @@ fn main() {
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
// Update the existent notification
n.update("I am another notification", None, None).unwrap();
// Show the update notification
// Show the updated notification
n.show().unwrap();
// We are done, deinit
libnotify::uninit();

Datei anzeigen

@ -12,9 +12,9 @@
//! None);
//! // Show the notification
//! n.show().unwrap();
//! // You can also use the .show() convenience method on the context
//! // Update the existent notification
//! n.update("I am another notification", None, None).unwrap();
//! // Show the update notification
//! // Show the updated notification
//! n.show().unwrap();
//! // We are done, deinit
//! libnotify::uninit();