summaryrefslogtreecommitdiffstats
path: root/src/gui/LoadGraphWindow.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-02 16:58:42 +0000
committerDavid Robillard <d@drobilla.net>2013-02-02 16:58:42 +0000
commit3265e8f01cd4e878661973730349a5ed44329713 (patch)
tree9e62a609edeba00bba462efc242952af7476b41d /src/gui/LoadGraphWindow.cpp
parent05d020a36581fdc9c5038339e52208f7d9f3e60e (diff)
downloadingen-3265e8f01cd4e878661973730349a5ed44329713.tar.gz
ingen-3265e8f01cd4e878661973730349a5ed44329713.tar.bz2
ingen-3265e8f01cd4e878661973730349a5ed44329713.zip
More generic Atom class.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5024 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/LoadGraphWindow.cpp')
-rw-r--r--src/gui/LoadGraphWindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/LoadGraphWindow.cpp b/src/gui/LoadGraphWindow.cpp
index 1229dd25..40b04aa0 100644
--- a/src/gui/LoadGraphWindow.cpp
+++ b/src/gui/LoadGraphWindow.cpp
@@ -128,7 +128,7 @@ LoadGraphWindow::on_show()
{
const Raul::Atom& dir = _app->world()->conf().option("graph-directory");
if (dir.is_valid()) {
- set_current_folder(dir.get_string());
+ set_current_folder(dir.ptr<char>());
}
Gtk::FileChooserDialog::on_show();
}
@@ -180,9 +180,9 @@ LoadGraphWindow::ok_clicked()
for (auto u : uri_list) {
// Cascade
Raul::Atom& x = _initial_data.find(uris.ingen_canvasX)->second;
- x = _app->forge().make(x.get_float() + 20.0f);
+ x = _app->forge().make(x.get<float>() + 20.0f);
Raul::Atom& y = _initial_data.find(uris.ingen_canvasY)->second;
- y = _app->forge().make(y.get_float() + 20.0f);
+ y = _app->forge().make(y.get<float>() + 20.0f);
Raul::Symbol symbol(symbol_from_filename(u));
if (uri_list.size() == 1 && _symbol_entry->get_text() != "")