diff options
-rw-r--r-- | data/org.ArcticaProject.arctica-greeter.gschema.xml | 4 | ||||
-rw-r--r-- | src/settings.vala | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/data/org.ArcticaProject.arctica-greeter.gschema.xml b/data/org.ArcticaProject.arctica-greeter.gschema.xml index 28002cc..52633c5 100644 --- a/data/org.ArcticaProject.arctica-greeter.gschema.xml +++ b/data/org.ArcticaProject.arctica-greeter.gschema.xml @@ -211,5 +211,9 @@ <default>false</default> <summary>Whether to hide Wayland sessions.</summary> </key> + <key name="shutdown-dialog-timeout" type="i"> + <default>60</default> + <summary>Time in seconds until the shutdown dialog forcefully selects the default action. Set to 0 to disable.</summary> + </key> </schema> </schemalist> diff --git a/src/settings.vala b/src/settings.vala index 7e49894..16b5a82 100644 --- a/src/settings.vala +++ b/src/settings.vala @@ -73,6 +73,7 @@ public class AGSettings : Object public const string KEY_MENUBAR_ALPHA = "menubar-alpha"; public const string KEY_HIDE_X11_SESSIONS = "hide-x11-sessions"; public const string KEY_HIDE_WAYLAND_SESSIONS = "hide-wayland-sessions"; + public const string KEY_SHUTDOWN_DIALOG_TIMEOUT = "shutdown-dialog-timeout"; public static bool get_boolean (string key) { |