mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Error Log button, only handle LMB
Allow to fall though to the bar’s context menu.
This commit is contained in:
parent
741bcc9fa4
commit
a2bcb815ef
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue