diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2018-08-23 14:39:54 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2019-06-10 19:40:31 +0300 |
commit | b617fc013681f3c2a9b6f49fa6e2af8261bf99c7 (patch) | |
tree | 4144695055ea051cddfc0e6341537d053fc72186 /ui/src/components/notifications.rs | |
parent | ad5d2353e835b0ec62453bc2462ada7b06a11bf0 (diff) |
ThreadView and compact listing
closes #3
Diffstat (limited to 'ui/src/components/notifications.rs')
-rw-r--r-- | ui/src/components/notifications.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/src/components/notifications.rs b/ui/src/components/notifications.rs index d659b8f0..dfab70bb 100644 --- a/ui/src/components/notifications.rs +++ b/ui/src/components/notifications.rs @@ -27,6 +27,7 @@ use notify_rust::Notification as notify_Notification; use super::*; /// Passes notifications to the OS using the XDG specifications. +#[derive(Debug)] pub struct XDGNotifications {} impl fmt::Display for XDGNotifications { @@ -38,7 +39,7 @@ impl fmt::Display for XDGNotifications { impl Component for XDGNotifications { fn draw(&mut self, _grid: &mut CellBuffer, _area: Area, _context: &mut Context) {} - fn process_event(&mut self, event: &UIEvent, _context: &mut Context) { + fn process_event(&mut self, event: &UIEvent, _context: &mut Context) -> bool { if let UIEventType::Notification(ref t) = event.event_type { notify_Notification::new() .summary("Refresh Event") @@ -47,6 +48,7 @@ impl Component for XDGNotifications { .show() .unwrap(); } + false } fn set_dirty(&mut self) {} } |