From 48a5beb8b696fde5a9f157f4be16077ccedac011 Mon Sep 17 00:00:00 2001 From: Erica Z Date: Tue, 12 Nov 2024 10:51:55 +0100 Subject: [PATCH] move some things around --- resources/window.blp | 6 +++--- src/main.rs | 3 --- src/ui/window.rs | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/resources/window.blp b/resources/window.blp index 9686a13..5ec38e1 100644 --- a/resources/window.blp +++ b/resources/window.blp @@ -35,12 +35,12 @@ template $AudreyUiWindow: Adw.ApplicationWindow { vexpand: true; Adw.ViewStackPage { - icon-name: "media-optical-cd"; - title: _("Albums"); + icon-name: "folder-music-symbolic"; + title: _("Browse"); child: Adw.NavigationView { Adw.NavigationPage { - title: _("Albums"); + title: _("Browse"); vexpand: true; child: Adw.ToolbarView { diff --git a/src/main.rs b/src/main.rs index bc7b17f..5db6956 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,9 +41,6 @@ fn main() -> glib::ExitCode { init_tracing(); - ui::Playbar::ensure_type(); - ui::PlayQueue::ensure_type(); - gtk::disable_setlocale(); bindtextdomain("audrey", meson_config::LOCALEDIR).expect("failed to bind text domain"); bind_textdomain_codeset("audrey", "UTF-8").expect("failed to bind textdomaincodeset"); diff --git a/src/ui/window.rs b/src/ui/window.rs index d831357..ac9bdf5 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -176,7 +176,7 @@ mod imp { None => glib::ControlFlow::Break, Some(window) => { match window.imp().state.get() { - State::Idle | State::FileLoading | State::Seeking => {}, + State::Idle | State::FileLoading | State::Seeking => {} State::Active => window.notify("time-pos"), other => unreachable!("{other:?}"), }