mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-26 19:57:25 +01:00
editor: Use AdwButtonRow
This commit is contained in:
parent
510061b3b0
commit
7d2356c8f2
13 changed files with 61 additions and 50 deletions
|
|
@ -64,7 +64,7 @@ mod imp {
|
|||
#[template_child]
|
||||
pub select_instrument_box: TemplateChild<gtk::Box>,
|
||||
#[template_child]
|
||||
pub save_button: TemplateChild<gtk::Button>,
|
||||
pub save_row: TemplateChild<adw::ButtonRow>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
|
|
@ -176,12 +176,12 @@ impl MusicusWorkEditor {
|
|||
|
||||
if is_part_editor {
|
||||
obj.set_title(&gettext("Work part"));
|
||||
obj.imp().save_button.set_label(&gettext("Add work part"));
|
||||
obj.imp().save_row.set_title(&gettext("Add work part"));
|
||||
obj.imp().is_part_editor.set(true);
|
||||
}
|
||||
|
||||
if let Some(work) = work {
|
||||
obj.imp().save_button.set_label(&gettext("Save changes"));
|
||||
obj.imp().save_row.set_title(&gettext("Save changes"));
|
||||
obj.imp().work_id.set(work.work_id.clone()).unwrap();
|
||||
|
||||
obj.imp().name_editor.set_translation(&work.name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue