From 86c294e56231f0bc182632a1a05f12cc8eb5f87c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 13 Jan 2013 23:46:28 +0000 Subject: 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 --- src/gui/NodeView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 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(&canvas); -- cgit v1.2.1