Store notifications

This commit is contained in:
Ian Douglas Scott 2021-09-08 15:18:13 -07:00
parent 2396ebbaa9
commit 17df83e611
3 changed files with 46 additions and 22 deletions

View file

@ -1,9 +1,5 @@
use cascade::cascade;
use gtk4::{
glib::{self, clone},
prelude::*,
subclass::prelude::*,
};
use gtk4::{glib, prelude::*, subclass::prelude::*};
use crate::deref_cell::DerefCell;
@ -54,4 +50,8 @@ impl NotificationPopover {
fn inner(&self) -> &NotificationPopoverInner {
NotificationPopoverInner::from_instance(self)
}
pub fn set_body(&self, body: &str) {
self.inner().label.set_label(body);
}
}