aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/NodeView.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/NodeView.cpp b/src/gui/NodeView.cpp
index f87b74a..30df429 100644
--- a/src/gui/NodeView.cpp
+++ b/src/gui/NodeView.cpp
@@ -49,6 +49,7 @@ NodeView::NodeView(Gtk::Window* window,
MachinaCanvas* mcanvas = dynamic_cast<MachinaCanvas*>(&canvas);
if (is(mcanvas->app()->forge(), URIs::instance().machina_initial)) {
set_border_width(4.0);
+ set_is_source(true);
const uint8_t alpha[] = { 0xCE, 0xB1, 0 };
set_label((const char*)alpha);
}
@@ -158,6 +159,7 @@ NodeView::on_property(machina::URIInt key, const Atom& value)
}
} else if (key == URIs::instance().machina_initial) {
set_border_width(value.get<int32_t>() ? 4.0 : 1.0);
+ set_is_source(value.get<int32_t>());
} else if (key == URIs::instance().machina_active) {
if (value.get<int32_t>()) {
if (get_fill_color() != active_color) {