Error Log button, only handle LMB

Allow to fall though to the bar’s context menu.
This commit is contained in:
Robin Gareus 2015-03-17 11:59:30 +01:00
parent 741bcc9fa4
commit a2bcb815ef

View file

@ -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); 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")); act = ActionManager::get_action (X_("Editor"), X_("toggle-log-window"));
error_alert_button.set_related_action(act); error_alert_button.set_related_action(act);
error_alert_button.set_fallthrough_to_parent(true);
alert_box.set_homogeneous (true); alert_box.set_homogeneous (true);
alert_box.set_spacing (2); alert_box.set_spacing (2);
@ -546,8 +547,11 @@ ARDOUR_UI::feedback_alert_press (GdkEventButton *)
} }
bool bool
ARDOUR_UI::error_alert_press (GdkEventButton*) ARDOUR_UI::error_alert_press (GdkEventButton* ev)
{ {
if (ev->button != 1) {
return false;
}
_log_not_acknowledged = LogLevelNone; _log_not_acknowledged = LogLevelNone;
error_blink (false); // immediate acknowledge error_blink (false); // immediate acknowledge
return true; return true;