fix lua check warnings

This commit is contained in:
streetturtle 2021-06-03 22:18:37 -04:00 committed by GitHub
parent a723d1c050
commit 7ecaccf85f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -54,8 +54,8 @@ local function create_button(icon_name, action_name, accent_color, label_color,
capi.keygrabber.stop() capi.keygrabber.stop()
end end
} }
button:connect_signal("mouse::enter", function() button:connect_signal("mouse::enter", function()
action:set_markup('<span color="' .. label_color .. '">' .. action_name .. '</span>') action:set_markup('<span color="' .. label_color .. '">' .. action_name .. '</span>')
end) end)
button:connect_signal("mouse::leave", function() action:set_markup('<span> </span>') end) button:connect_signal("mouse::leave", function() action:set_markup('<span> </span>') end)
@ -91,15 +91,15 @@ local function launch(args)
phrase_widget, phrase_widget,
{ {
{ {
create_button('log-out', 'Log Out (l)', create_button('log-out', 'Log Out (l)',
accent_color, label_color, onlogout, icon_size, icon_margin), accent_color, label_color, onlogout, icon_size, icon_margin),
create_button('lock', 'Lock (k)', create_button('lock', 'Lock (k)',
accent_color, label_color, onlock, icon_size, icon_margin), accent_color, label_color, onlock, icon_size, icon_margin),
create_button('refresh-cw', 'Reboot (r)', create_button('refresh-cw', 'Reboot (r)',
accent_color, label_color, onreboot, icon_size, icon_margin), accent_color, label_color, onreboot, icon_size, icon_margin),
create_button('moon', 'Suspend (u)', create_button('moon', 'Suspend (u)',
accent_color, label_color, onsuspend, icon_size, icon_margin), accent_color, label_color, onsuspend, icon_size, icon_margin),
create_button('power', 'Power Off (s)', create_button('power', 'Power Off (s)',
accent_color, label_color, onpoweroff, icon_size, icon_margin), accent_color, label_color, onpoweroff, icon_size, icon_margin),
id = 'buttons', id = 'buttons',
spacing = 8, spacing = 8,