editor: Show tooltips in selectors

This commit is contained in:
Elias Projahn 2025-02-09 08:14:46 +01:00
parent 3adcc0f10e
commit 0fe143a383
8 changed files with 31 additions and 8 deletions

View file

@ -219,6 +219,18 @@ impl MusicusRecordingEditor {
obj
}
pub fn connect_created<F: Fn(&Self, Recording) + 'static>(
&self,
f: F,
) -> glib::SignalHandlerId {
self.connect_local("created", true, move |values| {
let obj = values[0].get::<Self>().unwrap();
let recording = values[1].get::<Recording>().unwrap();
f(&obj, recording);
None
})
}
#[template_callback]
fn select_work(&self, _: &adw::ActionRow) {
self.imp().work_selector_popover.get().unwrap().popup();