diff options
author | David Robillard <d@drobilla.net> | 2010-12-18 20:30:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-18 20:30:13 +0000 |
commit | cd3fab990cbbdb9c71f8563d3f8e113d4359f463 (patch) | |
tree | 64706c15aa97a6848e96e741ab5f0d2ee8ebebc2 | |
parent | a8eb7f8f5b54b955c6eb23c10f2eaaca7f746ef2 (diff) | |
download | machina-cd3fab990cbbdb9c71f8563d3f8e113d4359f463.tar.gz machina-cd3fab990cbbdb9c71f8563d3f8e113d4359f463.tar.bz2 machina-cd3fab990cbbdb9c71f8563d3f8e113d4359f463.zip |
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2765 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/gui/EdgeView.cpp | 14 | ||||
-rw-r--r-- | src/gui/EdgeView.hpp | 2 |
2 files changed, 1 insertions, 15 deletions
diff --git a/src/gui/EdgeView.cpp b/src/gui/EdgeView.cpp index e8635a6..c72fc3f 100644 --- a/src/gui/EdgeView.cpp +++ b/src/gui/EdgeView.cpp @@ -82,14 +82,6 @@ EdgeView::length_hint() const void EdgeView::show_label(bool show) { - /* too slow - if (show) { - char label[4]; - snprintf(label, 4, "%3f", _edge->probability()); - set_label(label); - } else { - set_label(""); - }*/ show_handle(show); set_color(edge_color(_edge->probability())); } @@ -98,12 +90,8 @@ EdgeView::show_label(bool show) void EdgeView::update() { - if (_handle/* && _handle->text*/) { - /*char label[4]; - snprintf(label, 4, "%3f", _edge->probability()); - set_label(label);*/ + if (_handle) show_handle(true); - } set_color(edge_color(_edge->probability())); } diff --git a/src/gui/EdgeView.hpp b/src/gui/EdgeView.hpp index 411dc16..9179ea5 100644 --- a/src/gui/EdgeView.hpp +++ b/src/gui/EdgeView.hpp @@ -31,8 +31,6 @@ public: SharedPtr<NodeView> dst, SharedPtr<Machina::Edge> edge); - SharedPtr<Machina::Edge> edge() { return _edge; } - void show_label(bool show); void update(); |