mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
Disable focus on action rows with child widgets
This commit is contained in:
parent
61a440e45c
commit
2c1fe19b05
35 changed files with 162 additions and 124 deletions
|
|
@ -118,12 +118,14 @@ impl Screen<(Arc<ImportSession>, Option<Medium>), Medium> for MediumEditor {
|
|||
edit_button.set_valign(gtk::Align::Center);
|
||||
edit_button.set_child(Some(&edit_image));
|
||||
|
||||
let row = adw::ActionRow::new();
|
||||
row.set_activatable(true);
|
||||
row.set_title(&title);
|
||||
row.set_subtitle(&subtitle);
|
||||
let row = adw::ActionRowBuilder::new()
|
||||
.focusable(false)
|
||||
.title(&title)
|
||||
.subtitle(&subtitle)
|
||||
.activatable_widget(&edit_button)
|
||||
.build();
|
||||
|
||||
row.add_suffix(&edit_button);
|
||||
row.set_activatable_widget(Some(&edit_button));
|
||||
|
||||
edit_button.connect_clicked(clone!(@weak this => move |_| {
|
||||
// TODO: Implement editing.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue