editor: Use AdwButtonRow where possible

This commit is contained in:
Elias Projahn 2025-03-01 08:55:04 +01:00
parent 18ba84c86f
commit e59052a362
8 changed files with 40 additions and 91 deletions

View file

@ -232,17 +232,17 @@ impl MusicusRecordingEditor {
}
#[template_callback]
fn select_work(&self, _: &adw::ActionRow) {
fn select_work(&self) {
self.imp().work_selector_popover.get().unwrap().popup();
}
#[template_callback]
fn select_person(&self, _: &adw::ActionRow) {
fn select_person(&self) {
self.imp().persons_popover.get().unwrap().popup();
}
#[template_callback]
fn select_ensemble(&self, _: &adw::ActionRow) {
fn select_ensemble(&self) {
self.imp().ensembles_popover.get().unwrap().popup();
}

View file

@ -72,7 +72,7 @@ impl MusicusTranslationEditor {
}
#[template_callback]
fn add_translation(&self, _: &adw::ActionRow) {
fn add_translation(&self) {
self.add_entry(&util::LANG, &self.imp().entry_row.text());
}

View file

@ -212,12 +212,12 @@ impl MusicusWorkEditor {
}
#[template_callback]
fn add_person(&self, _: &adw::ActionRow) {
fn add_person(&self) {
self.imp().persons_popover.get().unwrap().popup();
}
#[template_callback]
fn add_part(&self, _: &adw::ActionRow) {
fn add_part(&self) {
let editor = MusicusWorkEditor::new(&self.navigation(), &self.library(), None, true);
editor.connect_created(clone!(
@ -232,7 +232,7 @@ impl MusicusWorkEditor {
}
#[template_callback]
fn add_instrument(&self, _: &adw::ActionRow) {
fn add_instrument(&self) {
self.imp().instruments_popover.get().unwrap().popup();
}