aboutsummaryrefslogtreecommitdiff
path: root/src/keyboard-lomiri.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-15 15:48:16 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-09-15 15:48:16 +0200
commit761419285e36a00a4f0add11e464f9ede99d6416 (patch)
treede57b504a73764a6c238c241f1c1c41fefb9e94e /src/keyboard-lomiri.c
parentecf5e442a2d66ef6e9b97bd8e5f54c892df42d11 (diff)
parent6cd61d67a4af511717ed1b0878f106b24a8b9ed6 (diff)
downloadayatana-indicator-keyboard-761419285e36a00a4f0add11e464f9ede99d6416.tar.gz
ayatana-indicator-keyboard-761419285e36a00a4f0add11e464f9ede99d6416.tar.bz2
ayatana-indicator-keyboard-761419285e36a00a4f0add11e464f9ede99d6416.zip
Merge branch 'tari01-pr/show-layout'
Attributes GH PR #52: https://github.com/AyatanaIndicators/ayatana-indicator-keyboard/pull/52
Diffstat (limited to 'src/keyboard-lomiri.c')
-rw-r--r--src/keyboard-lomiri.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/keyboard-lomiri.c b/src/keyboard-lomiri.c
index c6496e87..e5e0f623 100644
--- a/src/keyboard-lomiri.c
+++ b/src/keyboard-lomiri.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2021-2022 Robert Tari <robert@tari.in>
+ * Copyright 2021-2023 Robert Tari <robert@tari.in>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -185,6 +185,11 @@ guint keyboard_GetNumLayouts(Keyboard *pKeyboard)
}
}
+guint keyboard_GetLayoutIndex (Keyboard *pKeyboard)
+{
+ return pKeyboard->pPrivate->nLayout;
+}
+
void keyboard_GetLayout(Keyboard *pKeyboard, gint nLayout, gchar **pLanguage, gchar **pDescription)
{
if (nLayout == -1)