aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-13 23:46:28 +0000
committerDavid Robillard <d@drobilla.net>2013-01-13 23:46:28 +0000
commit86c294e56231f0bc182632a1a05f12cc8eb5f87c (patch)
tree32778534cec965c8bdbfcb1f1ac9b5bfe3f823b0
parentb4c12fdfeeb0b741b531d281762a5e4b94a08449 (diff)
downloadmachina-86c294e56231f0bc182632a1a05f12cc8eb5f87c.tar.gz
machina-86c294e56231f0bc182632a1a05f12cc8eb5f87c.tar.bz2
machina-86c294e56231f0bc182632a1a05f12cc8eb5f87c.zip
Size circles in ems to scale with font size.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@4970 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/NodeView.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/NodeView.cpp b/src/gui/NodeView.cpp
index 93902e8..e8364ec 100644
--- a/src/gui/NodeView.cpp
+++ b/src/gui/NodeView.cpp
@@ -35,12 +35,15 @@ NodeView::NodeView(Gtk::Window* window,
SPtr<machina::client::ClientObject> node,
double x,
double y)
- : Ganv::Circle(canvas, "", x, y, 20, false)
+ : Ganv::Circle(canvas, "", x, y)
, _window(window)
, _node(node)
, _default_border_color(get_border_color())
, _default_fill_color(get_fill_color())
{
+ set_fit_label(false);
+ set_radius_ems(1.25);
+
signal_event().connect(sigc::mem_fun(this, &NodeView::on_event));
MachinaCanvas* mcanvas = dynamic_cast<MachinaCanvas*>(&canvas);