[gnome-shell/gbsneto/custom-icon-positions: 41/60] gschema: Introduce the 'grid-layout' key
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/custom-icon-positions: 41/60] gschema: Introduce the 'grid-layout' key
- Date: Mon, 6 Jul 2020 20:55:15 +0000 (UTC)
commit be2e2d41056a8a749e06a559f8b5eec4b7b922b3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Dec 5 11:00:21 2019 -0300
gschema: Introduce the 'grid-layout' key
This is the key that will be used to store the pages and the icons in
each page. The idea is that we we store an a{sv} variant for each page.
This variant will contain <icon id> → array of properties, where we
can store arbitrary data for each icon. The expected output of this
key is:
[
{
'polari.desktop': <{ 'position': 0 }>,
'epiphany.deskop': <{ 'position': 1 }>,
},
{
'telegram.desktop': <{ 'position': 2 }>,
'builder.desktop': <{ 'position': 0 }>,
'gitg.desktop': <{ 'position': 1 }>,
}
]
The toplevel array is sorted, and pages of the grid always show in the
order they are stored.
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1284
data/org.gnome.shell.gschema.xml.in | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/data/org.gnome.shell.gschema.xml.in b/data/org.gnome.shell.gschema.xml.in
index 49d38d7662..2950690763 100644
--- a/data/org.gnome.shell.gschema.xml.in
+++ b/data/org.gnome.shell.gschema.xml.in
@@ -109,6 +109,14 @@
the shell.
</description>
</key>
+ <key name="grid-layout" type="aa{sv}">
+ <default>[]</default>
+ <summary>Layout of the icon grid</summary>
+ <description>
+ Layout of the icon grid. Each entry in the array is a page. Pages are
+ stored in the order they appear in GNOME Shell.
+ </description>
+ </key>
<child name="keybindings" schema="org.gnome.shell.keybindings"/>
</schema>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]