diff --git a/gtk2_ardour/session_dialog.cc b/gtk2_ardour/session_dialog.cc index 2b4a7b537e..896d644b6c 100644 --- a/gtk2_ardour/session_dialog.cc +++ b/gtk2_ardour/session_dialog.cc @@ -586,27 +586,42 @@ SessionDialog::session_selected () { } +void +SessionDialog::new_button_choice_action () +{ + _tabs.set_current_page(0); +} + +void +SessionDialog::recent_button_choice_action () +{ + _tabs.set_current_page(1); +} + +void +SessionDialog::existing_button_choice_action () +{ + _tabs.set_current_page(2); +} + bool SessionDialog::new_button_pressed (GdkEventButton*) { - _tabs.set_current_page(0); - + new_button_choice_action (); return true; } bool SessionDialog::recent_button_pressed (GdkEventButton*) { - _tabs.set_current_page(1); - + recent_button_choice_action (); return true; } bool SessionDialog::existing_button_pressed (GdkEventButton*) { - _tabs.set_current_page(2); - + existing_button_choice_action (); return true; } diff --git a/gtk2_ardour/session_dialog.h b/gtk2_ardour/session_dialog.h index 7896e306ad..48f35101b4 100644 --- a/gtk2_ardour/session_dialog.h +++ b/gtk2_ardour/session_dialog.h @@ -105,6 +105,10 @@ private: bool existing_button_pressed (GdkEventButton*); bool prefs_button_pressed (GdkEventButton*); + void new_button_choice_action (); + void recent_button_choice_action (); + void existing_button_choice_action (); + bool open_button_pressed (GdkEventButton*); Gtk::HBox _info_box;