mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
begin libadwaita headerbar tabs integration
This commit is contained in:
parent
765a24f331
commit
ce29a06dda
16 changed files with 269 additions and 156 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use adw::HeaderBar;
|
||||
use adw::ToolbarView;
|
||||
use gtk::{prelude::BoxExt, Box, Notebook, Orientation};
|
||||
|
||||
pub struct Widget {
|
||||
|
|
@ -7,7 +7,7 @@ pub struct Widget {
|
|||
|
||||
impl Widget {
|
||||
// Construct
|
||||
pub fn new(header: &HeaderBar, tab: &Notebook) -> Self {
|
||||
pub fn new(header: &ToolbarView, tab: &Notebook) -> Self {
|
||||
let gobject = Box::builder().orientation(Orientation::Vertical).build();
|
||||
gobject.append(header);
|
||||
gobject.append(tab);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue