From 0e00d45cd4ae491d6daa538e302450b8541494ab Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 9 Aug 2016 16:37:52 -0400 Subject: [PATCH] style.arrow: Add custom radius support --- style/arrow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/style/arrow.lua b/style/arrow.lua index 387779b..3e32992 100644 --- a/style/arrow.lua +++ b/style/arrow.lua @@ -130,7 +130,7 @@ local function draw(data) data._internal.w:connect_signal("property::direction", function(_, dir) data.direction = dir - data._internal.w:set_shape(function(cr, w, h) draw_roundedrect_path(cr, w, h, radius, data, dir) end) + data._internal.w:set_shape(function(cr, w, h) draw_roundedrect_path(cr, w, h, data.radius or radius, data, dir) end) update_margins(data, dir) end)