[niepce] rust+notification: handle LabelChanged in the C glue code



commit b66617deccc0c1e08a1fb0636e4d03da1944be4b
Author: Hubert Figuière <hub figuiere net>
Date:   Mon Sep 25 17:28:06 2017 -0400

    rust+notification: handle LabelChanged in the C glue code

 src/engine/library/notification.rs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/library/notification.rs b/src/engine/library/notification.rs
index cda394d..61d4c1c 100644
--- a/src/engine/library/notification.rs
+++ b/src/engine/library/notification.rs
@@ -159,7 +159,8 @@ pub extern "C" fn engine_library_notification_get_id(n: *const Notification) ->
 #[no_mangle]
 pub extern "C" fn engine_library_notification_get_label(n: *const Notification) -> *const Label {
     match unsafe { n.as_ref() } {
-        Some(&Notification::AddedLabel(ref l)) => l,
+        Some(&Notification::AddedLabel(ref l)) |
+        Some(&Notification::LabelChanged(ref l)) => l,
         _ => unreachable!(),
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]