allow Lua session scripts to inject [immediate] RT-events
[ardour.git] / libs / ardour / presentation_info.cc
index 4fdbd4111aaa2ccf5859c2110316655a7096e172..8139689649c489f0dfc4d89e00e528790da06bc8 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "ardour/presentation_info.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace PBD;
@@ -128,7 +128,7 @@ PresentationInfo::set_state (XMLNode const& node, int /* version */)
        if ((prop = node.property (X_("color"))) != 0) {
                color_t c = atoi (prop->value());
                if (c != _color) {
-                       pc.add (Properties::order);
+                       pc.add (Properties::color);
                        _color = c;
                }
        }
@@ -164,6 +164,7 @@ PresentationInfo::set_color (PresentationInfo::color_t c)
        if (c != _color) {
                _color = c;
                send_change (PropertyChange (Properties::color));
+               Change (); /* EMIT SIGNAL */
        }
 }
 
@@ -175,8 +176,7 @@ PresentationInfo::color_set () const
         * this is heuristic, but it is fairly realistic. who will ever set
         * a color to completely transparent black? only the constructor ..
         */
-
-       return _color == 0;
+       return _color != 0;
 }
 
 void