summaryrefslogtreecommitdiff
path: root/logout-widget
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@users.noreply.github.com>2020-12-07 15:33:55 -0500
committerGitHub <noreply@github.com>2020-12-07 15:33:55 -0500
commitd4971690cec1e074999e730d87045e578d71e43c (patch)
treeb0f05079840eba5467e14bdcd093ad3ed5362cf4 /logout-widget
parentf078748e76eacae599cf0ad06120d9fff54f8fa5 (diff)
parented2b256407291d8edadfcea9380029633cc7d9d8 (diff)
Merge pull request #224 from streetturtle/comply-with-luacheck
Comply with luacheck
Diffstat (limited to 'logout-widget')
-rw-r--r--logout-widget/logout.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/logout-widget/logout.lua b/logout-widget/logout.lua
index 9fcc9fe..512ac23 100644
--- a/logout-widget/logout.lua
+++ b/logout-widget/logout.lua
@@ -54,8 +54,8 @@ local function create_button(icon_name, action_name, color, onclick, icon_size,
capi.keygrabber.stop()
end
}
- button:connect_signal("mouse::enter", function(c) action:set_text(action_name) end)
- button:connect_signal("mouse::leave", function(c) action:set_text(' ') end)
+ button:connect_signal("mouse::enter", function() action:set_text(action_name) end)
+ button:connect_signal("mouse::leave", function() action:set_text(' ') end)
return button
end
@@ -76,7 +76,8 @@ local function launch(args)
w:set_bg(bg_color)
if #phrases > 0 then
- phrase_widget:set_markup('<span color="'.. text_color .. '" size="20000">' .. phrases[ math.random( #phrases ) ] .. '</span>')
+ phrase_widget:set_markup(
+ '<span color="'.. text_color .. '" size="20000">' .. phrases[ math.random( #phrases ) ] .. '</span>')
end
w:setup {