diff options
author | streetturtle <streetturtle@gmail.com> | 2020-12-05 20:57:04 -0500 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-12-05 20:57:04 -0500 |
commit | a0cd854a4d36167456bb28d255bf96a32321bf2a (patch) | |
tree | b42aa4e39d0b46144ed64d1d4f20e90c28465d3d /logout-widget | |
parent | d9eb3885eea90e06b79ff8fc4b2d1c1b8f5e4cfd (diff) |
fix more warnings
Diffstat (limited to 'logout-widget')
-rw-r--r-- | logout-widget/logout.lua | 7 |
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 { |