draft header update on page reload

This commit is contained in:
yggverse 2024-09-25 22:19:48 +03:00
parent 8977adab77
commit ca74a29ffa
6 changed files with 72 additions and 10 deletions

View file

@ -2,7 +2,7 @@ mod tab;
use tab::Tab;
use gtk::{prelude::BoxExt, Box, Orientation};
use gtk::{glib::GString, prelude::BoxExt, Box, Orientation};
use std::sync::Arc;
pub struct Main {
@ -51,6 +51,14 @@ impl Main {
}
// Getters
pub fn tab_page_title(&self) -> GString {
self.tab.page_title()
}
pub fn tab_page_description(&self) -> GString {
self.tab.page_description()
}
pub fn widget(&self) -> &Box {
&self.widget
}