mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
implement recent bookmarks menu item
This commit is contained in:
parent
c335207b28
commit
9e86e9b29f
13 changed files with 155 additions and 60 deletions
|
|
@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue