diff options
author | David Robillard <d@drobilla.net> | 2013-02-02 16:58:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-02-02 16:58:42 +0000 |
commit | 7fdaffdbf9ac644c4bd4561dddd1a32db4118bc0 (patch) | |
tree | 4da5d9891020c49dd32cfc1539c15de8fb2f5d0f /src/gui/EdgeView.cpp | |
parent | 277164fd43de165ab559224d6f9218f9121e612f (diff) | |
download | machina-7fdaffdbf9ac644c4bd4561dddd1a32db4118bc0.tar.gz machina-7fdaffdbf9ac644c4bd4561dddd1a32db4118bc0.tar.bz2 machina-7fdaffdbf9ac644c4bd4561dddd1a32db4118bc0.zip |
More generic Atom class.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@5024 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/EdgeView.cpp')
-rw-r--r-- | src/gui/EdgeView.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/EdgeView.cpp b/src/gui/EdgeView.cpp index 2cf84a6..a332859 100644 --- a/src/gui/EdgeView.cpp +++ b/src/gui/EdgeView.cpp @@ -87,14 +87,14 @@ EdgeView::~EdgeView() float EdgeView::probability() const { - return _edge->get(URIs::instance().machina_probability).get_float(); + return _edge->get(URIs::instance().machina_probability).get<float>(); } double EdgeView::length_hint() const { NodeView* tail = dynamic_cast<NodeView*>(get_tail()); - return tail->node()->get(URIs::instance().machina_duration).get_float() + return tail->node()->get(URIs::instance().machina_duration).get<float>() * 10.0; } @@ -134,7 +134,7 @@ void EdgeView::on_property(machina::URIInt key, const Raul::Atom& value) { if (key == URIs::instance().machina_probability) { - set_color(edge_color(value.get_float())); + set_color(edge_color(value.get<float>())); } } |