Add home page header and hook up editors

This commit is contained in:
Elias Projahn 2024-06-05 19:03:04 +02:00
parent 38613c0063
commit f49f23a501
10 changed files with 236 additions and 55 deletions

View file

@ -5,7 +5,6 @@ use adw::{
use gtk::glib::{self, Properties};
use std::cell::OnceCell;
use crate::editor::work_editor::MusicusWorkEditor;
use crate::library::MusicusLibrary;
mod imp {
@ -36,12 +35,7 @@ mod imp {
}
#[glib::derived_properties]
impl ObjectImpl for LibraryManager {
fn constructed(&self) {
self.parent_constructed();
self.obj().set_child(Some(&MusicusWorkEditor::new(self.library.get().unwrap())));
}
}
impl ObjectImpl for LibraryManager {}
impl WidgetImpl for LibraryManager {}
impl NavigationPageImpl for LibraryManager {}