SessionDialog: remove explicit button press handling
This is not needed since ArdourButton + related action takes care of it
This commit is contained in:
@@ -126,21 +126,18 @@ SessionDialog::SessionDialog (DialogTab initial_tab, const std::string& session_
|
||||
|
||||
new_button.set_text("NEW");
|
||||
new_button.set_name ("tab button");
|
||||
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);
|
||||
@@ -617,27 +614,6 @@ SessionDialog::existing_button_choice_action ()
|
||||
_tabs.set_current_page(2);
|
||||
}
|
||||
|
||||
bool
|
||||
SessionDialog::new_button_pressed (GdkEventButton*)
|
||||
{
|
||||
new_button_choice_action ();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
SessionDialog::recent_button_pressed (GdkEventButton*)
|
||||
{
|
||||
recent_button_choice_action ();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
SessionDialog::existing_button_pressed (GdkEventButton*)
|
||||
{
|
||||
existing_button_choice_action ();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
SessionDialog::prefs_button_pressed (GdkEventButton*)
|
||||
{
|
||||
|
||||
@@ -100,9 +100,6 @@ private:
|
||||
|
||||
Gtk::ComboBoxText timebase_chooser;
|
||||
|
||||
bool new_button_pressed (GdkEventButton*);
|
||||
bool recent_button_pressed (GdkEventButton*);
|
||||
bool existing_button_pressed (GdkEventButton*);
|
||||
bool prefs_button_pressed (GdkEventButton*);
|
||||
|
||||
void new_button_choice_action ();
|
||||
|
||||
Reference in New Issue
Block a user