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
|
|
@ -1,5 +1,5 @@
|
|||
use adw::TabBar;
|
||||
use gtk::{prelude::BoxExt, Box, Button, MenuButton, Orientation, WindowControls};
|
||||
use gtk::{prelude::BoxExt, Box, MenuButton, Orientation, WindowControls};
|
||||
use std::sync::Arc;
|
||||
|
||||
pub struct Widget {
|
||||
|
|
@ -8,19 +8,13 @@ pub struct Widget {
|
|||
|
||||
impl Widget {
|
||||
// Construct
|
||||
pub fn new_arc(
|
||||
control: &WindowControls,
|
||||
append: &Button,
|
||||
menu: &MenuButton,
|
||||
tab: &TabBar,
|
||||
) -> Arc<Self> {
|
||||
pub fn new_arc(control: &WindowControls, menu: &MenuButton, tab: &TabBar) -> Arc<Self> {
|
||||
let gobject = Box::builder()
|
||||
.orientation(Orientation::Horizontal)
|
||||
.spacing(8)
|
||||
.build();
|
||||
|
||||
gobject.append(tab);
|
||||
gobject.append(append);
|
||||
gobject.append(menu);
|
||||
gobject.append(control);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue