mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Show relevant preferences on sync-button right-click
This commit is contained in:
parent
d82abddfff
commit
a5f61340ef
2 changed files with 16 additions and 0 deletions
|
|
@ -831,6 +831,7 @@ private:
|
||||||
int ambiguous_file (std::string file, std::vector<std::string> hits);
|
int ambiguous_file (std::string file, std::vector<std::string> hits);
|
||||||
|
|
||||||
bool click_button_clicked (GdkEventButton *);
|
bool click_button_clicked (GdkEventButton *);
|
||||||
|
bool sync_button_clicked (GdkEventButton *);
|
||||||
|
|
||||||
VisibilityGroup _status_bar_visibility;
|
VisibilityGroup _status_bar_visibility;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,9 @@ ARDOUR_UI::setup_transport ()
|
||||||
act = ActionManager::get_action (X_("MIDI"), X_("panic"));
|
act = ActionManager::get_action (X_("MIDI"), X_("panic"));
|
||||||
midi_panic_button.set_related_action (act);
|
midi_panic_button.set_related_action (act);
|
||||||
act = ActionManager::get_action (X_("Transport"), X_("ToggleExternalSync"));
|
act = ActionManager::get_action (X_("Transport"), X_("ToggleExternalSync"));
|
||||||
|
|
||||||
sync_button.set_related_action (act);
|
sync_button.set_related_action (act);
|
||||||
|
sync_button.signal_button_press_event().connect (sigc::mem_fun (*this, &ARDOUR_UI::sync_button_clicked), false);
|
||||||
|
|
||||||
sync_button.set_sizing_text (S_("LogestSync|M-Clk"));
|
sync_button.set_sizing_text (S_("LogestSync|M-Clk"));
|
||||||
|
|
||||||
|
|
@ -763,6 +765,19 @@ ARDOUR_UI::click_button_clicked (GdkEventButton* ev)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool
|
||||||
|
ARDOUR_UI::sync_button_clicked (GdkEventButton* ev)
|
||||||
|
{
|
||||||
|
if (ev->button != 3) {
|
||||||
|
/* this handler is just for button-3 clicks */
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
show_tabbable (rc_option_editor);
|
||||||
|
rc_option_editor->set_current_page (_("Transport/Sync"));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ARDOUR_UI::toggle_follow_edits ()
|
ARDOUR_UI::toggle_follow_edits ()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue