editor: Fix popover parents

This commit is contained in:
Elias Projahn 2025-03-01 11:13:29 +01:00
parent 5956b7ff15
commit 757022393f
6 changed files with 88 additions and 74 deletions

View file

@ -32,9 +32,9 @@ mod imp {
#[template_child]
pub name_editor: TemplateChild<TranslationEditor>,
#[template_child]
pub recordings_list: TemplateChild<gtk::ListBox>,
pub recordings_box: TemplateChild<gtk::Box>,
#[template_child]
pub select_recording_box: TemplateChild<gtk::Box>,
pub recordings_list: TemplateChild<gtk::ListBox>,
#[template_child]
pub save_row: TemplateChild<adw::ButtonRow>,
}
@ -93,7 +93,7 @@ mod imp {
obj.navigation().push(&editor);
});
self.select_recording_box.append(&recordings_popover);
self.recordings_box.append(&recordings_popover);
self.recordings_popover.set(recordings_popover).unwrap();
}
}

View file

@ -49,14 +49,14 @@ mod imp {
#[template_child]
pub year_row: TemplateChild<adw::SpinRow>,
#[template_child]
pub performers_box: TemplateChild<gtk::Box>,
#[template_child]
pub performer_list: TemplateChild<gtk::ListBox>,
#[template_child]
pub select_person_box: TemplateChild<gtk::Box>,
pub ensembles_box: TemplateChild<gtk::Box>,
#[template_child]
pub ensemble_list: TemplateChild<gtk::ListBox>,
#[template_child]
pub select_ensemble_box: TemplateChild<gtk::Box>,
#[template_child]
pub save_row: TemplateChild<adw::ButtonRow>,
}
@ -140,7 +140,7 @@ mod imp {
obj.navigation().push(&editor);
});
self.select_person_box.append(&persons_popover);
self.performers_box.append(&persons_popover);
self.persons_popover.set(persons_popover).unwrap();
let ensembles_popover = EnsembleSelectorPopover::new(self.library.get().unwrap());
@ -165,7 +165,7 @@ mod imp {
obj.navigation().push(&editor);
});
self.select_ensemble_box.append(&ensembles_popover);
self.ensembles_box.append(&ensembles_popover);
self.ensembles_popover.set(ensembles_popover).unwrap();
}
}

View file

@ -50,15 +50,15 @@ mod imp {
#[template_child]
pub name_editor: TemplateChild<TranslationEditor>,
#[template_child]
pub composer_list: TemplateChild<gtk::ListBox>,
pub composers_box: TemplateChild<gtk::Box>,
#[template_child]
pub select_person_box: TemplateChild<gtk::Box>,
pub composer_list: TemplateChild<gtk::ListBox>,
#[template_child]
pub part_list: TemplateChild<gtk::ListBox>,
#[template_child]
pub instrument_list: TemplateChild<gtk::ListBox>,
pub instruments_box: TemplateChild<gtk::Box>,
#[template_child]
pub select_instrument_box: TemplateChild<gtk::Box>,
pub instrument_list: TemplateChild<gtk::ListBox>,
#[template_child]
pub save_row: TemplateChild<adw::ButtonRow>,
}
@ -117,7 +117,7 @@ mod imp {
obj.navigation().push(&editor);
});
self.select_person_box.append(&persons_popover);
self.composers_box.append(&persons_popover);
self.persons_popover.set(persons_popover).unwrap();
let instruments_popover = InstrumentSelectorPopover::new(self.library.get().unwrap());
@ -142,7 +142,7 @@ mod imp {
obj.navigation().push(&editor);
});
self.select_instrument_box.append(&instruments_popover);
self.instruments_box.append(&instruments_popover);
self.instruments_popover.set(instruments_popover).unwrap();
}
}