begin gtk notebook to adwaita tab page features replacement

This commit is contained in:
yggverse 2024-10-11 01:38:12 +03:00
parent 5529fcaa71
commit ef5eb9b317
3 changed files with 32 additions and 43 deletions

View file

@ -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);