From c5d48625870952d8478e86c82d8b6803b65320ce Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Wed, 7 Sep 2022 06:19:14 +0200 Subject: Add GSettings options for indicator icon fixes https://github.com/AyatanaIndicators/ayatana-indicator-keyboard/issues/42 --- data/CMakeLists.txt | 8 ++++++++ data/org.ayatana.indicator.keyboard.gschema.xml.in | 19 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 data/org.ayatana.indicator.keyboard.gschema.xml.in (limited to 'data') diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 39bd0458..35bbfd54 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -53,3 +53,11 @@ install(FILES org.ayatana.indicator.keyboard.AccountsService.policy DESTINATION # 50-org.ayatana.indicator.keyboard.AccountsService.pkla install(FILES 50-org.ayatana.indicator.keyboard.AccountsService.pkla DESTINATION "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/polkit-1/localauthority/10-vendor.d") + +# org.ayatana.indicator.keyboard.gschema.xml + +find_package (Intltool REQUIRED) +set (ENV{LC_ALL} "C") +intltool_merge_translations ("${CMAKE_CURRENT_SOURCE_DIR}/org.ayatana.indicator.keyboard.gschema.xml.in" "${CMAKE_CURRENT_BINARY_DIR}/org.ayatana.indicator.keyboard.gschema.xml" ALL UTF8 STYLE "xml" NO_TRANSLATIONS) +find_package (GSettings REQUIRED) +add_schema ("org.ayatana.indicator.keyboard.gschema.xml") diff --git a/data/org.ayatana.indicator.keyboard.gschema.xml.in b/data/org.ayatana.indicator.keyboard.gschema.xml.in new file mode 100644 index 00000000..e80a89e9 --- /dev/null +++ b/data/org.ayatana.indicator.keyboard.gschema.xml.in @@ -0,0 +1,19 @@ + + + + true + <_summary>Show the language icon in desktop mode. + <_description>If enabled, the indicator shows the current layout icon. Otherwise, it displays a generic keyboard icon. + + + false + <_summary>Show the language icon in phone mode. + <_description>If enabled, the indicator shows the current layout icon. Otherwise, it displays a generic keyboard icon. + + + false + <_summary>Show the language icon in the greeter. + <_description>If enabled, the indicator shows the current layout icon. Otherwise, it displays a generic keyboard icon. + + + -- cgit v1.2.3