move some things around
This commit is contained in:
parent
2f322774c9
commit
48a5beb8b6
3 changed files with 4 additions and 7 deletions
|
@ -35,12 +35,12 @@ template $AudreyUiWindow: Adw.ApplicationWindow {
|
||||||
vexpand: true;
|
vexpand: true;
|
||||||
|
|
||||||
Adw.ViewStackPage {
|
Adw.ViewStackPage {
|
||||||
icon-name: "media-optical-cd";
|
icon-name: "folder-music-symbolic";
|
||||||
title: _("Albums");
|
title: _("Browse");
|
||||||
|
|
||||||
child: Adw.NavigationView {
|
child: Adw.NavigationView {
|
||||||
Adw.NavigationPage {
|
Adw.NavigationPage {
|
||||||
title: _("Albums");
|
title: _("Browse");
|
||||||
vexpand: true;
|
vexpand: true;
|
||||||
|
|
||||||
child: Adw.ToolbarView {
|
child: Adw.ToolbarView {
|
||||||
|
|
|
@ -41,9 +41,6 @@ fn main() -> glib::ExitCode {
|
||||||
|
|
||||||
init_tracing();
|
init_tracing();
|
||||||
|
|
||||||
ui::Playbar::ensure_type();
|
|
||||||
ui::PlayQueue::ensure_type();
|
|
||||||
|
|
||||||
gtk::disable_setlocale();
|
gtk::disable_setlocale();
|
||||||
bindtextdomain("audrey", meson_config::LOCALEDIR).expect("failed to bind text domain");
|
bindtextdomain("audrey", meson_config::LOCALEDIR).expect("failed to bind text domain");
|
||||||
bind_textdomain_codeset("audrey", "UTF-8").expect("failed to bind textdomaincodeset");
|
bind_textdomain_codeset("audrey", "UTF-8").expect("failed to bind textdomaincodeset");
|
||||||
|
|
|
@ -176,7 +176,7 @@ mod imp {
|
||||||
None => glib::ControlFlow::Break,
|
None => glib::ControlFlow::Break,
|
||||||
Some(window) => {
|
Some(window) => {
|
||||||
match window.imp().state.get() {
|
match window.imp().state.get() {
|
||||||
State::Idle | State::FileLoading | State::Seeking => {},
|
State::Idle | State::FileLoading | State::Seeking => {}
|
||||||
State::Active => window.notify("time-pos"),
|
State::Active => window.notify("time-pos"),
|
||||||
other => unreachable!("{other:?}"),
|
other => unreachable!("{other:?}"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue