Use correct default value for MIDI faders, and put the
[ardour.git] / libs / gtkmm2ext / gtkmm2ext / gtk_ui.h
index a0ea1e86ad2f2e9e6687af27eecb90aca86c7d5f..bba3fb6fdf6b62f03b465e6830636b1dd2163ec1 100644 (file)
@@ -50,6 +50,7 @@ namespace Gtkmm2ext {
 
 class TextViewer;
 
+extern BaseUI::RequestType NullMessage;
 extern BaseUI::RequestType ErrorMessage;
 extern BaseUI::RequestType CallSlot;
 extern BaseUI::RequestType TouchDisplay;
@@ -74,6 +75,10 @@ struct UIRequest : public BaseUI::BaseRequestObject {
     Transmitter::Channel chn;
     void *arg;
     const char *msg2;
+
+    UIRequest () {
+            type = NullMessage;
+    }
     
     ~UIRequest () { 
            if (type == ErrorMessage && msg) {
@@ -112,6 +117,7 @@ class UI : public Receiver, public AbstractUI<UIRequest>
        void popup_error (const std::string& text);
        void flush_pending ();
        void toggle_errors ();
+       void show_errors ();
        void touch_display (Touchable *);
        void set_tip (Gtk::Widget &w, const gchar *tip);
        void set_tip (Gtk::Widget &w, const std::string &tip);