summaryrefslogtreecommitdiff
path: root/data/org.mate.panel.object.gschema.xml.in
diff options
context:
space:
mode:
authorThe Squash <[email protected]>2022-05-06 01:11:58 -0400
committerVictor Kareh <[email protected]>2022-06-01 10:14:33 -0400
commit38e00280e9d17282717595a05411736a308804c0 (patch)
tree533df0f579a46ce990f9d5ee93dda1f70134b7ce /data/org.mate.panel.object.gschema.xml.in
parent02618b724a15443f6e5b4ce05612204d41269fa4 (diff)
downloadmate-panel-38e00280e9d17282717595a05411736a308804c0.tar.bz2
mate-panel-38e00280e9d17282717595a05411736a308804c0.tar.xz
Add "center-stick" capability applets on the panel
Conventionally, the applets on a MATE Panel are positioned relative to the left edge of the panel (if the panel is horizontal) or the top edge (if the panel is vertical). There has also been some (buggy) support for positioning of applets relative to the right (or bottom) edge of the panel, so that applets on the right side of the panel will stay on the right side even if the user changes screen resolutions or if the panel changes size for some other reason. However, many users want to also place applets at or near the center of their panel(s). There is no such conventional support for positioning applets relative to the center of the panel, so users have positioned applets near the center of the panel -- but the position recorded is relative to the left side of the panel. As such, the applets will almost certainly shift over to the left or right slightly if the panel is ever resized, and the user will have to reposition all those centered applets yet again. This is especially frustrating if the user switches monitors on a regular basis! This patch radically revamps the MATE Panel's positioning framework, and deprecates the original "right-stick" feature. To replace the right-stick feature, this patch instead associates an "edge relativity" setting with each and every panel applet: An applet can be relative to the start (left/ top), end (right/bottom), or center of the panel. This setting can be changed using DConf/GSettings, using a custom panel layout file, or even by simply dragging the applet to the appropriate place on the panel. (Conventionally, applets are not even right-stuck automatically even when the user drags the applet over to the far right of the panel!) As a bonus, when the user drags an applet across the center of the panel, the applet will temporarily "stick" to the very center of the panel, to allow the user to very precisely align any applet they wish.
Diffstat (limited to 'data/org.mate.panel.object.gschema.xml.in')
-rw-r--r--data/org.mate.panel.object.gschema.xml.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/data/org.mate.panel.object.gschema.xml.in b/data/org.mate.panel.object.gschema.xml.in
index 913d8b8c..360d5513 100644
--- a/data/org.mate.panel.object.gschema.xml.in
+++ b/data/org.mate.panel.object.gschema.xml.in
@@ -17,8 +17,13 @@
</key>
<key name="panel-right-stick" type="b">
<default>false</default>
- <summary>Interpret position relative to bottom/right edge</summary>
- <description>If true, the position of the object is interpreted relative to the right (or bottom if vertical) edge of the panel.</description>
+ <summary>Interpret position relative to bottom/right edge (DEPRECATED)</summary>
+ <description>If true, the position of the object is interpreted relative to the right (or bottom if vertical) edge of the panel. This key is provided only for backward compatibility with old panel layouts; please set the "relative-to-edge" property instead.</description>
+ </key>
+ <key name="relative-to-edge" enum="org.mate.panel.PanelObjectEdgeRelativity">
+ <default>'start'</default>
+ <summary>Whether to interpret the value of the "position" key relative to the start, center or end of the panel</summary>
+ <description>The position of the object is interpreted relative to one edge of the panel. The value of this key determines whether the object is positioned relative to the start (left/top edge), center, or end (right/bottom edge) of the panel. Valid values for this key are 'start', 'center', and 'end'.</description>
</key>
<key name="locked" type="b">
<default>false</default>