draft status pages

This commit is contained in:
yggverse 2024-10-15 18:17:41 +03:00
parent 2d750d0572
commit db3c5366fd
5 changed files with 87 additions and 50 deletions

View file

@ -0,0 +1,23 @@
mod error;
use error::Error;
use adw::StatusPage;
pub struct Status {
gobject: StatusPage,
}
impl Status {
// Construct
pub fn new_error(title: &str, description: &str) -> Self {
Self {
gobject: Error::new(title, description),
}
}
// Getters
pub fn gobject(&self) -> &StatusPage {
&self.gobject
}
}