From 058d8471556bd796be914b7b0cd09e52c3b3cfc8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 14 Feb 2015 04:44:51 +0000 Subject: Use the same border width for ports and modules. Makes edges line up more nicely, if at a wee cost to space. git-svn-id: http://svn.drobilla.net/lad/trunk/ganv@5560 a436a847-0d15-0410-975c-d299462d15a1 --- ganv/Module.hpp | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'ganv') diff --git a/ganv/Module.hpp b/ganv/Module.hpp index f8dd508..e20710a 100644 --- a/ganv/Module.hpp +++ b/ganv/Module.hpp @@ -44,22 +44,21 @@ public: double x = 0, double y = 0, bool show_title = true) - : Box(&canvas, GANV_BOX( - ganv_item_new( - GANV_ITEM(canvas.root()), - ganv_module_get_type(), - "x", x, - "y", y, - "can-tail", FALSE, - "can-head", FALSE, - "radius-tl", 4.0, - "radius-tr", 4.0, - "radius-br", 4.0, - "radius-bl", 4.0, - "border-width", 2.0, - "label", name.c_str(), - "draggable", TRUE, - NULL))) + : Box(&canvas, + GANV_BOX(ganv_item_new(GANV_ITEM(canvas.root()), + ganv_module_get_type(), + "x", x, + "y", y, + "can-tail", FALSE, + "can-head", FALSE, + "radius-tl", 4.0, + "radius-tr", 4.0, + "radius-br", 4.0, + "radius-bl", 4.0, + "border-width", 2.0, + "label", name.c_str(), + "draggable", TRUE, + NULL))) {} template -- cgit v1.2.1