Remove display_message(); No more scary log message popups on osx.
authorBen Loftis <ben@harrisonconsoles.com>
Wed, 14 Feb 2018 21:32:43 +0000 (15:32 -0600)
committerBen Loftis <ben@harrisonconsoles.com>
Sat, 17 Feb 2018 15:11:41 +0000 (09:11 -0600)
gtk2_ardour/ardour_ui.h
gtk2_ardour/ardour_ui2.cc

index bcf17c1459435c9aa1dff22e8bde8c42f81c102d..cceceae8d3b4b4a1270edd267bbc0fd704261b74 100644 (file)
@@ -787,9 +787,6 @@ private:
 
        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;
        bool status_bar_button_press (GdkEventButton*);
 
index 7de82f685e9a4c43ad63baf9160960c0997e17f0..8234b476f673b480c2a370b814465b7fba58a571 100644 (file)
@@ -108,39 +108,6 @@ 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)
-{
-       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*
 ARDOUR_UI::tearoff_settings (const char* name) const
 {