Repeat INSENSITIVE colors instead of relying on inheritance
[ardour.git] / libs / ardour / vca_manager.cc
index 080001af2a4ac1da0cbc42929623451a289ccd79..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,11 +111,12 @@ VCAManager::remove_vca (boost::shared_ptr<VCA> vca)
        /* this should cause deassignment and deletion */
 
        vca->DropReferences ();
-       std::cerr << "After DR, uc = " << vca.use_count() << std::endl;
+
+       _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);