mirror of
https://github.com/elementary/gala.git
synced 2024-08-16 18:40:27 +03:00
Add GSettings to configure zoom gesture
This commit is contained in:
parent
0480c42b95
commit
1e42575351
@ -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>
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user