implement recent bookmarks menu item

This commit is contained in:
yggverse 2025-01-12 00:38:22 +02:00
parent c335207b28
commit 9e86e9b29f
13 changed files with 155 additions and 60 deletions

View file

@ -1,17 +1,19 @@
mod widget;
use widget::Widget;
use gtk::{PackType, WindowControls};
use std::rc::Rc;
const MARGIN: i32 = 4;
pub struct Control {
pub widget: Rc<Widget>,
pub window_controls: WindowControls,
}
impl Control {
// Construct
pub fn new() -> Self {
Self {
widget: Rc::new(Widget::new()),
window_controls: WindowControls::builder()
.margin_end(MARGIN)
.side(PackType::End)
.build(),
}
}
}