aboutsummaryrefslogtreecommitdiff
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2023-09-06 11:32:24 +0200
committerRobert Tari <robert@tari.in>2023-09-15 12:21:31 +0200
commit832d5f46dc3dbbcc15fbe955e7089420e86f7ade (patch)
tree617127a6493ad3115c547a37c75ace503e62d110 /src/keyboard.h
parentb134dd7b97c91f13dca8d23fd2513eef26405677 (diff)
downloadayatana-indicator-keyboard-832d5f46dc3dbbcc15fbe955e7089420e86f7ade.tar.gz
ayatana-indicator-keyboard-832d5f46dc3dbbcc15fbe955e7089420e86f7ade.tar.bz2
ayatana-indicator-keyboard-832d5f46dc3dbbcc15fbe955e7089420e86f7ade.zip
Add layout display section
fixes https://github.com/AyatanaIndicators/ayatana-indicator-keyboard/issues/7
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index 20ae9dac..39f822cd 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2021 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
@@ -47,6 +47,7 @@ GType keyboard_get_type(void);
Keyboard* keyboard_new();
void keyboard_AddSource(Keyboard *pKeyboard);
guint keyboard_GetNumLayouts(Keyboard *pKeyboard);
+guint keyboard_GetLayoutIndex (Keyboard *pKeyboard);
void keyboard_GetLayout(Keyboard *pKeyboard, gint nLayout, gchar **pLanguage, gchar **pDescription);
void keyboard_SetLayout(Keyboard *pKeyboard, gint nLayout);