mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Remove unused parameters from callbacks
This commit is contained in:
parent
a8c66da52f
commit
fca6ce841c
19 changed files with 35 additions and 37 deletions
|
|
@ -99,7 +99,7 @@ impl MusicusEnsembleEditor {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn save(&self, _: >k::Button) {
|
||||
fn save(&self) {
|
||||
let library = self.imp().library.get().unwrap();
|
||||
let name = self.imp().name_editor.translation();
|
||||
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ impl MusicusInstrumentEditor {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn save(&self, _: >k::Button) {
|
||||
fn save(&self) {
|
||||
let library = self.imp().library.get().unwrap();
|
||||
let name = self.imp().name_editor.translation();
|
||||
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ impl MusicusPerformerRoleSelectorPopover {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn back_button_clicked(&self, _: >k::Button) {
|
||||
fn back_button_clicked(&self) {
|
||||
self.imp().stack.set_visible_child(&*self.imp().role_view);
|
||||
self.imp().role_search_entry.grab_focus();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ impl MusicusRecordingEditor {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn save(&self, _: >k::Button) {
|
||||
fn save(&self) {
|
||||
let library = self.imp().library.get().unwrap();
|
||||
|
||||
// TODO: No work selected?
|
||||
|
|
|
|||
|
|
@ -138,12 +138,12 @@ impl MusicusRecordingEditorEnsembleRow {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn open_role_popover(&self, _: >k::Button) {
|
||||
fn open_role_popover(&self) {
|
||||
self.imp().role_popover.get().unwrap().popup();
|
||||
}
|
||||
|
||||
#[template_callback]
|
||||
fn remove(&self, _: >k::Button) {
|
||||
fn remove(&self) {
|
||||
self.emit_by_name::<()>("remove", &[]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -177,12 +177,12 @@ impl MusicusRecordingEditorPerformerRow {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn open_role_popover(&self, _: >k::Button) {
|
||||
fn open_role_popover(&self) {
|
||||
self.imp().role_popover.get().unwrap().popup();
|
||||
}
|
||||
|
||||
#[template_callback]
|
||||
fn remove(&self, _: >k::Button) {
|
||||
fn remove(&self) {
|
||||
self.emit_by_name::<()>("remove", &[]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -182,7 +182,7 @@ impl RecordingSelectorPopover {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn back_to_composer(&self, _: >k::Button) {
|
||||
fn back_to_composer(&self) {
|
||||
self.imp()
|
||||
.stack
|
||||
.set_visible_child(&*self.imp().composer_view);
|
||||
|
|
@ -204,7 +204,7 @@ impl RecordingSelectorPopover {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn back_to_work(&self, _: >k::Button) {
|
||||
fn back_to_work(&self) {
|
||||
self.imp().stack.set_visible_child(&*self.imp().work_view);
|
||||
self.imp().work_search_entry.grab_focus();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ impl MusicusRoleEditor {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn save(&self, _: >k::Button) {
|
||||
fn save(&self) {
|
||||
let library = self.imp().library.get().unwrap();
|
||||
let name = self.imp().name_editor.translation();
|
||||
|
||||
|
|
|
|||
|
|
@ -82,13 +82,13 @@ impl MusicusTranslationEntry {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn open_lang_popover(&self, _: >k::Button) {
|
||||
fn open_lang_popover(&self) {
|
||||
self.imp().lang_popover.popup();
|
||||
self.imp().lang_entry.grab_focus();
|
||||
}
|
||||
|
||||
#[template_callback]
|
||||
fn remove(&self, _: >k::Button) {
|
||||
fn remove(&self) {
|
||||
self.emit_by_name::<()>("remove", &[]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ impl MusicusWorkEditor {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn save(&self, _: >k::Button) {
|
||||
fn save(&self) {
|
||||
let library = self.imp().library.get().unwrap();
|
||||
|
||||
let name = self.imp().name_editor.translation();
|
||||
|
|
|
|||
|
|
@ -138,12 +138,12 @@ impl MusicusWorkEditorComposerRow {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn open_role_popover(&self, _: >k::Button) {
|
||||
fn open_role_popover(&self) {
|
||||
self.imp().role_popover.get().unwrap().popup();
|
||||
}
|
||||
|
||||
#[template_callback]
|
||||
fn remove(&self, _: >k::Button) {
|
||||
fn remove(&self) {
|
||||
self.emit_by_name::<()>("remove", &[]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ impl MusicusWorkEditorPartRow {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn remove(&self, _: >k::Button) {
|
||||
fn remove(&self) {
|
||||
self.emit_by_name::<()>("remove", &[]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -164,7 +164,7 @@ impl MusicusWorkSelectorPopover {
|
|||
}
|
||||
|
||||
#[template_callback]
|
||||
fn back_button_clicked(&self, _: >k::Button) {
|
||||
fn back_button_clicked(&self) {
|
||||
self.imp()
|
||||
.stack
|
||||
.set_visible_child(&*self.imp().composer_view);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue