Keep track of unacknowledged log-level (error-indicator)
This code was incorrectly removed in 97fb3a5557
.
This commit is contained in:
parent
984cacfa92
commit
110317aad6
@ -785,6 +785,7 @@ private:
|
||||
|
||||
void audioengine_setup ();
|
||||
|
||||
void display_message (const char* prefix, gint prefix_len, Glib::RefPtr<Gtk::TextBuffer::Tag>, Glib::RefPtr<Gtk::TextBuffer::Tag>, const char* msg);
|
||||
Gtk::Label status_bar_label;
|
||||
bool status_bar_button_press (GdkEventButton*);
|
||||
|
||||
|
@ -108,6 +108,24 @@ ARDOUR_UI::status_bar_button_press (GdkEventButton* ev)
|
||||
return handled;
|
||||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::display_message (const char* prefix, gint prefix_len, RefPtr<TextBuffer::Tag> ptag, RefPtr<TextBuffer::Tag> mtag, const char* msg)
|
||||
{
|
||||
UI::display_message (prefix, prefix_len, ptag, mtag, msg);
|
||||
|
||||
ArdourLogLevel ll = LogLevelNone;
|
||||
|
||||
if (strcmp (prefix, _("[ERROR]: ")) == 0) {
|
||||
ll = LogLevelError;
|
||||
} else if (strcmp (prefix, _("[WARNING]: ")) == 0) {
|
||||
ll = LogLevelWarning;
|
||||
} else if (strcmp (prefix, _("[INFO]: ")) == 0) {
|
||||
ll = LogLevelInfo;
|
||||
}
|
||||
|
||||
_log_not_acknowledged = std::max(_log_not_acknowledged, ll);
|
||||
}
|
||||
|
||||
XMLNode*
|
||||
ARDOUR_UI::tearoff_settings (const char* name) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user