Add GSettings to configure zoom gesture

This commit is contained in:
JoseExposito 2021-04-02 12:19:28 +02:00 committed by Daniel Foré
parent 0480c42b95
commit 1e42575351
2 changed files with 14 additions and 0 deletions

View File

@ -337,5 +337,16 @@
<summary>Switch workspace gesture fingers</summary>
<description>Number of fingers used in the switch workspaces gesture</description>
</key>
<key type="b" name="zoom-gesture-enabled">
<default>false</default>
<summary>Zoom gesture</summary>
<description>If enabled, pinch with the number of fingers set in io.elementary.desktop.wm.gestures.multitasking-gesture-fingers to zoom in/out the entire desktop</description>
</key>
<key type="i" name="zoom-gesture-fingers">
<default>3</default>
<range min="3" max="4"/>
<summary>Zoom gesture fingers</summary>
<description>Number of fingers used in the zoom gesture</description>
</key>
</schema>
</schemalist>

View File

@ -29,6 +29,9 @@ public class Gala.GestureSettings : Object {
public const string WORKSPACE_ENABLED = "workspaces-gesture-enabled";
public const string WORKSPACE_FINGERS = "workspaces-gesture-fingers";
public const string ZOOM_ENABLED = "zoom-gesture-enabled";
public const string ZOOM_FINGERS = "zoom-gesture-fingers";
static construct {
gala_settings = new GLib.Settings ("io.elementary.desktop.wm.gestures");
touchpad_settings = new GLib.Settings ("org.gnome.desktop.peripherals.touchpad");