mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
draft status pages
This commit is contained in:
parent
2d750d0572
commit
db3c5366fd
5 changed files with 87 additions and 50 deletions
23
src/app/browser/window/tab/item/page/content/status.rs
Normal file
23
src/app/browser/window/tab/item/page/content/status.rs
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue