Yoda 0.4.1

Yoda - Browser for Gemini protocol
use adw::{TabBar, TabView};
use std::sync::Arc;

pub struct Widget {
    gobject: TabBar,
}

impl Widget {
    // Construct
    pub fn new_arc(view: &TabView) -> Arc<Self> {
        Arc::new(Self {
            gobject: TabBar::builder()
                .autohide(false)
                .expand_tabs(false)
                .view(&view)
                .build(),
        })
    }

    // Getters
    pub fn gobject(&self) -> &TabBar {
        &self.gobject
    }
}