From b134dd7b97c91f13dca8d23fd2513eef26405677 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Tue, 5 Sep 2023 05:10:38 +0200 Subject: Update language list and icons --- src/keyboard-x11.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/keyboard-x11.c') 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); } -- cgit v1.2.3