mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
editor: Show tooltips in selectors
This commit is contained in:
parent
3adcc0f10e
commit
0fe143a383
8 changed files with 31 additions and 8 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue