tests: Do not hardcode the font in the shims.

This commit is contained in:
Emmanuel Lepage Vallee 2021-10-30 22:44:12 -07:00
parent 4df1cd6315
commit 9a380a492f
1 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,11 @@ module.progressbar_fg = module.bg_highlight
local f = Pango.FontDescription.from_string("sans 8")
function module.get_font()
function module.get_font(font)
if font then
return Pango.FontDescription.from_string(font)
end
return f
end