begin libadwaita headerbar tabs integration

This commit is contained in:
yggverse 2024-10-10 23:34:06 +03:00
parent 765a24f331
commit ce29a06dda
16 changed files with 269 additions and 156 deletions

View file

@ -0,0 +1,24 @@
mod widget;
use widget::Widget;
use gtk::{gio::SimpleAction, Button};
use std::sync::Arc;
pub struct Append {
pub widget: Arc<Widget>,
}
impl Append {
// Construct
pub fn new_arc(action_tab_append: Arc<SimpleAction>) -> Arc<Self> {
Arc::new(Self {
widget: Widget::new_arc(action_tab_append),
})
}
// Getters
pub fn gobject(&self) -> &Button {
&self.widget.gobject()
}
}