diff --git a/tooltip.lua b/tooltip.lua
index ec9afec..ad8f6ab 100644
--- a/tooltip.lua
+++ b/tooltip.lua
@@ -39,6 +39,8 @@ end
local function new(widget,text, args)
local args,data = args or {},{}
+ data.text = text
+
local function hide_tooltip()
if data.wibox then
data.wibox.visible = false
@@ -57,7 +59,7 @@ local function new(widget,text, args)
if not data.wibox then
local vertical,textw = (args.direction == "left") or (args.direction == "right"),wibox.widget.textbox()
textw.align = "center"
- textw:set_markup("".. text .."")
+ textw:set_markup("".. data.text .."")
local w,extents = wibox({position="free"}),textw._layout:get_pixel_extents()
extents.width = extents.width + 60
w.visible = false
@@ -127,7 +129,6 @@ local function new(widget,text, args)
data.drawable:connect_signal("mouse::leave",hide_tooltip)
end
end
- data.text = text
end
widget:connect_signal("mouse::enter" , function(widget,geometry) data:showToolTip( true , {parent=geometry}) end)
widget:connect_signal("mouse::leave" , hide_tooltip)
diff --git a/widgets/checkbox.lua b/widgets/checkbox.lua
index 5b1be7f..38722ef 100644
--- a/widgets/checkbox.lua
+++ b/widgets/checkbox.lua
@@ -23,7 +23,7 @@ local function init()
cr2:paint()
cr:set_operator(cairo.Operator.SOURCE)
cr2:set_operator(cairo.Operator.SOURCE)
- local sp = 2.5
+ local sp = size*0.15
local rs = size - (2*sp)
cr:set_source(color(beautiful.fg_normal))
cr2:set_source(color(beautiful.fg_normal))