mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
SessionDialog: associate actions with buttons
This allows SPACE to activate the button
This commit is contained in:
parent
e7f0234c38
commit
bbf2920f7f
1 changed files with 3 additions and 0 deletions
|
|
@ -129,18 +129,21 @@ SessionDialog::SessionDialog (DialogTab initial_tab, const std::string& session_
|
|||
new_button.signal_button_press_event().connect (sigc::mem_fun (*this, &SessionDialog::new_button_pressed), false);
|
||||
new_button.set_tweaks(ArdourButton::Tweaks(ArdourButton::ForceFlat));
|
||||
new_button.set_can_focus (true);
|
||||
new_button.set_related_action (new_session_action);
|
||||
|
||||
recent_button.set_text("RECENT");
|
||||
recent_button.set_name ("tab button");
|
||||
recent_button.signal_button_press_event().connect (sigc::mem_fun (*this, &SessionDialog::recent_button_pressed), false);
|
||||
recent_button.set_tweaks(ArdourButton::Tweaks(ArdourButton::ForceFlat));
|
||||
recent_button.set_can_focus (true);
|
||||
recent_button.set_related_action (recent_session_action);
|
||||
|
||||
existing_button.set_text("OPEN");
|
||||
existing_button.set_name ("tab button");
|
||||
existing_button.signal_button_press_event().connect (sigc::mem_fun (*this, &SessionDialog::existing_button_pressed), false);
|
||||
existing_button.set_tweaks(ArdourButton::Tweaks(ArdourButton::ForceFlat));
|
||||
existing_button.set_can_focus (true);
|
||||
existing_button.set_related_action (existing_session_action);
|
||||
|
||||
prefs_button.set_text("SETTINGS");
|
||||
prefs_button.set_name ("tab button");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue