summaryrefslogtreecommitdiff
path: root/libs/ardour/session_object.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-02-19 18:09:08 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-02-19 18:09:08 +0000
commitfa701b8c065251d242342b86a54d91826d2290a0 (patch)
tree106865e709c61a1d3af045a26a757b22ba423c3e /libs/ardour/session_object.cc
parent728bedf9b917287ea76b98860dec04e72472230c (diff)
change PropertyChange from a bitfield into a real object, with all the many widespread changes that causes
git-svn-id: svn://localhost/ardour2/branches/3.0@6701 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_object.cc')
-rw-r--r--libs/ardour/session_object.cc18
1 files changed, 5 insertions, 13 deletions
diff --git a/libs/ardour/session_object.cc b/libs/ardour/session_object.cc
index 0dcda09f26..b245b43ae5 100644
--- a/libs/ardour/session_object.cc
+++ b/libs/ardour/session_object.cc
@@ -37,27 +37,19 @@ SessionObject::make_property_quarks ()
Properties::name.id = g_quark_from_static_string (X_("name"));
}
-PropertyChange
+bool
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<const PropertyTemplate<std::string>*>(&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 true;
+ }
}
-
- return c;
+
+ return false;
}