Yoda 0.9.3

Browser for Gemini Protocol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use adw::{TabView, ToolbarView};
use gtk::{prelude::BoxExt, Box, Orientation};

pub struct Widget {
    pub g_box: Box,
}

impl Widget {
    // Construct
    pub fn new(header: &ToolbarView, tab: &TabView) -> Self {
        let g_box = Box::builder().orientation(Orientation::Vertical).build();
        g_box.append(header);
        g_box.append(tab);

        Self { g_box }
    }
}