implement separated mods for navigation widgets

This commit is contained in:
yggverse 2024-10-12 03:53:52 +03:00
parent 2e8d907c22
commit 2d9eec9b02
15 changed files with 401 additions and 194 deletions

View file

@ -0,0 +1,24 @@
use gtk::Button;
use std::sync::Arc;
pub struct Widget {
gobject: Button,
}
impl Widget {
// Construct
pub fn new_arc() -> Arc<Self> {
Arc::new(Self {
gobject: Button::builder()
.icon_name("starred-symbolic")
.tooltip_text("Bookmark")
.sensitive(false)
.build(),
})
}
// Getters
pub fn gobject(&self) -> &Button {
&self.gobject
}
}