summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/PatchPropertiesWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/gui/PatchPropertiesWindow.cpp')
-rw-r--r--src/libs/gui/PatchPropertiesWindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libs/gui/PatchPropertiesWindow.cpp b/src/libs/gui/PatchPropertiesWindow.cpp
index eb5120c4..2f0956e6 100644
--- a/src/libs/gui/PatchPropertiesWindow.cpp
+++ b/src/libs/gui/PatchPropertiesWindow.cpp
@@ -48,11 +48,11 @@ PatchPropertiesWindow::set_patch(SharedPtr<PatchModel> patch_model)
property_title() = patch_model->path() + " Properties";
_patch_model = patch_model;
- const Atom& author_atom = _patch_model->get_metadata("author");
+ const Atom& author_atom = _patch_model->get_variable("author");
_author_entry->set_text(
(author_atom.type() == Atom::STRING) ? author_atom.get_string() : "" );
- const Atom& desc_atom = _patch_model->get_metadata("description");
+ const Atom& desc_atom = _patch_model->get_variable("description");
_textview->get_buffer()->set_text(
(desc_atom.type() == Atom::STRING) ? desc_atom.get_string() : "" );
}
@@ -61,11 +61,11 @@ PatchPropertiesWindow::set_patch(SharedPtr<PatchModel> patch_model)
void
PatchPropertiesWindow::cancel_clicked()
{
- const Atom& author_atom = _patch_model->get_metadata("author");
+ const Atom& author_atom = _patch_model->get_variable("author");
_author_entry->set_text(
(author_atom.type() == Atom::STRING) ? author_atom.get_string() : "" );
- const Atom& desc_atom = _patch_model->get_metadata("description");
+ const Atom& desc_atom = _patch_model->get_variable("description");
_textview->get_buffer()->set_text(
(desc_atom.type() == Atom::STRING) ? desc_atom.get_string() : "" );
@@ -78,8 +78,8 @@ PatchPropertiesWindow::ok_clicked()
{
cerr << "FIXME: properties\n";
- //m_patch_model->set_metadata("author", Atom(_author_entry->get_text().c_str()));
- //m_patch_model->set_metadata("description", Atom(_textview->get_buffer()->get_text().c_str()));
+ //m_patch_model->set_variable("author", Atom(_author_entry->get_text().c_str()));
+ //m_patch_model->set_variable("description", Atom(_textview->get_buffer()->get_text().c_str()));
hide();
}