diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-10-18 13:18:47 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-10-18 13:18:47 +0000 |
commit | 4085309cdb07f011756a9ab90047037ef9ad8f20 (patch) | |
tree | 22fb3764a0b8120a06397b3605c59589be5f78d8 /gtk2_ardour/editor.cc | |
parent | 9ec965a54eb9bafa6fa0cf4837809189affac49f (diff) |
make Stateful::_id private and provide appropriate methods to set it, and use them throughout ardour
git-svn-id: svn://localhost/ardour2/branches/3.0@10222 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor.cc')
-rw-r--r-- | gtk2_ardour/editor.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 78c6911116..08099c2972 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -1244,7 +1244,7 @@ Editor::set_session (Session *t) } /* register for undo history */ - _session->register_with_memento_command_factory(_id, this); + _session->register_with_memento_command_factory(id(), this); ActionManager::ui_manager->signal_pre_activate().connect (sigc::mem_fun (*this, &Editor::action_pre_activated)); @@ -2160,9 +2160,7 @@ Editor::set_state (const XMLNode& node, int /*version*/) int x, y; Gdk::Geometry g; - if ((prop = node.property ("id")) != 0) { - _id = prop->value (); - } + set_id (node); g.base_width = default_width; g.base_height = default_height; @@ -2374,7 +2372,7 @@ Editor::get_state () XMLNode* node = new XMLNode ("Editor"); char buf[32]; - _id.print (buf, sizeof (buf)); + id().print (buf, sizeof (buf)); node->add_property ("id", buf); if (is_realized()) { |