1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
From e27ff542e907a6c3e00236f161818fce0ac6b77b Mon Sep 17 00:00:00 2001
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Date: Mon, 21 Jul 2025 14:13:36 +0200
Subject: [PATCH 7/7] src/service.c: Don't show OSK settings when on Ubuntu
Touch.
Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
---
src/service.c | 5 +++--
1 file 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);
--
2.47.2
|