Ported generate_keyboard_layout to Gtk3 and Cairo. Needs testing