Fix system (xklavier) layout handling.

This commit is contained in:
Daiki Ueno
2011-08-18 14:32:53 +09:00
parent e5f5c8273e
commit 786496b3c4
5 changed files with 117 additions and 76 deletions

View File

@ -152,6 +152,11 @@ main (int argc, char **argv)
keyboard_id = eekboard_context_add_keyboard (context,
opt_set_keyboard,
NULL);
if (keyboard_id == 0) {
g_printerr ("Can't create keyboard\n");
retval = 1;
goto out;
}
eekboard_context_set_keyboard (context, keyboard_id, NULL);
}