[gsettings-desktop-schemas] schemas: add configuration options for pointing sticks
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gsettings-desktop-schemas] schemas: add configuration options for pointing sticks
- Date: Mon, 5 Sep 2022 11:09:21 +0000 (UTC)
commit 1c6a1a340de1f0737a566c0e1a23a42e2a2b92ca
Author: Rohan Hendrik Jotz-Lean <rohan rohanlean de>
Date: Thu Jan 20 14:05:50 2022 +0100
schemas: add configuration options for pointing sticks
Add configuration options for pointing stick devices such as the TrackPoint.
The options control speed, acceleration profile, and scrolling method.
headers/gdesktop-enums.h | 7 +++++++
schemas/org.gnome.desktop.peripherals.gschema.xml.in | 19 +++++++++++++++++++
2 files changed, 26 insertions(+)
---
diff --git a/headers/gdesktop-enums.h b/headers/gdesktop-enums.h
index e67e0f7..4a9c5fa 100644
--- a/headers/gdesktop-enums.h
+++ b/headers/gdesktop-enums.h
@@ -258,4 +258,11 @@ typedef enum
G_DESKTOP_COLOR_SCHEME_PREFER_LIGHT,
} GDesktopColorScheme;
+typedef enum
+{
+ G_DESKTOP_POINTING_STICK_SCROLL_METHOD_DEFAULT,
+ G_DESKTOP_POINTING_STICK_SCROLL_METHOD_NONE,
+ G_DESKTOP_POINTING_STICK_SCROLL_METHOD_ON_BUTTON_DOWN
+} GDesktopPointingStickScrollMethod;
+
#endif /* __gdesktop_enums_h__ */
diff --git a/schemas/org.gnome.desktop.peripherals.gschema.xml.in
b/schemas/org.gnome.desktop.peripherals.gschema.xml.in
index aa40ca8..93268ab 100644
--- a/schemas/org.gnome.desktop.peripherals.gschema.xml.in
+++ b/schemas/org.gnome.desktop.peripherals.gschema.xml.in
@@ -5,6 +5,7 @@
<child name="keyboard" schema="org.gnome.desktop.peripherals.keyboard"/>
<child name="mouse" schema="org.gnome.desktop.peripherals.mouse"/>
<child name="trackball" schema="org.gnome.desktop.peripherals.trackball"/>
+ <child name="pointingstick" schema="org.gnome.desktop.peripherals.pointingstick"/>
<child name="tablet" schema="org.gnome.desktop.peripherals.tablet"/>
<child name="touchscreen" schema="org.gnome.desktop.peripherals.touchscreen"/>
</schema>
@@ -241,4 +242,22 @@
<description>Set this to TRUE to enable middle click during simultaneous left and right
click.</description>
</key>
</schema>
+ <schema id="org.gnome.desktop.peripherals.pointingstick"
path="/org/gnome/desktop/peripherals/pointingstick/">
+ <key name="speed" type="d">
+ <default>0</default>
+ <summary>Pointer speed</summary>
+ <description>Pointer speed for pointing sticks. Accepted values are in the [-1..1] range (from
“unaccelerated” to “fast”). A value of 0 is the system default.</description>
+ <range min="-1" max="1"/>
+ </key>
+ <key name="accel-profile" enum="org.gnome.desktop.GDesktopPointerAccelProfile">
+ <default>'default'</default>
+ <summary>Acceleration profile</summary>
+ <description>Acceleration profile used for the pointing stick. The acceleration profile can be set to
either default (“default”) which uses the default acceleration profile, flat (“flat”), which accelerates by a
device specific constant factor derived from the configured speed, or adaptive (“adaptive”) which adapts the
acceleration depending on the movement. If the pointing stick doesn’t support the configured profile,
“default” will be used.</description>
+ </key>
+ <key name="scroll-method" enum="org.gnome.desktop.GDesktopPointingStickScrollMethod">
+ <default>'default'</default>
+ <summary>Scrolling method</summary>
+ <description>Scrolling method used for pointing sticks. The scrolling method can be set to either
default (“default”) which uses the default method, none (“none”), which disables scrolling, or middle-button
(“on-button-down”) which enables scrolling whilst the middle button is held down.</description>
+ </key>
+ </schema>
</schemalist>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]