Repeat INSENSITIVE colors instead of relying on inheritance
[ardour.git] / libs / ardour / vca_manager.cc
index 351de09cdfd4c1d60d988a868b043b14db401500..20e9e38ca2aaf0b7e0bc7ec73f7a15df04fee546 100644 (file)
 #include "pbd/replace_all.h"
 
 #include "ardour/boost_debug.h"
+#include "ardour/session.h"
 #include "ardour/slavable.h"
 #include "ardour/vca.h"
 #include "ardour/vca_manager.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace Glib::Threads;
@@ -93,6 +94,8 @@ VCAManager::create_vca (uint32_t howmany, std::string const & name_template)
 
        VCAAdded (vcal); /* EMIT SIGNAL */
 
+       _session.set_dirty ();
+
        return 0;
 }
 
@@ -108,10 +111,12 @@ VCAManager::remove_vca (boost::shared_ptr<VCA> vca)
        /* this should cause deassignment and deletion */
 
        vca->DropReferences ();
+
+       _session.set_dirty ();
 }
 
 boost::shared_ptr<VCA>
-VCAManager::vca_by_number (uint32_t n) const
+VCAManager::vca_by_number (int32_t n) const
 {
        Mutex::Lock lm (lock);