rationale pathways that add notes to Sequence<T> so that there is only final insertio...
[ardour.git] / libs / ardour / session_object.cc
index b245b43ae57c510db75afb4672d541aaa6e38c5d..b15771c986928985d6d4898795e372a2a25cabf7 100644 (file)
@@ -21,6 +21,8 @@
 #include "ardour/session_object.h"
 #include "ardour/debug.h"
 
+#include "i18n.h"
+
 using namespace ARDOUR;
 using namespace PBD;
 using namespace std;
@@ -34,22 +36,7 @@ namespace ARDOUR {
 void 
 SessionObject::make_property_quarks () 
 {
-       Properties::name.id = g_quark_from_static_string (X_("name"));
-}
-
-bool
-SessionObject::set_property (const PropertyBase& prop)
-{
-       if (prop == Properties::name.id) {
-               std::string str = dynamic_cast<const PropertyTemplate<std::string>*>(&prop)->val();
-               if (_name != str) {
-                       DEBUG_TRACE (DEBUG::Properties, string_compose ("session object named %1 renamed %2\n",
-                                                                       _name.val(), str));
-                       _name = str;
-                       return true;
-               } 
-       }
-
-       return false;
+       Properties::name.property_id = g_quark_from_static_string (X_("name"));
+        DEBUG_TRACE (DEBUG::Properties, string_compose ("quark for name = %1\n",       Properties::name.property_id));
 }