diff options
Diffstat (limited to 'src/keyboard-x11.c')
-rw-r--r-- | src/keyboard-x11.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/keyboard-x11.c b/src/keyboard-x11.c index c3161377..9f8b41a0 100644 --- a/src/keyboard-x11.c +++ b/src/keyboard-x11.c @@ -588,8 +588,14 @@ static void keyboard_init(Keyboard *self) pLayout->sDescription = g_strdup(sDescription); } - g_hash_table_replace(self->pPrivate->lLayouts, pLayout->sId, pLayout); + gboolean bContains = g_hash_table_contains (self->pPrivate->lLayouts, pLayout->sId); + if (!bContains) + { + g_debug (" {\"%s\", \"%s\"}, //%s", pLayout->sLanguage, pLayout->sId, pLayout->sDescription); + } + + g_hash_table_replace(self->pPrivate->lLayouts, pLayout->sId, pLayout); pRxkbLayout = rxkb_layout_next(pRxkbLayout); } |