From a2bcb815ef67f473d3885b369e24e59459298b0e Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 17 Mar 2015 11:59:30 +0100 Subject: [PATCH] Error Log button, only handle LMB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow to fall though to the bar’s context menu. --- gtk2_ardour/ardour_ui2.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc index 5674e88e9b..ef8745fc55 100644 --- a/gtk2_ardour/ardour_ui2.cc +++ b/gtk2_ardour/ardour_ui2.cc @@ -334,6 +334,7 @@ ARDOUR_UI::setup_transport () error_alert_button.signal_button_press_event().connect (sigc::mem_fun(*this,&ARDOUR_UI::error_alert_press), false); act = ActionManager::get_action (X_("Editor"), X_("toggle-log-window")); error_alert_button.set_related_action(act); + error_alert_button.set_fallthrough_to_parent(true); alert_box.set_homogeneous (true); alert_box.set_spacing (2); @@ -546,8 +547,11 @@ ARDOUR_UI::feedback_alert_press (GdkEventButton *) } bool -ARDOUR_UI::error_alert_press (GdkEventButton*) +ARDOUR_UI::error_alert_press (GdkEventButton* ev) { + if (ev->button != 1) { + return false; + } _log_not_acknowledged = LogLevelNone; error_blink (false); // immediate acknowledge return true;