X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=libs%2Fardour%2Fsession_object.cc;h=39b31550d916b53cc0246cf41984c570634b2f80;hb=8a128b33d38172ae525ac798c53bc105bc4e2c64;hp=0dcda09f2628206e7e0c3280246fd928d9403aec;hpb=6b86da676038c3a185a206831341c903a06705d9;p=ardour.git diff --git a/libs/ardour/session_object.cc b/libs/ardour/session_object.cc index 0dcda09f26..39b31550d9 100644 --- a/libs/ardour/session_object.cc +++ b/libs/ardour/session_object.cc @@ -18,8 +18,11 @@ */ #include -#include "ardour/session_object.h" + #include "ardour/debug.h" +#include "ardour/session_object.h" + +#include "i18n.h" using namespace ARDOUR; using namespace PBD; @@ -31,33 +34,10 @@ namespace ARDOUR { } } -void -SessionObject::make_property_quarks () +void +SessionObject::make_property_quarks () { - Properties::name.id = g_quark_from_static_string (X_("name")); -} - -PropertyChange -SessionObject::set_property (const PropertyBase& prop) -{ - PropertyChange c = PropertyChange (0); - - DEBUG_TRACE (DEBUG::Properties, string_compose ("session object %1 set property %2\n", _name.val(), prop.property_name())); - - if (prop == Properties::name.id) { - std::string str = dynamic_cast*>(&prop)->val(); - cerr << "prop @ " << &prop << " has quark " << prop.id() << " str value = " << str << endl; - cerr << "nameprop @ " << &_name << " has quark " << _name.id() << " str value = " << _name.val() << endl; - if (_name != str) { - DEBUG_TRACE (DEBUG::Properties, string_compose ("session object named %1 renamed %2\n", - _name.val(), str)); - _name = str; - c = _name.change(); - } else { - DEBUG_TRACE (DEBUG::Properties, string_compose ("name %1 matches %2\n", _name.val(), str)); - } - } - - return c; + 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)); }