mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 11:47:25 +01:00
Add scaffold for home page
This commit is contained in:
parent
8c56e90994
commit
3ef0fe960b
11 changed files with 266 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::welcome_page::MusicusWelcomePage;
|
||||
use crate::{welcome_page::MusicusWelcomePage, home_page::MusicusHomePage};
|
||||
|
||||
use adw::subclass::prelude::*;
|
||||
use gtk::{gio, glib, prelude::*};
|
||||
|
|
@ -20,6 +20,7 @@ mod imp {
|
|||
type ParentType = adw::ApplicationWindow;
|
||||
|
||||
fn class_init(klass: &mut Self::Class) {
|
||||
MusicusHomePage::static_type();
|
||||
MusicusWelcomePage::static_type();
|
||||
klass.bind_template();
|
||||
klass.bind_template_instance_callbacks();
|
||||
|
|
@ -60,5 +61,6 @@ impl MusicusWindow {
|
|||
async fn set_library_folder(&self, folder: &gio::File) {
|
||||
let path = folder.path();
|
||||
log::info!("{path:?}");
|
||||
self.imp().navigation_view.replace_with_tags(&["home"]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue