Don't abort when failed to load keyboard.

This commit is contained in:
Daiki Ueno
2012-04-16 14:37:18 +09:00
parent 03995ec6b2
commit 4df2ecc8ae

View File

@ -779,8 +779,8 @@ set_keyboards (Client *client,
for (p = keyboards; *p != NULL; p++) {
keyboard_id = eekboard_context_add_keyboard (client->context, *p, NULL);
if (keyboard_id == 0) {
g_slist_free (head);
return FALSE;
g_warning ("can't add keyboard %s", *p);
continue;
}
client->keyboards = g_slist_prepend (client->keyboards,
GUINT_TO_POINTER(keyboard_id));