summaryrefslogtreecommitdiffstats
path: root/ganv
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-02-14 04:44:51 +0000
committerDavid Robillard <d@drobilla.net>2015-02-14 04:44:51 +0000
commit058d8471556bd796be914b7b0cd09e52c3b3cfc8 (patch)
tree693f99c40636e26b690b42e78aad0fd68f815df6 /ganv
parent477faad778ff39312d4c937501b09dd7d81c5182 (diff)
downloadganv-058d8471556bd796be914b7b0cd09e52c3b3cfc8.tar.gz
ganv-058d8471556bd796be914b7b0cd09e52c3b3cfc8.tar.bz2
ganv-058d8471556bd796be914b7b0cd09e52c3b3cfc8.zip
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
Diffstat (limited to 'ganv')
-rw-r--r--ganv/Module.hpp31
1 files changed, 15 insertions, 16 deletions
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<typename P, typename C>