style.arrow: Add custom radius support

This commit is contained in:
Emmanuel Lepage Vallee 2016-08-09 16:37:52 -04:00
parent a58ac33afb
commit 0e00d45cd4
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ local function draw(data)
data._internal.w:connect_signal("property::direction", function(_, dir) data._internal.w:connect_signal("property::direction", function(_, dir)
data.direction = 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) update_margins(data, dir)
end) end)