diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-07-21 14:13:36 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2025-07-22 11:56:19 +0200 |
commit | e27ff542e907a6c3e00236f161818fce0ac6b77b (patch) | |
tree | 034abb7dace506902e93aa76b499b72ee31b9047 /src/service.c | |
parent | 891c2ebcb8f1b001e8bd366d8fc6df70ad4e463a (diff) | |
download | ayatana-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
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 5 |
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); |