mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
move new tab button into the tabs start widget
This commit is contained in:
parent
1ffc5c1edb
commit
6aee2edd75
6 changed files with 12 additions and 21 deletions
24
src/app/browser/window/header/bar/tab/append.rs
Normal file
24
src/app/browser/window/header/bar/tab/append.rs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
mod widget;
|
||||
|
||||
use widget::Widget;
|
||||
|
||||
use gtk::{gio::SimpleAction, Button};
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct Append {
|
||||
pub widget: Arc<Widget>,
|
||||
}
|
||||
|
||||
impl Append {
|
||||
// Construct
|
||||
pub fn new_arc(action_tab_append: SimpleAction) -> Arc<Self> {
|
||||
Arc::new(Self {
|
||||
widget: Widget::new_arc(action_tab_append),
|
||||
})
|
||||
}
|
||||
|
||||
// Getters
|
||||
pub fn gobject(&self) -> &Button {
|
||||
&self.widget.gobject()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue