mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
begin gtk notebook to adwaita tab page features replacement
This commit is contained in:
parent
5529fcaa71
commit
ef5eb9b317
3 changed files with 32 additions and 43 deletions
|
|
@ -1,5 +1,5 @@
|
|||
use adw::ToolbarView;
|
||||
use gtk::{prelude::BoxExt, Box, Notebook, Orientation};
|
||||
use adw::{TabView, ToolbarView};
|
||||
use gtk::{prelude::BoxExt, Box, Orientation};
|
||||
|
||||
pub struct Widget {
|
||||
gobject: Box,
|
||||
|
|
@ -7,7 +7,7 @@ pub struct Widget {
|
|||
|
||||
impl Widget {
|
||||
// Construct
|
||||
pub fn new(header: &ToolbarView, tab: &Notebook) -> Self {
|
||||
pub fn new(header: &ToolbarView, tab: &TabView) -> 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