aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-16 08:29:52 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-16 08:29:52 +0200
commit8b63acd444b8e8ad757e25b1f2fca0ec037f149f (patch)
tree56e94f1e7b135f3c5f6151deea4a3c2772110d9f /data
parentdb18ded6c8a4ab9d4a0921a3f52e8f3507607238 (diff)
parenta30fd6325b842dad70812f78a919744ab854d7ee (diff)
downloadlibayatana-common-8b63acd444b8e8ad757e25b1f2fca0ec037f149f.tar.gz
libayatana-common-8b63acd444b8e8ad757e25b1f2fca0ec037f149f.tar.bz2
libayatana-common-8b63acd444b8e8ad757e25b1f2fca0ec037f149f.zip
Merge branch 'tari01-pr/add-menu-item-lengths'
Attributes GH PR #25: https://github.com/AyatanaIndicators/libayatana-common/pull/25
Diffstat (limited to 'data')
-rw-r--r--data/CMakeLists.txt6
-rw-r--r--data/org.ayatana.common.gschema.xml.in10
2 files changed, 16 insertions, 0 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt
new file mode 100644
index 0000000..7f12337
--- /dev/null
+++ b/data/CMakeLists.txt
@@ -0,0 +1,6 @@
+# org.ayatana.common.gschema.xml
+
+find_package(GSettings)
+set(ENV{LC_ALL} "C")
+execute_process(COMMAND intltool-merge -quiet --xml-style --utf8 --no-translations "${CMAKE_CURRENT_SOURCE_DIR}/org.ayatana.common.gschema.xml.in" "${CMAKE_CURRENT_BINARY_DIR}/org.ayatana.common.gschema.xml")
+add_schema("org.ayatana.common.gschema.xml")
diff --git a/data/org.ayatana.common.gschema.xml.in b/data/org.ayatana.common.gschema.xml.in
new file mode 100644
index 0000000..30c5e03
--- /dev/null
+++ b/data/org.ayatana.common.gschema.xml.in
@@ -0,0 +1,10 @@
+<schemalist>
+ <schema gettext-domain="ayatana-common" id="org.ayatana.common" path="/org/ayatana/common/">
+ <key name="max-menu-text-length" type="u">
+ <range min="1" max="100"/>
+ <default>50</default>
+ <_summary>Maximum menu text length</_summary>
+ <_description>The number of characters to show in dynamic menu items before the text is ellipsized.</_description>
+ </key>
+ </schema>
+</schemalist>