mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 21:56:30 +01:00
progressing Open Session Dialog (adding double click on recent session name)
[git-p4: depot-paths = "//Abdaw/dev_main/tracks/": change = 457732]
This commit is contained in:
parent
d853c93aee
commit
c6b6ee9278
4 changed files with 29 additions and 13 deletions
|
|
@ -84,6 +84,7 @@ void SessionDialog::init()
|
|||
_system_configuration_button.signal_clicked.connect (sigc::mem_fun (*this, &SessionDialog::on_system_configuration));
|
||||
for (size_t i = 0; i < MAX_RECENT_SESSION_COUNTS; i++) {
|
||||
_recent_session_button[i]->signal_clicked.connect (sigc::mem_fun (*this, &SessionDialog::on_recent_session ));
|
||||
_recent_session_button[i]->signal_double_clicked.connect (sigc::mem_fun (*this, &SessionDialog::on_recent_session_double_click ));
|
||||
}
|
||||
redisplay_system_configuration ();
|
||||
redisplay_recent_sessions();
|
||||
|
|
@ -310,6 +311,18 @@ SessionDialog::on_recent_session (WavesButton* clicked_button)
|
|||
_open_selected_button.set_sensitive (_selection_type == RecentSession);
|
||||
}
|
||||
|
||||
void
|
||||
SessionDialog::on_recent_session_double_click (WavesButton*)
|
||||
{
|
||||
// we suppose the first click, occurred prior to the second in the
|
||||
// double click sequence has been processed correctly and now
|
||||
// the job is just to respond with ok
|
||||
|
||||
hide();
|
||||
response (Gtk::RESPONSE_ACCEPT);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
SessionDialog::on_system_configuration (WavesButton* clicked_button)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue