summaryrefslogtreecommitdiff
path: root/libs/pbd/stateful_diff_command.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-25 17:31:33 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-25 17:31:33 +0000
commit7b2975244165b4ffd1dcf4080c1be4c8dcbc6708 (patch)
treeb3010f51f7c3fa0534c0813e51bbeef13200f6a0 /libs/pbd/stateful_diff_command.cc
parent167c439002bde2b20399d733cd5d38d3674668c3 (diff)
Rename various things in the property system.
git-svn-id: svn://localhost/ardour2/branches/3.0@7681 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/stateful_diff_command.cc')
-rw-r--r--libs/pbd/stateful_diff_command.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/pbd/stateful_diff_command.cc b/libs/pbd/stateful_diff_command.cc
index 2c58acee14..857235b803 100644
--- a/libs/pbd/stateful_diff_command.cc
+++ b/libs/pbd/stateful_diff_command.cc
@@ -85,7 +85,7 @@ StatefulDiffCommand::operator() ()
boost::shared_ptr<Stateful> s (_object.lock());
if (s) {
- s->set_properties (*_redo);
+ s->apply_changes (*_redo);
}
}
@@ -96,7 +96,7 @@ StatefulDiffCommand::undo ()
if (s) {
std::cerr << "Undoing a stateful diff command\n";
- s->set_properties (*_undo);
+ s->apply_changes (*_undo);
}
}
@@ -118,8 +118,8 @@ StatefulDiffCommand::get_state ()
XMLNode* undo = new XMLNode (X_("Undo"));
XMLNode* redo = new XMLNode (X_("Do"));
- _undo->add_history_state (undo);
- _redo->add_history_state (redo);
+ _undo->get_changes (undo);
+ _redo->get_changes (redo);
node->add_child_nocopy (*undo);
node->add_child_nocopy (*redo);