mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Split composers and performers
This commit is contained in:
parent
84612673c1
commit
af57fe020c
5 changed files with 137 additions and 48 deletions
|
|
@ -54,7 +54,8 @@ impl MusicusSearchTag {
|
|||
let obj: MusicusSearchTag = glib::Object::new();
|
||||
|
||||
obj.imp().label.set_label(&match &tag {
|
||||
Tag::Person(person) => person.name_fl(),
|
||||
Tag::Composer(person) => person.name_fl(),
|
||||
Tag::Performer(person) => person.name_fl(),
|
||||
Tag::Ensemble(ensemble) => ensemble.name.clone(),
|
||||
Tag::Work(work) => work.title.clone(),
|
||||
});
|
||||
|
|
@ -76,7 +77,8 @@ impl MusicusSearchTag {
|
|||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Tag {
|
||||
Person(Person),
|
||||
Composer(Person),
|
||||
Performer(Person),
|
||||
Ensemble(Ensemble),
|
||||
Work(Work),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue