tests: Mock the keyboard layout API enough to stop getting errors.

It IS NOT correct, the point is to be able to load the keyboard widget
with errors.
This commit is contained in:
Emmanuel Lepage Vallee 2018-07-24 17:08:10 -04:00
parent f1245f083c
commit bf6ab0ba4c
1 changed files with 8 additions and 0 deletions

View File

@ -46,6 +46,14 @@ awesome.startup = true
function awesome.register_xproperty() function awesome.register_xproperty()
end end
function awesome.xkb_get_group_names()
return "pc+us+inet(evdev)"
end
function awesome.xkb_get_layout_group()
return 0
end
awesome.load_image = lgi.cairo.ImageSurface.create_from_png awesome.load_image = lgi.cairo.ImageSurface.create_from_png
function awesome.pixbuf_to_surface(_, path) function awesome.pixbuf_to_surface(_, path)