aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui/NodeView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/NodeView.cpp')
-rw-r--r--src/gui/NodeView.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/NodeView.cpp b/src/gui/NodeView.cpp
index e4e4faa..09ec6a8 100644
--- a/src/gui/NodeView.cpp
+++ b/src/gui/NodeView.cpp
@@ -77,7 +77,7 @@ bool
NodeView::is(Raul::Forge& forge, machina::URIInt key)
{
const Raul::Atom& value = _node->get(key);
- return value.type() == forge.Bool && value.get_bool();
+ return value.type() == forge.Bool && value.get<int32_t>();
}
bool
@@ -135,7 +135,7 @@ NodeView::show_label(bool show)
URIs::instance().machina_note_number);
if (note_number.is_valid()) {
uint8_t buf[8];
- midi_note_name(note_number.get_int32(), buf);
+ midi_note_name(note_number.get<int32_t>(), buf);
set_label((const char*)buf);
return;
}
@@ -151,15 +151,15 @@ NodeView::on_property(machina::URIInt key, const Raul::Atom& value)
static const uint32_t active_border_color = 0x00FF00FF;
if (key == URIs::instance().machina_selector) {
- if (value.get_bool()) {
+ if (value.get<int32_t>()) {
set_dash_length(4.0);
} else {
set_dash_length(0.0);
}
} else if (key == URIs::instance().machina_initial) {
- set_border_width(value.get_bool() ? 4.0 : 1.0);
+ set_border_width(value.get<int32_t>() ? 4.0 : 1.0);
} else if (key == URIs::instance().machina_active) {
- if (value.get_bool()) {
+ if (value.get<int32_t>()) {
if (get_fill_color() != active_color) {
set_fill_color(active_color);
set_border_color(active_border_color);
@@ -168,7 +168,7 @@ NodeView::on_property(machina::URIInt key, const Raul::Atom& value)
set_default_colors();
}
} else if (key == URIs::instance().machina_enter_action) {
- const uint64_t action_id = value.get_int32();
+ const uint64_t action_id = value.get<int32_t>();
MachinaCanvas* canvas = dynamic_cast<MachinaCanvas*>(this->canvas());
_enter_action_connection.disconnect();
_enter_action = canvas->app()->client_model()->find(action_id);