Remove display_message(); No more scary log message popups on osx.
This commit is contained in:
parent
a29d3c1b31
commit
97fb3a5557
@ -787,9 +787,6 @@ private:
|
|||||||
|
|
||||||
void audioengine_setup ();
|
void audioengine_setup ();
|
||||||
|
|
||||||
void display_message (const char *prefix, gint prefix_len,
|
|
||||||
Glib::RefPtr<Gtk::TextBuffer::Tag> ptag, Glib::RefPtr<Gtk::TextBuffer::Tag> mtag,
|
|
||||||
const char *msg);
|
|
||||||
Gtk::Label status_bar_label;
|
Gtk::Label status_bar_label;
|
||||||
bool status_bar_button_press (GdkEventButton*);
|
bool status_bar_button_press (GdkEventButton*);
|
||||||
|
|
||||||
|
@ -108,39 +108,6 @@ ARDOUR_UI::status_bar_button_press (GdkEventButton* ev)
|
|||||||
return handled;
|
return handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
ARDOUR_UI::display_message (const char *prefix, gint prefix_len, RefPtr<TextBuffer::Tag> ptag, RefPtr<TextBuffer::Tag> mtag, const char *msg)
|
|
||||||
{
|
|
||||||
string text;
|
|
||||||
|
|
||||||
UI::display_message (prefix, prefix_len, ptag, mtag, msg);
|
|
||||||
|
|
||||||
ArdourLogLevel ll = LogLevelNone;
|
|
||||||
|
|
||||||
if (strcmp (prefix, _("[ERROR]: ")) == 0) {
|
|
||||||
text = "<span color=\"red\" weight=\"bold\">";
|
|
||||||
ll = LogLevelError;
|
|
||||||
} else if (strcmp (prefix, _("[WARNING]: ")) == 0) {
|
|
||||||
text = "<span color=\"yellow\" weight=\"bold\">";
|
|
||||||
ll = LogLevelWarning;
|
|
||||||
} else if (strcmp (prefix, _("[INFO]: ")) == 0) {
|
|
||||||
text = "<span color=\"green\" weight=\"bold\">";
|
|
||||||
ll = LogLevelInfo;
|
|
||||||
} else {
|
|
||||||
text = "<span color=\"white\" weight=\"bold\">???";
|
|
||||||
}
|
|
||||||
|
|
||||||
_log_not_acknowledged = std::max(_log_not_acknowledged, ll);
|
|
||||||
|
|
||||||
#ifdef TOP_MENUBAR
|
|
||||||
text += prefix;
|
|
||||||
text += "</span>";
|
|
||||||
text += msg;
|
|
||||||
|
|
||||||
status_bar_label.set_markup (text);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
XMLNode*
|
XMLNode*
|
||||||
ARDOUR_UI::tearoff_settings (const char* name) const
|
ARDOUR_UI::tearoff_settings (const char* name) const
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user