aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-07-21 14:13:36 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2025-07-22 11:56:19 +0200
commite27ff542e907a6c3e00236f161818fce0ac6b77b (patch)
tree034abb7dace506902e93aa76b499b72ee31b9047
parent891c2ebcb8f1b001e8bd366d8fc6df70ad4e463a (diff)
downloadayatana-indicator-keyboard-pr/separate-sections-for-osk.tar.gz
ayatana-indicator-keyboard-pr/separate-sections-for-osk.tar.bz2
ayatana-indicator-keyboard-pr/separate-sections-for-osk.zip
src/service.c: Don't show OSK settings when on Ubuntu Touch.pr/separate-sections-for-osk
-rw-r--r--src/service.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c
index 54d2327f..7b205327 100644
--- a/src/service.c
+++ b/src/service.c
@@ -157,6 +157,7 @@ static GVariant* createHeaderState(IndicatorKeyboardService *self, int nProfile)
static GMenuModel* createLayoutSection(IndicatorKeyboardService *self, gboolean bOSK)
{
self->pPrivate->pLayoutSection = g_menu_new();
+ gboolean bUbuntuTouch = ayatana_common_utils_is_ubuntutouch ();
gboolean bCreate = FALSE;
if (self->pPrivate->bLomiri)
@@ -171,7 +172,7 @@ static GMenuModel* createLayoutSection(IndicatorKeyboardService *self, gboolean
bCreate = TRUE;
}
}
- else if (bOSK)
+ else if (bOSK && !bUbuntuTouch)
{
gboolean bSoftwareKeyboard = m_fnKeyboardHasSoftwareKeyboard (self->pPrivate->pKeyboard);
@@ -262,7 +263,7 @@ static GMenuModel* createSettingsSection(IndicatorKeyboardService *self, gboolea
bDisplay = TRUE;
}
}
- else if (bOSK)
+ else if (bOSK && !bUbuntuTouch)
{
gboolean bSoftwareKeyboard = m_fnKeyboardHasSoftwareKeyboard (self->pPrivate->pKeyboard);